1
0
Fork 0
mirnet.org/themes/mir/layouts/partials/nav.html
brooke 9471119394
All checks were successful
Hugo / build (push) Successful in -12s
make contact text larger
2024-09-12 19:51:31 -04:00

17 lines
No EOL
926 B
HTML

<div class="m-4 rounded-lg p-4 min-h-[40.27px] flex flex-row justify-between bg-[#f1f5fc] sticky-navbar">
{{ with site.GetPage "_index.md" }}
<a class="justify-center flex mb-2 sm:mb-0" aria-label="Back to home" href="/"><img class="h-[40.2667px]"
alt="{{ .Params.logoAlt }}" src="{{ .Params.logo }}" loading="lazy" /></a>
<nav class="place-self-center h-8 flex justify-end gap-4 text-[#464f6d] pr-0 sm:pr-6">
{{ range .Site.Menus.main }}
<a class="relative inline-block p-2 -translate-y-2 uppercase text-lg font-semibold py-2 text-gray-900 overflow-hidden group" href="{{ .URL }}"
aria-label="{{ .Identifier }}">
{{ $text := print .Name | safeHTML }} {{ $text }}
<span
class="absolute inset-0 h-7 translate-y-3 bg-[#d8e2f3] transition-transform duration-300 transform -translate-x-full group-hover:translate-x-0 z-[-1]"></span>
</a>
{{ end }}
</nav>
{{ end }}
</div>