diff --git a/app/globals.css b/app/globals.css index 369c76c..ba9407b 100644 --- a/app/globals.css +++ b/app/globals.css @@ -40,3 +40,16 @@ body { .rotate-y-180 { transform: rotateY(180deg); } + +.see-through { + mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 1) 100%); + mask-size: cover; + mask-repeat: no-repeat; + -webkit-mask-image: radial-gradient( + circle at center, + rgba(0, 0, 0, 0) 25%, + rgba(0, 0, 0, 1) 100% + ); + -webkit-mask-size: cover; + -webkit-mask-repeat: no-repeat; +} diff --git a/components/Card.tsx b/components/Card.tsx index bdaced5..769f3e0 100644 --- a/components/Card.tsx +++ b/components/Card.tsx @@ -52,11 +52,20 @@ export default function Card({ dm, card, position, settings, flipAction }: CardP className={`absolute inset-0 transition-transform duration-500 transform-style-preserve-3d ${flipped ? 'rotate-y-180' : ''}`} >
- {dm && {aria}} + {dm && ( + <> + {aria} + + + )} Card Back {dm && !flipped && ( console.log('Redo')} onPick={() => console.log('Pick')} />