refactor: remove discover page

This commit is contained in:
2026-06-13 17:04:01 +02:00
parent 9b7a2cac8f
commit 70a6e9a6b5
6 changed files with 9 additions and 13 deletions

View File

@@ -66,8 +66,6 @@
{{$isCollapsed := .IsCollapsed}}
{{$navItems := list
(dict "key" "home" "href" "/" "label" "Home" "isActive" (eq $currentPath "/"))
(dict "key" "discover" "href" "/discover" "label" "Discover" "isActive" (eq $currentPath "/discover"))
(dict "key" "schedule" "href" "/schedule" "label" "Schedule" "isActive" (eq $currentPath "/schedule"))
(dict "key" "watchlist" "href" "/watchlist" "label" "Watchlist" "isActive" (eq $currentPath "/watchlist"))
}}
@@ -93,6 +91,7 @@
{{template "nav_item" dict "key" .key "href" .href "label" .label "isActive" .isActive "isCollapsed" $isCollapsed}}
{{end}}
</div>
</div>
</nav>
{{end}}

View File

@@ -7,7 +7,7 @@
<h1 class="text-xl font-normal tracking-[-0.02em] text-foreground">Top Picks for You</h1>
<p class="mt-1 text-sm text-foreground-muted">The full ranked list from your current watchlist profile.</p>
</div>
<a href="/discover" class="text-sm text-foreground-muted transition-colors hover:text-foreground">Back to Discover</a>
<a href="/" class="text-sm text-foreground-muted transition-colors hover:text-foreground">Back to Home</a>
</div>
{{if eq (len .Animes) 0}}
@@ -17,7 +17,7 @@
<p class="text-sm">Add a few anime to your watchlist so the recommender has something to learn from.</p>
<div class="mt-2 flex gap-2">
<a href="/watchlist" class=" inline-flex h-10 items-center justify-center bg-background-button px-4 text-sm font-normal text-foreground transition-colors hover:bg-background-button-hover focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent">Open watchlist</a>
<a href="/discover" class=" inline-flex h-10 items-center justify-center bg-background-button px-4 text-sm font-normal text-foreground transition-colors hover:bg-background-button-hover focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent">Discover anime</a>
<a href="/browse" class=" inline-flex h-10 items-center justify-center bg-background-button px-4 text-sm font-normal text-foreground transition-colors hover:bg-background-button-hover focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent">Browse anime</a>
</div>
</div>
{{else}}

View File

@@ -35,7 +35,7 @@
</div>
<div class="mt-2 flex flex-wrap items-center justify-center gap-3">
<a href="/browse?status=airing" class="inline-flex h-9 items-center justify-center bg-background-button px-4 text-sm font-normal text-foreground transition-colors hover:bg-background-button-hover focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent">Browse airing</a>
<a href="/discover" class="inline-flex h-9 items-center justify-center bg-transparent px-4 text-sm font-normal text-foreground-muted transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent">Discover</a>
<a href="/browse" class="inline-flex h-9 items-center justify-center bg-transparent px-4 text-sm font-normal text-foreground-muted transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent">Browse</a>
<a href="/watchlist" class="inline-flex h-9 items-center justify-center bg-transparent px-4 text-sm font-normal text-foreground-muted transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent">Open watchlist</a>
</div>
</div>

View File

@@ -81,8 +81,8 @@
<p class="text-sm text-foreground">Your watchlist is empty.</p>
<p class="text-sm text-foreground-muted">Start adding anime to keep track of what you want to watch.</p>
<div class="mt-2 flex gap-3">
<a href="/" class=" inline-flex h-10 items-center justify-center bg-background-button px-4 text-sm font-normal text-foreground transition-colors hover:bg-background-button-hover focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent">Browse anime</a>
<a href="/discover" class=" inline-flex h-10 items-center justify-center bg-background-button px-4 text-sm font-normal text-foreground transition-colors hover:bg-background-button-hover focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent">Discover new</a>
<a href="/" class=" inline-flex h-10 items-center justify-center bg-background-button px-4 text-sm font-normal text-foreground transition-colors hover:bg-background-button-hover focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent">Go home</a>
<a href="/browse" class=" inline-flex h-10 items-center justify-center bg-background-button px-4 text-sm font-normal text-foreground transition-colors hover:bg-background-button-hover focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent">Browse anime</a>
</div>
</div>
{{end}}