diff --git a/src/client/src/routes/+layout.svelte b/src/client/src/routes/+layout.svelte index d888bd3..4d4ff21 100644 --- a/src/client/src/routes/+layout.svelte +++ b/src/client/src/routes/+layout.svelte @@ -3,19 +3,56 @@ import { page } from '$app/stores'; let { children } = $props(); + let sidebarOpen = $state(false); + function isActive(path) { const current = $page.url.pathname; if (path === '/') return current === '/'; return current.startsWith(path); } + + function closeSidebar() { + sidebarOpen = false; + } -