Center-Line Journey Timeline
A feature section that runs a hairline down the middle of the section and alternates its stages either side of it, dropping an image tile inside a live phone frame onto the step worth showing rather than describing in text.
Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its media-slot dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/center-line-journey-timeline.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/feature/feature2.tsx instead.
Usage
The file also exports feature2Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.
import { Feature2, feature2Demo } from "@/components/blocks/feature/feature2"; export default function Page() { return <Feature2 {...feature2Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| eyebrow | string | none | Small label above the heading. |
| heading | ReactNode | none | Section heading, centered above the timeline. |
| description | string | none | Supporting copy under the heading. |
| steps | JourneyStep[] | none | Stages of the timeline, alternating sides in array order. |
| className | string | none | Extra classes for the outer section element. |
Types
type JourneyStep = { title: string; description: string; /** Only the step worth showing should set this; renders a phone-frame image tile instead of plain text. */ media?: { src: string; alt: string }; };
Behavior notes
- This is a static, server-rendered section: the hairline, dots, and alternating layout are all plain CSS, nothing here is interactive.
- Any step whose media field is set renders as a decorative phone-frame mockup (a rounded border shell with the image inside) instead of a text card; steps without media render a plain title/description card.
- Sides alternate strictly by array index (even index on one side, odd on the other), independent of which steps happen to have media.
- The phone frame is a hand-built div shell, not a real interactive device preview.
More Feature Blocks
View all →Full-Bleed Workspace Band
Two-column header above a full-bleed image band with a live view switcher, closing on three numbered captions.
Figure-Led Evidence Rows
Tall image with a floating before-and-after card, leading into oversized-figure evidence rows.
Staircase Asset Trio
Three image tiles stepping down the page in a staircase, each floating a different live asset.
Sticky Reference List
Sticky heading column beside three labelled groups of checked capabilities, closing on a footnote.
Day Timeline Rows
Hairline rows walking through one working day, stamped with time and a live approval card inline.
Expanding Proof Rows
Full-width hairline rows that expand in place to reveal a paragraph beside a live asset image.