Skip to content

No.136 · Cards

Postcard

A big-letter postcard: “Greetings from” in script over MUSCAT in chunky block capitals filled with the sky, over the scene. Turn it over and the back writes itself line by line in blue pen, then the postmark comes down on the perforated stamp with a thud.

The prompt

Copy this text

Automatic copying is unavailable. Copy the selected text using your device’s copy command.

Written for the variant you picked above: Muscat

Build a vintage large-letter postcard (3:2, max 580px; everything sized in container units so it scales) inside a button that turns it over. Front: an illustrated SVG scene inside a white border; centred lettering — "Greetings from" in Pinyon Script with a red drop shadow, tilted −5°, over the town name in Anton capitals in perspective (rotateX 10°, scaleY 1.12), built from three stacked copies: a dark red block extrusion (stepped text-shadows plus a soft drop shadow), the letters filled with a three-stop sky gradient (background-clip: text), and a white inline (-webkit-text-stroke) nudged up-left. A grain and vignette layer finishes it. Turning: the card is preserve-3d with backface-hidden faces and rotates 180° in 900ms. The back is remounted on each turn so it writes itself: the message lines (italic serif in blue pen) are revealed by clip-path sweeps 520ms apart, the address lines on the right with ruled lines; a stamp with a scalloped perforated edge (a radial-gradient mask) and a tiny illustration; then the postmark (SVG: double ring, the post office name on a textPath, the date, and five wavy cancellation lines) comes down — scale 1.5 → 1 and −14° → −8° in 260ms, multiply-blended — while the whole card does a small 260ms "thud" (translate/scale via the independent translate and scale properties, so it doesn't fight the flip transform). Each place supplies its name, scene, sky gradient, stamp and message. The button says which side is showing (aria-pressed); the hidden face is aria-hidden. Reduced motion: instant turn, everything already written and stamped. Selected variant — Muscat (muscat): Place "Muscat": its own illustrated scene, sky and stamp; the message reads "Dear Sami — The water here is the colour of the bottle you broke in Year 9. Wish you were here." This selection takes precedence over references to other themes or options in the general brief. Implement this selected appearance; do not add a variant picker or alternative appearances unless requested. Implementation requirements: Use React and TypeScript. Keep the component self-contained, with uniquely scoped CSS and no animation libraries. Include required imports, styles and font setup in the result. Interaction: Click (or press Enter/Space) to turn it over and back. Motion: Flip 900ms; message lines written 520ms apart; postmark stamps in 260ms with a thud. Accessibility: A labelled toggle button; the message and address are real text; the face not showing is hidden from assistive tech. Responsive behavior: Sized entirely in container query units, so the lettering, stamp and handwriting scale with the card down to phone widths. Touch: Tap to turn it over. Preserve keyboard access, visible focus and reduced-motion behavior. Keep fictional demo data and simulated service calls in a separate usage example; expose callbacks for real actions and recover from rejected requests. Keep usage-example links inside the demo: use local buttons or prevent navigation. Demonstration links must not navigate to Vitrine routes or open other pages; preserve real URL support in the reusable component itself. Verify the result at narrow and wide viewport sizes, with keyboard input and reduced motion enabled.

Notes

Interaction
Click (or press Enter/Space) to turn it over and back.
Motion
Flip 900ms; message lines written 520ms apart; postmark stamps in 260ms with a thud.
Accessibility
A labelled toggle button; the message and address are real text; the face not showing is hidden from assistive tech.
Responsive
Sized entirely in container query units, so the lettering, stamp and handwriting scale with the card down to phone widths.
On touch
Tap to turn it over.