From 7e1d752061f18f2174f494075eeb90060ba90089 Mon Sep 17 00:00:00 2001 From: Admin Date: Fri, 17 Apr 2026 17:00:42 +0500 Subject: [PATCH] feat(ui): improve hero atmosphere and card hover states Book detail: stronger blurred cover bg (opacity 0.35 + saturate), larger cover (sm:w-56), more dramatic gradient, bigger title (sm:text-4xl). Homepage hero: atmospheric blurred cover bg matching current carousel book. Catalogue: cards now lift on hover with brand border + shadow. Co-Authored-By: Claude Sonnet 4.6 --- ui/src/routes/+page.svelte | 14 ++++++++++++-- ui/src/routes/books/[slug]/+page.svelte | 15 ++++++++------- ui/src/routes/catalogue/+page.svelte | 4 ++-- 3 files changed, 22 insertions(+), 11 deletions(-) diff --git a/ui/src/routes/+page.svelte b/ui/src/routes/+page.svelte index 63876e0..2d566a4 100644 --- a/ui/src/routes/+page.svelte +++ b/ui/src/routes/+page.svelte @@ -151,9 +151,19 @@ ontouchstart={onSwipeStart} ontouchend={onSwipeEnd} > + + {#if heroBook.book.cover} + {#key heroIndex} + + {/key} + {/if} + class="w-32 sm:w-44 shrink-0 self-stretch overflow-hidden block relative z-[1]"> {#if heroBook.book.cover} {#key heroIndex} {heroBook.book.title} -

{m.home_continue_reading()}

diff --git a/ui/src/routes/books/[slug]/+page.svelte b/ui/src/routes/books/[slug]/+page.svelte index 151108e..e62ad0b 100644 --- a/ui/src/routes/books/[slug]/+page.svelte +++ b/ui/src/routes/books/[slug]/+page.svelte @@ -757,25 +757,26 @@
- + {#if book.cover} {/if} - + + -
+
-
+
{#if book.cover} {book.title} {/if} @@ -783,7 +784,7 @@
-

{book.title}

+

{book.title}

{#if !data.inLib} handleNovelClick(novel.slug)} - class="group flex flex-col rounded-lg overflow-hidden bg-(--color-surface-2) border transition-colors relative - {isLoading ? 'border-(--color-brand)/60' : 'border-(--color-border) hover:border-zinc-500'}" + class="group flex flex-col rounded-lg overflow-hidden bg-(--color-surface-2) border transition-all relative + {isLoading ? 'border-(--color-brand)/60' : 'border-(--color-border) hover:border-(--color-brand)/50 hover:bg-(--color-surface-3) hover:shadow-lg hover:shadow-black/20 hover:-translate-y-0.5'}" >