2026-02-19 18:07:46 +01:00
|
|
|
<div id="mobile-menu"
|
2026-02-19 21:13:24 +01:00
|
|
|
x-show="mobileMenuOpen"
|
2026-02-19 20:06:25 +01:00
|
|
|
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"
|
2026-02-19 19:54:12 +01:00
|
|
|
class="fixed inset-0 z-50 bg-[var(--bg-primary)] flex flex-col md:hidden"
|
2026-02-19 21:13:24 +01:00
|
|
|
@click.away="mobileMenuOpen = false"
|
2026-02-19 18:07:46 +01:00
|
|
|
x-cloak>
|
2026-02-19 19:54:12 +01:00
|
|
|
|
|
|
|
|
<!-- Mobile Menu Header -->
|
|
|
|
|
<div class="flex justify-between items-center p-5 flex-none">
|
2026-02-19 21:13:24 +01:00
|
|
|
<a href="{{@site.url}}" class="flex items-center text-[var(--text-primary)]" @click.stop="mobileMenuOpen = false">
|
2026-02-19 19:06:29 +01:00
|
|
|
{{#if @site.logo}}
|
|
|
|
|
<img src="{{@site.logo}}" alt="{{@site.title}}" class="h-10 w-auto site-logo">
|
|
|
|
|
{{else}}
|
2026-02-19 19:49:11 +01:00
|
|
|
{{> "icons/logo" class="h-10 w-auto site-logo"}}
|
2026-02-19 19:06:29 +01:00
|
|
|
{{/if}}
|
|
|
|
|
</a>
|
2026-02-20 08:14:11 +01:00
|
|
|
|
|
|
|
|
<div class="flex items-center space-x-2">
|
|
|
|
|
{{!-- Theme Toggle in Mobile Menu --}}
|
2026-02-20 19:19:53 +01:00
|
|
|
<button @click="theme = (theme === 'dark' ? 'light' : 'dark')" class="p-2 rounded-full text-[var(--text-secondary)] hover:text-[var(--brand-primary)] transition-colors duration-200">
|
2026-02-22 07:59:17 +01:00
|
|
|
<div x-show="theme === 'dark'">
|
|
|
|
|
{{> "icons/sun" class="w-6 h-6"}}
|
|
|
|
|
</div>
|
|
|
|
|
<div x-show="theme === 'light'" x-cloak>
|
|
|
|
|
{{> "icons/moon" class="w-6 h-6"}}
|
|
|
|
|
</div>
|
2026-02-20 08:14:11 +01:00
|
|
|
</button>
|
|
|
|
|
|
2026-02-20 19:19:53 +01:00
|
|
|
<button @click.stop="mobileMenuOpen = false" class="p-2 rounded-full text-[var(--text-secondary)] hover:text-[var(--brand-primary)] transition-colors duration-200">
|
2026-02-22 07:59:17 +01:00
|
|
|
{{> "icons/close" class="w-6 h-6"}}
|
2026-02-20 08:14:11 +01:00
|
|
|
</button>
|
|
|
|
|
</div>
|
2026-02-17 18:54:09 +01:00
|
|
|
</div>
|
2026-02-19 19:54:12 +01:00
|
|
|
|
|
|
|
|
<!-- Mobile Menu Navigation -->
|
2026-02-19 21:13:24 +01:00
|
|
|
<nav class="flex-grow flex flex-col items-center justify-center p-10 overflow-y-auto" @click="mobileMenuOpen = false">
|
2026-02-19 19:56:49 +01:00
|
|
|
<div class="w-full text-center">
|
2026-02-19 19:54:12 +01:00
|
|
|
{{navigation type="primary"}}
|
|
|
|
|
</div>
|
2026-02-17 18:54:09 +01:00
|
|
|
</nav>
|
|
|
|
|
</div>
|