Carbon removal hero
Shown as Holdfast, a made-up product
Hero for a carbon removal verifier: the app sits on the horizon as one glass window, splitting each delivery into lots and holding the tonnes still missing evidence.
Installation
pnpm dlx shadcn@latest add "https://propui.dev/r/holdfast-hero.json?token=…"Adds the piece to components/propui/02-holdfast-hero/ and installs motion. Needs a free account: sign in and the command includes your token. Fonts load from Prop UI; download the zip to self-host them.
When to use
Reach for it when
- A landing page hero that shows the working product instead of a screenshot, set in a calm landscape.
- A verification or review product where each item is split into parts that pass or wait on evidence.
- A full-window first screen with a headline, a short case and two calls to action.
Something else fits when
- A page that needs to scroll under the hero inside the same block: the hero is one screen tall and never scrolls.
- An app screen people work in all day: use a dashboard such as Team-scheduling SaaS.
- A product whose story is a line over time: Home battery hero scrubs a day instead.
Usage
Fills a full window: give it a container with a definite height.
import Piece from "@/components/propui/02-holdfast-hero/Section";
export default function Page() {
return (
<main className="h-dvh w-full overflow-hidden">
<Piece />
</main>
);
}Replace BATCHES and BUYER in data.ts with your deliveries and buyer. Verified and held tonnes, lot bars, filter counts and the retired-this-year total are computed from each batch's lots; the headline, copy and sky colours live in Section.tsx.
Your data
Replace these and everything on screen follows.
BATCHESBatch[]- The deliveries list, the filter counts and the open delivery.
Batch{ id; pathway; supplier; contact; delivered; lots; evidence; log; ask?; serial; retired? }- One delivery: its lots, evidence list, drafted request, activity and registry serials.
Lot{ id; t; lab; sensor }- One lot; it counts as verified only when lab and sensor are both true, and t sets its width in the bar.
Batch.askstring?- What the drafted request asks the supplier for; without it the side panel says nothing is outstanding.
Batch.log{ when; what; retired? }[]- The activity timeline; lines marked retired show only while the batch is retired.
BUYER{ name; initials; org }- The signed-in user in the app bar, the retire line and the registry note.
Interactions
- Pick a delivery in the list to open it.
- Search by supplier, batch number or pathway.
- Filter the list to Open, Ready or Retired; each shows its live count.
- Send the drafted request for missing evidence; it changes to Request sent.
- Retire the verified tonnes of a delivery, then Undo; the retired-this-year total moves with it.
- Move the pointer over the sky to lean and speed the clouds.
Keyboard
- Tab
- Move through the nav, buttons, search, filters, the list and the open delivery.
- ↑or↓
- In the deliveries list, open the previous or next delivery; it wraps at the ends.
- EnterorSpace
- Press the focused button: open a delivery, filter, send, retire, undo.
Behaviour
Read from the code: roles, motion, breakpoints and what runs.
Accessibility
- The app is a region labelled as a working example; the deliveries list is a labelled aside.
- Only the open delivery in the list is in the tab order, and it carries aria-current; arrow keys move focus with it.
- Filters are toggle buttons with aria-pressed in a labelled group.
- Lot bars and the retired-this-year bar are role img with labels giving the counts or share.
- The request and activity panel is a polite live region, so sending and retiring are announced.
- The search field has a label; the sky, hills and icons are hidden from screen readers.
- With more contrast, reduced transparency or no backdrop blur, the glass gets a darker fill; in forced colours it gets a solid border.
Motion
- The one moment: the app window rises 24px and fades in over 0.9s on load, under the headline copy fading in.
- Verified lots fill from the left in turn when a delivery opens; switching delivery cross-fades with a slight blur.
- The filter underline, the selected row and the retired-this-year bar move on a spring; tonne figures glide to their new value.
- The sky drifts continuously in a WebGL canvas and leans toward the pointer.
- The piece sets MotionConfig reducedMotion="user"; with reduced motion the clouds stop drifting and the figures jump to their value.
Responsive
- Fills its container and never scrolls; the app window is 640px tall and is cropped by the bottom edge.
- At 1080px and below the site nav links and the user's name hide, the headline and case stack, the list narrows to 260px and the request drops under the evidence.
- At 680px and below the window is 600px tall, Sign in and the app nav hide, the list becomes a sideways strip of cards that snap, and retired-this-year hides.
Performance
- The sky is one WebGL canvas with an animation frame loop that runs while the piece is mounted; it is not paused off screen.
- The canvas renders at no more than 1.5x device pixel ratio.
- The hills are one inline SVG with noise filters, drawn once and memoised.
- The glass uses a 44px backdrop blur over the sky and hills.
- No images: one local variable font file.
Notes for AI
Give your coding assistant the Markdown, not a screenshot.
- Keep deliveries in data.ts; derive verified, held and retired tonnes from the lots with verifiedOf() and totalOf().
- Every class is prefixed hf- and scoped under .hf, because section CSS loads globally.
- The piece fills its parent's height (height: 100%) and is built as one screen; give the parent the window height.
- Keep -webkit-backdrop-filter in its own @supports block in post.css; merging it into the main rule loses the blur in Chrome.
- The window's height is fixed so switching deliveries never moves it; fit new content inside it rather than letting it grow.
/p/holdfast-hero/markdownThe whole library for assistants: llms.txt, or the MCP server in AI tools and MCP.