diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-07-28 12:13:31 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-07-28 12:13:31 +0200 |
| commit | 45cc0afb734a422ee7765dc5c60dccbcc6721367 (patch) | |
| tree | ff832117b55fbc7a7ee36f822d9f68e39bb6ba01 /src/lib | |
| parent | 329ab5a990df5e460afa31094e5e827c9743565b (diff) | |
feat: warm redesign, full French localization, compact sticky form, fixed row heights, and show quality score in list
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/components/Nav.svelte | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/src/lib/components/Nav.svelte b/src/lib/components/Nav.svelte index f6c83fc..725c098 100644 --- a/src/lib/components/Nav.svelte +++ b/src/lib/components/Nav.svelte @@ -3,11 +3,11 @@ </script> <nav class="navbar"> - <a href="/" class:active={$page.url.pathname === '/'}>List</a> - <a href="/catalog" class:active={$page.url.pathname === '/catalog'}>Catalog</a + <a href="/" class:active={$page.url.pathname === '/'}>Liste</a> + <a href="/catalog" class:active={$page.url.pathname === '/catalog'}>Catalogue</a > <a href="/categories" class:active={$page.url.pathname === '/categories'} - >Categories</a + >Catégories</a > </nav> @@ -15,29 +15,32 @@ .navbar { display: flex; gap: 0.25rem; - padding: 0.5rem 0; - border-bottom: 1px solid #ddd; + padding: 0.75rem 0; + border-bottom: 1px solid var(--border); position: sticky; top: 0; - background: #fafafa; + background: var(--bg); z-index: 20; } .navbar a { padding: 0.5rem 1rem; - border-radius: 0.5rem; - color: #333; + border-radius: 9999px; + color: var(--text-secondary); text-decoration: none; font-size: 0.875rem; - transition: background 0.15s; + font-weight: 500; + transition: all 0.2s ease; } .navbar a:hover { - background: #f5f5f5; + color: var(--text); + background: var(--surface); } .navbar a.active { - background: #333; + background: var(--accent); color: #fff; + box-shadow: 0 1px 2px var(--shadow); } </style> |
