blob: a90a706314bd2cc66f33c28873d7f155c09533bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
<header class="sticky top-0 z-50 bg-bg2/92 backdrop-blur border-b border-border">
<nav class="container mx-auto px-4 py-4 flex items-center justify-between">
<!-- Logo -->
<a href="{{ .Site.BaseURL }}" class="font-bold text-lg text-accent font-oxanium">
danix
</a>
<!-- Desktop menu (hidden on mobile) -->
<div class="hidden md:flex items-center gap-8">
{{ range .Site.Menus.main }}
<a href="{{ .URL }}" class="text-sm hover:text-accent transition-colors">
{{ i18n .Name }}
</a>
{{ end }}
</div>
<!-- Mobile hamburger & theme toggle -->
<div class="flex items-center gap-4 md:gap-6">
<!-- Theme toggle button -->
<button
id="theme-toggle"
aria-label="{{ i18n "toggleTheme" }}"
class="p-2 rounded hover:bg-surface transition-colors"
>
<i data-feather="sun" class="w-5 h-5 hidden dark:block"></i>
<i data-feather="moon" class="w-5 h-5 block dark:hidden"></i>
</button>
<!-- Hamburger menu button (mobile only) -->
<button
id="menu-toggle"
aria-label="{{ i18n "toggleMenu" }}"
class="md:hidden p-2 rounded hover:bg-surface transition-colors"
>
<i data-feather="menu" class="w-5 h-5"></i>
</button>
</div>
</nav>
<!-- Mobile hamburger overlay menu -->
{{ partial "hamburger-menu.html" . }}
</header>
|