From 87c8b807e100d356e65982c604454dffa14ba5ca Mon Sep 17 00:00:00 2001 From: mkelvers Date: Tue, 21 Apr 2026 00:22:51 +0200 Subject: [PATCH] feat: make anime card fully clickable with darker hover overlay and title in hover detail --- web/components/anime_card.templ | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/web/components/anime_card.templ b/web/components/anime_card.templ index 14e12c2..5ed3b12 100644 --- a/web/components/anime_card.templ +++ b/web/components/anime_card.templ @@ -31,15 +31,14 @@ templ AnimeCard(props AnimeCardProps) { } else {
+ @animeCardPoster(props) - - if !props.HideTitle { -
- { props.Title } -
- } - { children... } -
+ if !props.HideTitle { +
+ { props.Title } +
+ } + { children... }
} } @@ -54,14 +53,14 @@ func cardHref(props AnimeCardProps) string { templ animeCardPoster(props AnimeCardProps) {
- + +
if props.Synopsis != "" || props.Score > 0 {
@@ -73,6 +72,7 @@ templ animeCardPoster(props AnimeCardProps) { { fmt.Sprintf("%d", props.Score) }
} +
{ props.Title }
if props.Synopsis != "" {

{ props.Synopsis }

} @@ -82,7 +82,7 @@ templ animeCardPoster(props AnimeCardProps) { if props.PlayHref != "" {