Selaa lähdekoodia

Book card interaction smooth 6

Sviluppo_Carrello_Immagini
Lorenzo Pollutri 1 kuukausi sitten
vanhempi
commit
55137c95ba
2 muutettua tiedostoa jossa 11 lisäystä ja 2 poistoa
  1. +10
    -1
      components/PublicGrid.tsx
  2. +1
    -1
      lib/page-flip/index.js

+ 10
- 1
components/PublicGrid.tsx Näytä tiedosto

@@ -539,9 +539,18 @@ function FlipBook({ pages, onClose }: { pages: string[]; onClose: () => void })
aria-label="Chiudi"
>✕</button>

{/* Container background shows through when on cover/back pages.
The page-flip canvas was patched (lib/page-flip/index.js) to clear
transparently instead of filling white, so this gradient is visible
on the empty half of the spread. */}
<div
ref={containerRef}
style={{ width: 'min(95vw, 1400px)', height: 'min(85vh, 900px)' }}
style={{
width: 'min(95vw, 1400px)',
height: 'min(85vh, 900px)',
background: 'linear-gradient(135deg, #4a3826 0%, #2e2114 55%, #1a1108 100%)',
boxShadow: 'inset 0 0 80px rgba(0,0,0,0.55)',
}}
className="shadow-2xl"
/>



+ 1
- 1
lib/page-flip/index.js
File diff suppressed because it is too large
Näytä tiedosto


Ladataan…
Peruuta
Tallenna