homepage/templates/_navbar.html
2024-07-02 16:21:57 +02:00

40 lines
No EOL
2.4 KiB
HTML

<nav class="flex flex-row place-content-around lg:px-12 md:h-14 bg-overlay-dark text-text-dark">
<div class="basis-1/6 flex flex-row items-center">
<a href="/" class="flex flex-row items-center p-0">
<img src="/assets/logo.png" alt="logo.png" class="size-16 p-2">
<h2 class="max-md:hidden">Viyurz</h2>
</a>
</div>
<div
class="basis-3/6 flex flex-col md:flex-row place-content-center place-items-center max-md:p-2 max-md:space-y-2 md:space-x-10">
<h2><a class="{% if title == 'Home' %} active-page {% endif %}" href="/">Home</a></h2>
<h2><a class="{% if title == 'Services' %} active-page {% endif %}" href="/services">Services</a></h2>
<h2><a href="https://status.viyurz.fr/" target="_blank">Status</a></h2>
<h2><a href="https://auth.viyurz.fr/" target="_blank">Account</a></h2>
</div>
<div class="basis-1/6 flex flex-row justify-end items-center">
<div class="hidden relative inline-block opacity-10">
<div>
<button type="button"
class="md:before:content-['Language'] inline-flex w-full justify-center gap-x-1.5 px-3 py-2"
id="menu-button" aria-expanded="true" aria-haspopup="true">
<svg class="-mr-1 h-5 w-5" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
<path fill-rule="evenodd"
d="M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z"
clip-rule="evenodd" />
</svg>
</button>
</div>
<div class="hidden absolute right-0 z-10 mt-2 text-right origin-top-right rounded-lg border border-overlay dark:border-overlay-dark bg-surface dark:bg-surface-dark focus:outline-none"
role="menu" aria-orientation="vertical" aria-labelledby="menu-button" tabindex="-1">
<div class="py-1" role="none">
<a href="#" class="text-gray-700 block px-4 py-2 text-sm" role="menuitem" tabindex="-1"
id="menu-item-0">English</a>
<a href="#" class="text-gray-700 block px-4 py-2 text-sm" role="menuitem" tabindex="-1"
id="menu-item-1">Français</a>
</div>
</div>
</div>
</div>
</nav>