1.0 KiB
1.0 KiB
Enhanced Foil Effects
Objective
Make the foil effect on cards "more visible and cooler" by introducing a multi-layered holographic overlay.
Changes
- Modified
src/client/src/components/CardPreview.tsx:- Created a consistent
FoilOverlaycomponent used by both Mobile and Desktop previews. - Layer 1 (Base Holo): Swapped previous subtle gradients for a vibrant
amber-300/fuchsia-400/cyan-400gradient withmix-blend-color-dodge. Increased opacity to100(blended mode handles the transparency feel). - Layer 2 (Shimmer): Added a diagonal white pulse (
animate-pulse) withmix-blend-overlayto simulate catching the light. - Layer 3 (Depth): Added a top-down
white-to-blackgradient withmix-blend-soft-lightto simulate metallic curvature/surface depth. - Fixed linting errors from previous edits (syntax issues with spaces in class strings).
- Created a consistent
Result
Foil cards now possess a distinct, colorful, and metallic sheen that animates, making them stand out significantly more than standard cards.