From 985e1f189db71dc92b27687c3e3db4c8a461fc36 Mon Sep 17 00:00:00 2001 From: SiteAgent Bot Date: Tue, 27 Jan 2026 16:39:23 +0800 Subject: [PATCH] manual save(2026-01-27 16:39) --- eslint.config.js | 1 + src/components/Bookshelf.tsx | 100 ++++++++++++++++++---------- src/components/Footer.tsx | 6 +- src/components/Header.tsx | 22 +++--- src/components/PostCard.tsx | 12 ++-- src/components/PostCardSkeleton.tsx | 16 ++--- src/index.css | 68 +++++++++++-------- src/pages/BookDetail.tsx | 40 +++++------ src/pages/Categories.tsx | 27 ++++---- src/pages/CategoryDetail.tsx | 46 +++++++------ src/pages/Home.tsx | 10 +-- src/pages/PostDetail.tsx | 60 ++++++++++------- 12 files changed, 239 insertions(+), 169 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index 5e6b472..990060f 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -7,6 +7,7 @@ import { defineConfig, globalIgnores } from 'eslint/config' export default defineConfig([ globalIgnores(['dist']), + globalIgnores(['src/clientsdk/**/*']), { files: ['**/*.{ts,tsx}'], extends: [ diff --git a/src/components/Bookshelf.tsx b/src/components/Bookshelf.tsx index 56f952f..f23d17d 100644 --- a/src/components/Bookshelf.tsx +++ b/src/components/Bookshelf.tsx @@ -28,9 +28,9 @@ const BookSpine: React.FC<{ selected: boolean onSelect: (event?: React.PointerEvent | React.MouseEvent) => void }> = ({ book, index, selected, onSelect }) => { - const tilt = (index % 2 === 0 ? 1 : -1) * 0.9 - const height = 148 + (index % 4) * 14 - const width = 46 + (index % 3) * 6 + const tilt = (index % 2 === 0 ? 1 : -1) * 0.35 + const height = 168 + (index % 4) * 12 + const width = 52 + (index % 3) * 6 return (
@@ -76,13 +76,13 @@ const BookSpine: React.FC<{ style={{ height: 3, background: `linear-gradient(90deg, transparent, ${book.accentColor}, transparent)`, - opacity: 0.9, + opacity: selected ? 0.86 : 0.72, }} />
{book.author} @@ -104,10 +104,19 @@ const BookSpine: React.FC<{ style={{ width: 10, background: - 'linear-gradient(180deg, rgba(255,255,255,0.16), rgba(0,0,0,0.2)), linear-gradient(90deg, rgba(0,0,0,0.4), transparent)', - opacity: selected ? 0.8 : 0.45, + 'linear-gradient(180deg, rgba(255,255,255,0.14), rgba(0,0,0,0.16)), linear-gradient(90deg, rgba(0,0,0,0.26), transparent)', + opacity: selected ? 0.72 : 0.40, }} /> + + ) } @@ -145,14 +154,23 @@ export const Bookshelf: React.FC = ({ books }) => { return (
-
-