All checks were successful
Deploy Theme / deploy (push) Successful in 13s
38 lines
1.8 KiB
Handlebars
38 lines
1.8 KiB
Handlebars
<div id="mobile-menu"
|
|
x-show="$store.mobileMenu.open"
|
|
x-transition:enter="transition ease-out duration-300"
|
|
x-transition:enter-start="-translate-x-full"
|
|
x-transition:enter-end="translate-x-0"
|
|
x-transition:leave="transition ease-in duration-300"
|
|
x-transition:leave-start="translate-x-0"
|
|
x-transition:leave-end="-translate-x-full"
|
|
class="fixed inset-0 z-50 bg-[var(--bg-primary)] flex flex-col md:hidden"
|
|
@click.away="$store.mobileMenu.close()"
|
|
hx-boost="false"
|
|
x-cloak>
|
|
|
|
<!-- Mobile Menu Header -->
|
|
<div class="flex justify-between items-center p-5 flex-none">
|
|
<a href="{{@site.url}}" class="flex items-center text-[var(--text-primary)]" @click.stop="$store.mobileMenu.close()">
|
|
{{#if @site.logo}}
|
|
<img src="{{@site.logo}}" alt="{{@site.title}}" class="h-10 w-auto site-logo">
|
|
{{else}}
|
|
{{> "icons/logo" class="h-10 w-auto site-logo"}}
|
|
{{/if}}
|
|
<span class="ml-3 text-xl font-bold">{{@site.title}}</span>
|
|
</a>
|
|
<button @click.stop="$store.mobileMenu.close()" class="p-2 rounded-full bg-[var(--bg-secondary)] text-[var(--text-primary)] hover:bg-[var(--bg-tertiary)] transition-colors duration-200">
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
|
|
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" />
|
|
</svg>
|
|
</button>
|
|
</div>
|
|
|
|
<!-- Mobile Menu Navigation -->
|
|
<nav class="flex-grow flex flex-col items-center justify-center p-10 overflow-y-auto" @click="$store.mobileMenu.close()">
|
|
<div class="w-full text-center">
|
|
{{navigation type="primary"}}
|
|
</div>
|
|
</nav>
|
|
</div>
|