Airline dispatch hero
Shown as Ceiling, a made-up product
A framed headline over a bright, drifting sky, and a live dashboard (Fernhall's print farm floor) rising from below and sinking into a bank of cumulus.
Installation
pnpm dlx shadcn@latest add "https://propui.dev/r/ceiling-hero.json?token=…"Adds the piece to components/propui/04-ceiling-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 first screen of a product with a busy dashboard you want people to try, not just look at.
- Showing one app at desktop, tablet and phone size, each in its own device frame.
- A bright, open brand where a headline sits over sky.
Something else fits when
- A page that needs to scroll into more sections under the hero: this one fills its parent and clips; Catalogue studio hero sits in normal flow.
- A dark or earthy brand: Grain storage hero uses the same kind of sky in khaki over fields.
- When the dashboard itself is the page: use Print farm floor on its own.
Usage
Fills a full window: give it a container with a definite height.
import Piece from "@/components/propui/04-ceiling-hero/Section";
export default function Page() {
return (
<main className="h-dvh w-full overflow-hidden">
<Piece />
</main>
);
}Change the headline, lede, buttons and nav LINKS in Section.tsx. The window shows the dashboard from dashboard/; edit dashboard/data.ts to change its figures, or swap the whole folder for your own product.
Your data
Replace these and everything on screen follows.
LINKSstring[]- The nav links in the pill and in the phone menu (Section.tsx).
PRINTERS, CUSTOMERSstring[], { name; price; weight }[]- The 12 printers and who the parts are billed to (dashboard/data.ts).
DAYS{ date; cells: Cell[] }[]- 90 days of printer-days, made once from a fixed seed; the waffle chart, stats, failure reasons, power and customers all sum from it.
LIVE{ printer; status; job?; customer?; pct?; left?; note? }[]- Running now: each printer's job, progress and any warning.
QUEUE{ job; customer; material; hours; due }[]- The queue table; finish dates and late flags come from schedule().
SHIPPED, ORDERS{ orders; onTime }, { order; customer; delta; shipped }[]- Shipped on time: the headline rate and one dot per order.
LAST_SERVICE, SERVICE_EVERYRecord<printer, [month, day]>, number- Service due: hours since each printer's last service.
Interactions
- Use the dashboard in the window: pick a printer to filter every figure, read the 90-day chart day by day, open and close the farm tree and the sidebar.
- Hover the customers, power and shipped cards to read one customer, day or order.
- Hover or focus a nav link to slide the highlight onto it.
- On tablet and phone, open the menu button for the links; it closes on Esc, a click outside, or a link.
Keyboard
- Tab
- Move between links and controls, including those inside the dashboard.
- EnterorSpace
- Press the focused button: a printer row, All printers, the farm tree, the sidebar toggle or the menu.
- ←or→
- On the focused 90-day chart, move a day back or forward; focusing it starts on today.
- Esc
- On the chart, clear the day. Anywhere, close the phone menu when open.
Behaviour
Read from the code: roles, motion, breakpoints and what runs.
Accessibility
- The hero is a section labelled by its headline; the sky and the cloud bank are hidden from screen readers.
- The menu button has a label, aria-expanded and aria-controls; the closed menu panel is inert.
- In the dashboard, printer rows and All printers are toggle buttons with aria-pressed, and the farm tree and sidebar toggle carry aria-expanded.
- The 90-day chart is a focusable group with instructions in its label, and a hidden polite live region reads out the day in focus.
- Figures that change on hover sit in polite live regions; the power bars are an image with a label giving the range.
- The dashboard has its own h1 (Floor) under the hero's h1.
Motion
- The one moment: the dashboard window rises 70px and fades in over 1s, starting just after the nav and the copy fade in.
- The sky drifts with its far clouds moving against the near ones, and a second, transparent cloud bank drifts over the foot of the window.
- The nav highlight slides between links on a spring; the phone menu fades and drops in with a CSS transition.
- Inside the dashboard, chart columns wipe up as it loads, figures roll to new values on a spring, and card bars grow in when scrolled into view.
- Reduced motion: both cloud layers hold still, figures jump to their value, chart columns appear at once, and Motion transitions are cut by MotionConfig reducedMotion="user".
Responsive
- The hero fills its parent's height and clips; the window runs off the bottom into the cloud bank.
- Above 1040px: a 1180px browser-like window, 640px tall, with the dashboard laid out at 1440px and scaled down to fit.
- Up to 1040px: the window becomes an upright tablet with a dark bezel and camera dot (up to 620px wide, 860px tall); the nav links and Sign in fold into a menu button.
- Up to 560px: the window becomes a 292 × 660px phone with a status bar and island; the headline drops to 35px and the cloud bank gets shorter.
- The dashboard is laid out at 1440, 820 or 390px depending on the screen width inside the frame, and its own container queries then show its desktop, tablet or phone layout.
Performance
- Two WebGL canvases, the sky and the cloud bank, each drawn every animation frame while mounted. Neither pauses off screen, and under reduced motion both keep drawing still frames.
- Canvas resolution is capped at 1.5× device pixels.
- A ResizeObserver on the window works out the dashboard's layout width and scale.
- The nav pill uses a 24px backdrop-filter blur.
- Five local font files, shared by the hero and the dashboard; no images.
Notes for AI
Give your coding assistant the Markdown, not a screenshot.
- A section in normal page flow that takes its height from its parent: give the parent a height (for example 100svh). Hero classes start with cl- under .cl; the dashboard's start with fd- under .fd.
- Keep the dashboard's figures in dashboard/data.ts; totals, rates, revenue, power and the queue's finish dates are computed there or in Fernhall.tsx. Don't hard-code them.
- Some dashboard text is fixed in Fernhall.tsx: the A3 finding since 18 Oct, the four recent order indexes (51, 48, 45, 43) and the sidebar counts.
- To put your own product in the window, replace FernhallDashboard in DashFrame and keep renderWidth() in step with your app's breakpoints.
- The cloud bank has pointer-events: none, so it never blocks a click on the window; keep it that way.
/p/ceiling-hero/markdownThe whole library for assistants: llms.txt, or the MCP server in AI tools and MCP.