diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-09-07 10:55:06 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-09-07 10:55:06 +0200 |
| commit | 113415ce357a9cea1759d0452ebae6352f8fe36b (patch) | |
| tree | 109d55552e7007ba1a8c2752692e85eeb0cc6168 /src/lib/components | |
| parent | 8cd634e51b79200848068ef45bd3fb700758c394 (diff) | |
Split groceries domain out of the app root
Move the grocery list, catalog, and categories routes under /groceries/
so the app home can host the projects/routines overview next. Update
nav to exact-path matching, login redirect default, and layout title.
Diffstat (limited to 'src/lib/components')
| -rw-r--r-- | src/lib/components/Nav.svelte | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/lib/components/Nav.svelte b/src/lib/components/Nav.svelte index 8f2e5c2..aa42ace 100644 --- a/src/lib/components/Nav.svelte +++ b/src/lib/components/Nav.svelte @@ -3,12 +3,17 @@ </script> <nav class="navbar"> - <a href="/" class:active={$page.url.pathname === '/'}>Liste</a> - <a href="/catalog" class:active={$page.url.pathname === '/catalog'} - >Catalogue</a + <a href="/" class:active={$page.url.pathname === '/'}>Projets</a> + <a href="/groceries" class:active={$page.url.pathname === '/groceries'} + >Liste</a > - <a href="/categories" class:active={$page.url.pathname === '/categories'} - >Catégories</a + <a + href="/groceries/catalog" + class:active={$page.url.pathname === '/groceries/catalog'}>Catalogue</a + > + <a + href="/groceries/categories" + class:active={$page.url.pathname === '/groceries/categories'}>Catégories</a > </nav> |
