feat: add YearControls component and update YearNav for localized year links

This commit is contained in:
Norbert Maciaszek
2025-11-17 21:18:32 +01:00
parent 31404b874a
commit 915131db58
4 changed files with 49 additions and 1 deletions

View File

@@ -12,7 +12,7 @@
<div class="flex items-center gap-2">
<Button variant="secondary" href="/">Prezenty tego roku</Button>
{#each years as year}
<Button href={`/year/${year.year}`} variant="secondary">
<Button href={`/rok/${year.year}`} variant="secondary">
{year.year}
</Button>
{/each}