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 (
-
-