Before vs After Comparison
A centered, two-column comparison list contrasting the current state of a product against what changes once the new version launches. The "before" column uses muted text with an X-style icon per row, the "after" column uses full-strength text with a check icon, so the improvement reads at a glance.
Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/before-vs-after-comparison.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/coming-soon/comingsoon12.tsx instead.
Usage
The file also exports comingsoon12Demo, 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 { ComingSoon12, comingsoon12Demo } from "@/components/blocks/coming-soon/comingsoon12"; export default function Page() { return <ComingSoon12 {...comingsoon12Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| eyebrow | string | "Coming soon" | Small label above the heading. |
| heading | string | "What's changing" | Section heading. |
| description | string | "A quick look at how things improve..." | Section subheading. |
| beforeLabel | string | "Today" | Column header for the current-state side. |
| afterLabel | string | "After launch" | Column header for the upcoming side. |
| rows | ComparisonRow[] | none | Paired before/after statements, one row of each per entry. |
| className | string | none | Extra classes for the outer section element. |
Types
export interface ComparisonRow { id: string; before: string; after: string; }
Behavior notes
- Fully static: a plain Server Component, both columns render from the same fixed `rows` array, there is no toggle or animation between the two states.
More Coming Soon Blocks
View all →countdown-timer-launch
Countdown Timer Launch
A centered launch page with a live days/hours/minutes/seconds countdown to a target date.
development-progress-milestones
Development Progress Milestones
A centered launch page with an overall progress bar and a milestone tracker list with status badges.
social-connect-launch
Social Connect Launch
A centered coming-soon page with pill-style outline buttons linking out to Twitter, GitHub, LinkedIn, and email.
animated-icons-preview
Animated Icons Preview
A centered coming-soon page with a row of bobbing icon tiles and a pulsing build-status indicator.
sneak-peek-feature-grid
Sneak Peek Feature Grid
A centered coming-soon page with a grid of blurred feature cards teased behind a lock icon overlay.
waitlist-with-avatars
Waitlist with Avatars
A centered coming-soon page with a working waitlist signup form, stacked subscriber avatars, and a live join count.