From fb2157bbe0a5c25dd8623a7a02790849e6b7ef3f Mon Sep 17 00:00:00 2001 From: agent Date: Tue, 6 Oct 2026 11:45:44 +0000 Subject: [PATCH] Public site: add a mobile menu (side drawer) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Below md the header hid its nav links with nothing in their place, so phones had no way to navigate. A ☰ button now opens a drawer from the right (native modal : focus trap, Escape, inert page) with the links, basket and booking button. It closes on backdrop tap, Escape and navigation; the current page is marked in both menus. The booking button now uses --color-primary-content, so a light brand colour gets dark text instead of unreadable white. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01KgF3Kf47LjPGHKQHszpUAv --- app-public/src/lib/components/Header.svelte | 253 ++++++++++++++++---- 1 file changed, 202 insertions(+), 51 deletions(-) diff --git a/app-public/src/lib/components/Header.svelte b/app-public/src/lib/components/Header.svelte index d83c16d..2ff12ed 100644 --- a/app-public/src/lib/components/Header.svelte +++ b/app-public/src/lib/components/Header.svelte @@ -1,51 +1,202 @@ - - -
-
- - {#if header.logo?.url} - {header.logo.alt - {:else} - ES - {/if} - Eva Shafik - - - - -
- {#if hasItems} - - - - - {basket.count} - - - {/if} - {#if header.ctaButton?.label} - {header.ctaButton.label} - {/if} -
-
-
+ + +{#snippet basketIcon()} + +{/snippet} + +
+
+ + {#if header.logo?.url} + {header.logo.alt + {:else} + ES + {/if} + Eva Shafik + + + + +
+ {#if hasItems} + + {@render basketIcon()} + {basket.count} + + + {/if} + {#if header.ctaButton?.label} + + {/if} + +
+
+
+ + + + e.target === drawer && closeMenu()}> +
+
+ Menu + +
+ + + + {#if header.ctaButton?.label} + + {/if} +
+
+ +