diff --git a/src/app/components/FlipCards.tsx b/src/app/components/FlipCards.tsx index 3fc7874..cdde105 100644 --- a/src/app/components/FlipCards.tsx +++ b/src/app/components/FlipCards.tsx @@ -32,43 +32,105 @@ const PAIRS = [ function FlipCard({ before, after }: { before: string; after: string }) { const [flipped, setFlipped] = useState(false); + const faceBase: React.CSSProperties = { + position: "absolute", + inset: 0, + borderRadius: "1rem", + display: "flex", + flexDirection: "column", + alignItems: "center", + justifyContent: "center", + gap: "12px", + padding: "24px", + textAlign: "center", + WebkitBackfaceVisibility: "hidden", + backfaceVisibility: "hidden", + }; + return (
{before}
- -{after}
- -+ {after} +
+ + +- Fahre über eine Karte — oder klicke drauf — um zu sehen was sich verändert. + Fahre über eine Karte — oder tippe drauf — um zu sehen was sich verändert.