#069
Content card
A single Card with a Featured eyebrow, a heading, a description and an Explore materials link.
Hand this to your AI. It names the exact library parts, timings and accessibility promises of this demo.
Build the "Content card" pattern (@codeatlasdev/ui demo #069, surfaces/card) in my app.
Call get_demo({ ids: ["#069"] }) first and keep its structure. It needs @codeatlasdev/[email protected].
Use: Promo or feature cards in a landing page or dashboard that lead to a detail page.
Keep these library parts, with the props and tokens the demo uses:
- Card from "@codeatlasdev/ui"
Behaviour to keep:
- `<Card class="content-card">` with `max-width: 360px`
- Body is a `<div class="body">` with an eyebrow paragraph, `<h3>Surface materials</h3>`, a description paragraph and a link
- Link is `<a href="/docs/foundation/materials/">Explore materials →</a>`
- The card itself has no `href`, only the inner anchor is a link
Reduced motion: the demo handles it; keep that branch.
Keyboard: operable; keep the focus order and key handling.
Change only the copy and the data. Use the theme tokens (--ca-*), never raw colours. Library parts
- Card
@codeatlasdev/ui
How it is built
- `<Card class="content-card">` with `max-width: 360px`
- Body is a `<div class="body">` with an eyebrow paragraph, `<h3>Surface materials</h3>`, a description paragraph and a link
- Link is `<a href="/docs/foundation/materials/">Explore materials →</a>`
- The card itself has no `href`, only the inner anchor is a link
Related
Loading source.