Catalogue studio hero
Shown as Tessel, a made-up product
Hero for a studio that rewrites a shop's catalogue: a centred headline over the working app, set in a panel of slowly drifting painted colour, where drafts write themselves into product cards you can approve.
Installation
pnpm dlx shadcn@latest add "https://propui.dev/r/tessel-hero.json?token=…"Adds the piece to components/propui/05-tessel-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
- The top of a landing page for an AI writing or content tool, with sections following below.
- Showing a prompt turning into reviewable drafts, with a person approving each one.
- A light, calm brand that wants colour without a photo or a 3D render.
Something else fits when
- A product that isn't prompt-and-review: Grain storage hero shows a list-and-detail app instead.
- Showing an agent's steps rather than its output: Run rewind is built for that.
- A hero that must fill exactly one screen: Airline dispatch hero is fixed to its parent's height.
Usage
A section in normal page flow.
import Piece from "@/components/propui/05-tessel-hero/Section";
export default function Page() {
return <Piece />;
}Replace SHOP, THREADS and NEXT_DRAFTS in data.ts with your own shop and copy, and LOGOS with real customers. The headline, lede, announcement strip and nav menus are in Section.tsx.
Your data
Replace these and everything on screen follows.
THREADSThread[]- The thread list and the studio view; the first thread opens on load with its third draft still writing.
Thread{ id; title; when; prompt; intro; drafts: Draft[] }- One prompt, the reply line under it, and its draft cards.
Draft{ id; title; before?; body; lang; words; voice; look }- One card: title, struck-out old title, copy, language, word count and brand-voice match.
Look{ kind: "knit"; stitch; yarn } | { kind: "glaze"; glaze }- The drawn product on the card, from three colours.
NEXT_DRAFTSDraft[]- What any sent prompt streams in, so a new thread always shows real copy.
SHOP{ name; initials }- The breadcrumb and the avatars.
MODELS{ id; name; note }[]- The model picker in the composer.
CATALOGUE, VOICE{ name; status; langs; updated }[], { rule; eg }[]- The Catalogue table and the Brand voice rules.
LOGOSstring[]- The wordmarks in the proof line; each index has its own type style in post.css.
Interactions
- Switch the app between Studio, Catalogue, Reviews and Brand voice, and between threads.
- Approve a draft to stamp it; press again to take it back. Reviews shares the same approvals.
- Type a prompt and send it: a new thread streams three drafts in, one after another.
- Add the brand voice mention, pick a model, and toggle the format chips.
- Open a nav dropdown, or the menu on smaller screens; Esc or a click outside closes it.
Keyboard
- Tab
- Move between links and controls; closed dropdowns are inert and skipped.
- EnterorSpace
- Press the focused button: a view, a thread, Approve, a chip, a model.
- Enter
- In the composer, send.
- Shift+Enter
- In the composer, add a line.
- Esc
- Close an open nav dropdown or the menu.
Behaviour
Read from the code: roles, motion, breakpoints and what runs.
Accessibility
- The hero is a section labelled by its headline; the app's main pane is labelled with the current view.
- The draft grid is a polite live region, so streamed drafts are announced as they land.
- Approve, the format chips and Reviews' buttons are toggles with aria-pressed; the current view and thread carry aria-current.
- Nav dropdowns and the menu have aria-expanded and aria-controls, and are inert while closed.
- The model picker opens a listbox with aria-selected on the current model; it has no arrow-key handling.
- The composer has a label; the highlighted mirror behind it is hidden. Send is disabled while the prompt is empty.
- Product drawings, the stamp and the painted panel are hidden from screen readers; the voice match carries a label.
Motion
- The one moment: the painted panel fades up, then the app rises 48px into it over 1.1s, and the third draft writes itself in.
- Seven soft colour blobs orbit and change shape on CSS loops of 13 to 24s, and lean slightly toward the pointer on mouse devices.
- A writing card shows a shimmering skeleton and a nodding pen dot, then its copy types out over 0.9s.
- Approve drops a stamp in on a spring; views and threads swap with a short fade.
- Reduced motion: the blobs, shimmer and pen stop, drafts land at once with their full text, and Motion transitions are cut by MotionConfig reducedMotion="user".
Responsive
- The section sits in normal flow; the painted panel is 682px tall on desktop and 1120px wide at most.
- Up to 1080px: the nav dropdowns fold into a menu button, the thread column hides, and the studio shows two drafts.
- Up to 720px: Log in and Book a walkthrough hide, the strip shortens, the headline is 40px, the panel is 560px tall, the app's sidebar and format chips hide, and one draft shows.
Performance
- The colour blobs are CSS animations on radial gradients; an IntersectionObserver pauses them while the panel is off screen.
- The pointer lean listens to pointermove on the window, only on devices with a fine pointer.
- Typing out a draft runs an animation frame loop for 0.9s and then stops; streaming steps are timeouts 1.1s apart, cleared on unmount.
- No canvas, no images: inline SVG and seven local font files, three of them only for the proof wordmarks.
Notes for AI
Give your coding assistant the Markdown, not a screenshot.
- A section in normal page flow, with the proof line below it. Every class starts with ts- under .ts.
- Keep copy in data.ts. A sent prompt always streams NEXT_DRAFTS; to call a real model, replace that in send() in Section.tsx and keep draft ids unique per thread.
- Card phases start at { "knit-nl": [2, 2, 1], ... } in App; if you rename or add threads, update that map.
- Word counts and voice scores are typed in data.ts, not counted; keep them true to the copy.
- Breakpoints hide the third draft (tablet) and all but the first (phone), so put the strongest draft first.
/p/tessel-hero/markdownThe whole library for assistants: llms.txt, or the MCP server in AI tools and MCP.