Skip to content

No.104 · Cards

Glass Card

A card set into a small wall of glass tiles with light moving behind it, its content on a clear pane at the bottom.

The prompt

Copy this text

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

The design brief behind this component — reuse it to regenerate, remix, or explain it.

Build a premium card (22.5rem wide, 4:5.4, 24px radius, a faint white ring and a violet drop glow) whose surface is the Glass Tiles shader at card scale: four squircle glass tiles across with light beams and pools drifting behind them and a lamp under the pointer, each tile's bevel catching the light as bright curved lines. The content sits on a clear pane at the bottom — a gradient from nearly opaque dark violet up to transparent, so the tiles stay visible above — with a mono eyebrow, a 1.5rem title, a muted price line, a short feature list with small glowing dots, and an action (here the Glass Slab button). The shader pauses offscreen and renders a still frame under reduced motion; without WebGL the tiles fall back to a CSS gradient grid. 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: The pointer carries a light behind the tiles; the action inside works as normal. Motion: The tile light drifts continuously at a slow pace; the lamp follows the pointer. Accessibility: The card is an article with a real heading and list; the tile canvas is decorative and aria-hidden; contrast comes from the opaque lower pane, not the tiles. Reduced motion shows a still frame. Responsive behavior: Fills narrower screens up to 22.5rem and keeps its proportions. Touch: No pointer lamp on touch; the light keeps moving on its own. 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
The pointer carries a light behind the tiles; the action inside works as normal.
Motion
The tile light drifts continuously at a slow pace; the lamp follows the pointer.
Accessibility
The card is an article with a real heading and list; the tile canvas is decorative and aria-hidden; contrast comes from the opaque lower pane, not the tiles. Reduced motion shows a still frame.
Responsive
Fills narrower screens up to 22.5rem and keeps its proportions.
On touch
No pointer lamp on touch; the light keeps moving on its own.