From 1e9ef44b5248f0a6c079835687779beb3ba7d453 Mon Sep 17 00:00:00 2001 From: Peter Meier Date: Mon, 4 May 2026 11:29:05 +0200 Subject: [PATCH] feat(header): highlight active nav link with bold + underline Compares the link href against `$page.url.pathname` (with trailing-slash normalization + subpath match), applies `font-bold underline` and `aria-current="page"` on a match. Wired into both the desktop horizontal nav and the mobile slide-down menu. Co-Authored-By: Claude Opus 4.7 --- src/lib/components/Header.svelte | 516 +++++++++++++++++-------------- 1 file changed, 283 insertions(+), 233 deletions(-) diff --git a/src/lib/components/Header.svelte b/src/lib/components/Header.svelte index c11d66f..00549e9 100644 --- a/src/lib/components/Header.svelte +++ b/src/lib/components/Header.svelte @@ -1,250 +1,300 @@
-
- - - - + + +
+ + +
- {/if} + + + + + {#if menuOpen} + + {/if}