aboutsummaryrefslogtreecommitdiff
path: root/templates/partials/shared/nav.html
diff options
context:
space:
mode:
authorsptaule <lecas83@gmail.com>2022-01-27 15:03:27 +0100
committersptaule <lecas83@gmail.com>2022-01-27 15:03:27 +0100
commit67250dca95369b7cd1afbdaf694b022b008e5009 (patch)
tree138d0330cad5112933d2c5154876b80564bed731 /templates/partials/shared/nav.html
parent9eeadd1e667d7908b1ffd707662676cee63d1ede (diff)
downloadgaragehq.deuxfleurs.fr-67250dca95369b7cd1afbdaf694b022b008e5009.tar.gz
garagehq.deuxfleurs.fr-67250dca95369b7cd1afbdaf694b022b008e5009.zip
Added gobal Search, template partials, deleted shortcodes not in use
Diffstat (limited to 'templates/partials/shared/nav.html')
-rw-r--r--templates/partials/shared/nav.html31
1 files changed, 31 insertions, 0 deletions
diff --git a/templates/partials/shared/nav.html b/templates/partials/shared/nav.html
new file mode 100644
index 0000000..2489bf6
--- /dev/null
+++ b/templates/partials/shared/nav.html
@@ -0,0 +1,31 @@
+<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 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="transform duration-150 focus:bg-white hover:bg-white hover:shadow rounded-lg hover:scale-90"
+ src="{{ config.extra.organization.logo }}" width="65px">
+ </a>
+ </div>
+ <div class="navbar-menu" id="navMenu">
+ <div class="flex items-center justify-center">
+ {% for item in config.extra.navbar_items %}
+ {% if lang == item.code %}
+ {% for nav in item.nav_items %}
+ <a class="font-semibold focus:bg-white hover:bg-white hover:shadow px-4 py-2 rounded-lg"
+ href="{{ nav.url | replace(from='$BASE_URL', to=config.base_url) }}">
+ {{ nav.name }}
+ </a>
+ {% endfor %}
+ {% endif %}
+ {% endfor %}
+ <button
+ id="nav-search-btn"
+ type="button"
+ title="Open Search (alt + S)"
+ class="focus:bg-white hover:bg-white hover:shadow px-4 py-2 rounded-lg">
+ <svg id="nav-search-btn-icon" class="w-5 h-5" 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="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path></svg>
+ </button>
+ </div>
+ </div>
+ </div>
+</nav> \ No newline at end of file