No.129 · Cards
Feature Trio
Three cards that explain a product by doing it: each card holds a tiny working piece of the UI — a build log, a live latency line, a firewall counter — that wakes up when you point at it.
The prompt
Written for the variant you picked above: Frost
Build a three-card feature section for a developer platform where each card demonstrates its feature with a miniature piece of working UI instead of an icon. The cards share one rounded container and are separated by 1px gaps over a hairline background (the gaps are the dividers). Each card: a 152px dark 'screen' at the top, then a mono index, an Instrument Serif title and a short muted paragraph. - Ship from a push: a build log whose lines complete in sequence — waiting lines faint, the running line bright with a blinking accent dot, finished lines with green dots, ending on 'Ready · 41s'. - See it as it runs: a live latency sparkline (40 points, random walk with occasional spikes) with its area tint and the current p95 in tabular mono. - Safe by default: small red requests fall onto an accent 'edge' line and burst there, while a 'Blocked today' counter climbs. At rest every demo idles at a quarter speed. Pointing at (or focusing) a card makes its demo run at full speed and raises its accent ring and glow, while the other two demos dim to 50%. One column below 44rem. Selected variant — Frost (frost): accent="#b9cce4" (frost blue) for running dots, the sparkline, the edge line and the active ring. 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: Hover or focus a card to run its demo at full speed; the others quieten. Motion: Demos tick on intervals (full speed when active, 4× slower at rest); card background and demo ring transition 400ms. Accessibility: Cards are links with real headings text; demos are decorative (aria-hidden). Focus behaves like hover. Reduced motion freezes the demos in a representative state. Responsive behavior: Container query stacks the cards below 44rem. Touch: Tapping a card activates it; demos idle otherwise. 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
- Hover or focus a card to run its demo at full speed; the others quieten.
- Motion
- Demos tick on intervals (full speed when active, 4× slower at rest); card background and demo ring transition 400ms.
- Accessibility
- Cards are links with real headings text; demos are decorative (aria-hidden). Focus behaves like hover. Reduced motion freezes the demos in a representative state.
- Responsive
- Container query stacks the cards below 44rem.
- On touch
- Tapping a card activates it; demos idle otherwise.