Files
palina-theme/partials/mobile-menu.hbs
Sebastian Krüger bac70d7823
All checks were successful
Deploy Theme / deploy (push) Successful in 14s
feat(theme): implement Palina Gold theme and adaptive SVG logo system
2026-02-19 19:49:11 +01:00

29 lines
1.4 KiB
Handlebars

<div id="mobile-menu"
x-show="mobileMenuOpen"
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-40 bg-[var(--bg-primary)] transform md:hidden"
x-cloak>
<div class="flex justify-between items-center p-5">
<a href="{{@site.url}}" class="site-logo-container">
{{#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}}
</a>
<button @click="mobileMenuOpen = false" 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>
<nav class="flex flex-col items-center justify-center h-full space-y-8 text-2xl" @click="mobileMenuOpen = false">
{{navigation type="primary"}}
</nav>
</div>