close mobile menu on item clicked

This commit is contained in:
juancwu 2026-01-07 09:52:20 -05:00
commit 55baf73dd6

View file

@ -58,7 +58,10 @@ templ Index(d data.Page) {
</svg>
</button>
</div>
<ul class="flex flex-col items-center justify-center gap-8 uppercase text-white lg:flex-row lg:gap-4">
<ul
class="flex flex-col items-center justify-center gap-8 uppercase text-white lg:flex-row lg:gap-4"
_="on click from <a /> add .translate-x-full to <nav /> then remove .overflow-hidden from <body />"
>
<li>
<a href="#projects" class="relative z-0 p-2 after:absolute after:left-0 after:top-1/2 after:-z-10 after:h-3/4 after:w-0 after:-translate-y-1/2 after:bg-linear-to-r after:from-purple-500 after:to-pink-500 after:transition-all hover:after:w-full focus:after:w-full">
Projects