6 min read
Keeping clips after a match
Where clips go once a match ends, how long they stay and who can delete them.
- Guides
Tile for a blog post or portfolio project: cover, date, title, excerpt and tags. The whole card is one link with its focus ring on the card, your own action links stay clickable on top. Server-safe.
6 min read
Where clips go once a match ends, how long they stay and who can delete them.
Client work
A booking flow for a small marina, from the first sketch to the summer season.
A text-only post needs no cover. It still links from anywhere on the card.
import { PostCard } from "@/components/blocks/post-card";export function BlogList() { return ( <div className="grid gap-4 sm:grid-cols-2"> <PostCard as="h2" title="Keeping clips after a match" href="/blog/keeping-clips" time="Oct 21, 2026" dateTime="2026-10-21" meta="6 min read" excerpt="Where clips go once a match ends and how long they stay." tags={["Guides"]} media={<img src="/covers/clips.jpg" alt="" />} /> <PostCard as="h2" title="Why we moved to one spring" href="/blog/one-spring" time="Sep 3, 2026" dateTime="2026-09-03" excerpt="A text-only post needs no cover." /> </div> );}import { PostCard } from "@/components/blocks/post-card";export function Project() { return ( <PostCard title="Harbor booking" href="/work/harbor" time="2026" meta="Client work" excerpt="A booking flow for a small marina." tags={["Next.js", "Postgres"]} action={ <a className="text-sm underline" href="https://example.com/harbor"> Source </a> } /> );}Tile for a blog post or portfolio project: cover, date, title, excerpt and tags, with the whole card as one link.
title requiredReactNodeactionReactNodeasDefault "h3""h2" | "h3" | "h4"dateTimestringtime, e.g. "2026-10-21".excerptReactNodehrefstringmediaReactNode<img>). Left out, the card is text only.metaReactNodeonNavigate(href: string, event: MouseEvent<HTMLAnchorElement, MouseEvent>) => voidonClick for the card's link, e.g. for client routing or to stub the link in a demo.ratioDefault 16 / 9numbertagsstring[]timeReactNode| Prop | Type | Default |
|---|---|---|
title requiredTitle of the post or project, the card's heading. | ReactNode | — |
actionYour own links, e.g. to a project's source. They stay clickable over the card's link. | ReactNode | — |
asHeading level, to fit the page's outline. | "h2" | "h3" | "h4" | "h3" |
dateTimeMachine-readable date for time, e.g. "2026-10-21". | string | — |
excerptOne or two sentences, cut off after three lines. | ReactNode | — |
hrefPage it leads to. The whole card becomes the link. | string | — |
mediaCover ( <img>). Left out, the card is text only. | ReactNode | — |
metaBeside the date, e.g. the author or "6 min read". | ReactNode | — |
onNavigateonClick for the card's link, e.g. for client routing or to stub the link in a demo. | (href: string, event: MouseEvent<HTMLAnchorElement, MouseEvent>) => void | — |
ratioCover width/height, e.g. 1 for square. | number | 16 / 9 |
tagsTopics or a project's stack, as badges. | string[] | — |
timeDate as shown, e.g. "Oct 21, 2026" or a year. | ReactNode | — |
required
Also accepts every <article> prop.
Every component also takes className.