feat: add schedule page

This commit is contained in:
2026-05-26 20:16:14 +02:00
parent 71dd130744
commit 749a275dc0
2 changed files with 133 additions and 0 deletions

View File

@@ -5,6 +5,7 @@
"home" (dict "href" "/" "label" "Home")
"browse" (dict "href" "/browse" "label" "Browse")
"discover" (dict "href" "/discover" "label" "Discover")
"schedule" (dict "href" "/schedule" "label" "Schedule")
"watchlist" (dict "href" "/watchlist" "label" "Watchlist")
}}
@@ -81,6 +82,25 @@
</div>
</a>
{{/* Schedule */}}
{{$isActive := eq $currentPath "/schedule"}}
<a href="/schedule" class="group relative flex items-center px-7 py-3 transition-colors hover:bg-surface-hover" {{if $isCollapsed}}title="Schedule"{{end}} aria-current="{{if $isActive}}page{{end}}">
{{if $isActive}}
<div class="bg-accent absolute top-1/2 left-0 h-12 w-0.5 -translate-y-1/2 rounded-r-sm"></div>
{{end}}
<svg class="size-6 shrink-0 transition-colors duration-200 {{if $isActive}}text-accent{{else}}text-foreground-muted group-hover:text-foreground{{end}}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
<rect x="3" y="4" width="18" height="18" rx="2" />
<line x1="16" y1="2" x2="16" y2="6" />
<line x1="8" y1="2" x2="8" y2="6" />
<line x1="3" y1="10" x2="21" y2="10" />
</svg>
<div class="nav-label-container grid grid-cols-[1fr] opacity-100 ml-4">
<div class="overflow-hidden min-w-0">
<span class="whitespace-nowrap text-sm font-medium transition-colors duration-200 {{if $isActive}}text-accent{{else}}text-foreground-muted group-hover:text-foreground{{end}}">Schedule</span>
</div>
</div>
</a>
{{/* Watchlist */}}
{{$isActive := eq $currentPath "/watchlist"}}
<a href="/watchlist" class="group relative flex items-center px-7 py-3 transition-colors hover:bg-surface-hover" {{if $isCollapsed}}title="Watchlist"{{end}} aria-current="{{if $isActive}}page{{end}}">