Skip to content

Commit

Permalink
feat: update layout, header & footer
Browse files Browse the repository at this point in the history
  • Loading branch information
hellodeloo authored and vincentporte committed Sep 11, 2023
1 parent 9cdb508 commit 4283aed
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lacommunaute/templates/forum_search/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ <h1>{% trans "Search forums" %}</h1>
<h3 class="h4 mb-0">{{ page.paginator.count }} {% trans "result" %}{{ page.paginator.count|pluralizefr }}</h3>
<div class="table-responsive-lg">
<table class="table table-hover mt-3 mt-md-4">
<caption class="sr-only">Liste de résultats</caption>
<caption class="visually-hidden">Liste de résultats</caption>
<tbody>
{% for result in page.object_list %}
{% if result.topic %}
Expand Down
2 changes: 1 addition & 1 deletion lacommunaute/templates/forum_upvote/upvote_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ <h1>{% trans "My UpVotes" %}</h1>
<div class="c-box">
<div class="table-responsive-lg">
<table class="table table-hover mt-3 mt-md-4">
<caption class="sr-only">Liste de résultats</caption>
<caption class="visually-hidden">Liste de résultats</caption>
<tbody>
{% for upvote in upvotes %}
<tr>
Expand Down
8 changes: 3 additions & 5 deletions lacommunaute/templates/layouts/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
<meta name="created" content="{% now "jS M Y h:i" %}">
<meta name="description" content="{% block meta_description %}{% endblock meta_description %}">
<meta name="keywords" content="{% block meta_keywords %}{% endblock meta_keywords %}">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="theme-color" content="#ffffff">
<meta name="viewport" content="width=device-width, initial-scale=1">

<!-- https://metatags.io Open Graph -->
<meta property="og:locale" content="fr_FR">
Expand Down Expand Up @@ -59,7 +57,7 @@
</div>
</noscript>

<nav role="navigation" aria-label="Accès rapide" tabindex="1" class="sr-only">
<nav role="navigation" aria-label="Accès rapide" tabindex="1" class="visually-hidden">
<ul>
<li><a href="#nav-primary">Aller au menu principal</a></li>
<li><a href="#main">Aller au contenu principal</a></li>
Expand Down Expand Up @@ -98,7 +96,7 @@

{% block modals %}{% endblock %}

<div class="sr-only sr-only-focusable">
<div class="visually-hidden visually-hidden-focusable">
<a href="#header">Retour au début de la page</a>
</div>

Expand Down
4 changes: 2 additions & 2 deletions lacommunaute/templates/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<section class="s-header">
<div class="s-header__container container">
<div class="s-header__row row">
<div class="s-header__col s-header__col--logo-ministere col col-md-auto d-flex align-items-center pr-0">
<div class="s-header__col s-header__col--logo-ministere col col-md-auto d-flex align-items-center pe-0">
<a href="{% url 'pages:home' %}" class="s-header__logo-ministere"><img src="{% static_theme_images 'logo-republique-francaise.svg' %}" height="90" alt="Rébublique Française"></a>
</div>
<div class="s-header__col s-header__col--logo-service col-auto d-flex align-items-center px-0">
Expand All @@ -18,7 +18,7 @@
{% include 'partials/header_nav_primary_items.html' %}
</nav>
</div>
<div class="s-header__col s-header__col--burger col d-flex align-items-center justify-content-end d-xl-none" data-toggle="burger">
<div class="s-header__col s-header__col--burger col d-flex align-items-center justify-content-end d-xl-none" data-bs-toggle="burger">
<i class="ri-menu-line" id="open" role="button" tabindex="0" aria-label="Ouverture du menu de navigation principale pour mobile"></i>
<i class="ri-close-line" id="close" role="button" tabindex="0" aria-label="Fermeture du menu de navigation principale pour mobile"></i>
</div>
Expand Down

0 comments on commit 4283aed

Please sign in to comment.