From d047f429859f5601058f6b5851235d8c2d467031 Mon Sep 17 00:00:00 2001 From: Cho Young-Hwi Date: Wed, 18 Mar 2026 09:37:29 +0000 Subject: [PATCH] [#292] Enhance book spine with layered page-thickness lines - Added 2 offset border layers behind the main card creating a stacked-pages / closed-book depth illusion - Page layers use decreasing opacity (border/40, border/60) - Thin top-edge line for page block thickness - Spine line on left preserved from #291 - All vector/stroke only, no fills or images Fixes #292 Co-Authored-By: Claude Opus 4.6 (1M context) --- src/components/StoryCard.tsx | 81 ++++++++++++++++++++---------------- 1 file changed, 46 insertions(+), 35 deletions(-) diff --git a/src/components/StoryCard.tsx b/src/components/StoryCard.tsx index 4a194574..988ead19 100644 --- a/src/components/StoryCard.tsx +++ b/src/components/StoryCard.tsx @@ -16,46 +16,57 @@ export function StoryCard({ return (
- {/* Book cover with spine */} - - {/* Spine edge — thin line on left */} -
+ {/* Book cover with page-thickness lines */} +
+ {/* Page layer 2 (furthest back) */} +
+ {/* Page layer 1 */} +
-
- {/* Top: genre tag + completion badge */} -
- - {displayGenre || "Uncategorized"} - - {storyline.sunset && ( - - complete - - )} -
+ {/* Main card (front cover) */} + + {/* Spine edge — thicker left border */} +
- {/* Center: title */} -
-

- {storyline.title} -

- {storyline.language && storyline.language !== "English" && ( - - {storyline.language} + {/* Top edge — page block thickness */} +
+ +
+ {/* Top: genre tag + completion badge */} +
+ + {displayGenre || "Uncategorized"} - )} -
+ {storyline.sunset && ( + + complete + + )} +
- {/* Bottom: author */} -
- - {storyline.writer_type === 1 && } + {/* Center: title */} +
+

+ {storyline.title} +

+ {storyline.language && storyline.language !== "English" && ( + + {storyline.language} + + )} +
+ + {/* Bottom: author */} +
+ + {storyline.writer_type === 1 && } +
-
- + +
{/* Metadata row below card */}