diff options
author | sptaule <lecas83@gmail.com> | 2022-01-29 14:42:09 +0100 |
---|---|---|
committer | sptaule <lecas83@gmail.com> | 2022-01-29 14:42:09 +0100 |
commit | e6f8f43b6ca5ff00d33b3a539e67eb2255fa1dd0 (patch) | |
tree | 1c08c3482e3ac79de1b040d77e3ca3d4f37b8fad /templates/partials/shared/nav.html | |
parent | e958d4a1d06878100170cd96ce548966e3d5222a (diff) | |
download | garagehq.deuxfleurs.fr-e6f8f43b6ca5ff00d33b3a539e67eb2255fa1dd0.tar.gz garagehq.deuxfleurs.fr-e6f8f43b6ca5ff00d33b3a539e67eb2255fa1dd0.zip |
Improve responsive, icons, refactor search, update readme
Diffstat (limited to 'templates/partials/shared/nav.html')
-rw-r--r-- | templates/partials/shared/nav.html | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/templates/partials/shared/nav.html b/templates/partials/shared/nav.html index 57e81fe..a4a4b99 100644 --- a/templates/partials/shared/nav.html +++ b/templates/partials/shared/nav.html @@ -1,12 +1,16 @@ -<nav aria-label="section navigation" class="navbar w-full" role="navigation"> - <div class="w-full flex flex-col space-y-2 md:space-y-0 md:flex-row items-center justify-between py-1.5 px-8 text-garage-gray bg-garage-orange bg-opacity-20"> +<nav aria-label="navigation-section" class="navbar w-full relative" role="navigation"> + <div class="w-full flex flex-row items-center justify-between py-1.5 px-8 text-garage-gray bg-garage-orange bg-opacity-20"> <div class="navbar-brand"> <a class="hover:rounded-full hover:bg-white" href="{{config.base_url}}"> <img class="px-2 transform duration-150 focus:bg-white hover:bg-white hover:shadow rounded-lg" src="{{ config.extra.organization.logo_horizontal }}" width="120px"> </a> </div> - <div class="navbar-menu" id="navMenu"> + <input type="checkbox" id="navMenuToggleBtn" value="0"/> + <label for="navMenuToggleBtn" class="md:hidden p-1.5 hover:bg-white rounded-lg hover:shadow cursor-pointer" style="margin-top:0.08rem;"> + <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h7"></path></svg> + </label> + <div class="hidden py-4 md:py-0 z-40 md:block absolute md:static top-12 left-0 right-0 navbar-menu bg-gray-100 shadow-md md:shadow-none md:bg-transparent" id="navMenu"> <div class="flex items-center justify-center space-x-2"> {% for item in config.extra.navbar_items %} {% if lang == item.code %} @@ -29,7 +33,7 @@ href="https://garagehq.deuxfleurs.fr/_releases.html" class="group flex items-center justify-center space-x-1 font-semibold shadow hover:shadow px-2 py-1.5 rounded text-white transition-all duration-500 bg-gradient-to-tl from-garage-orange via-orange-500 to-orange-300 bg-size-200 bg-pos-0 hover:bg-pos-100"> <svg class="w-6 h-6 animate-pulse" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M9 19l3 3m0 0l3-3m-3 3V10"></path></svg> - <span>Download</span> + <span class="hidden md:inline">Download</span> </a> </div> </div> |