Asymmetric Tall + Compact Cards over Media
Alternating asymmetric rows, each pairing one tall highlight card (icon, title, description, optional stat) with a stack of smaller compact cards, laid over a full-bleed background photo darkened by a semi-transparent overlay for text contrast. Row order flips left/right on every other row.
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/asymmetric-tall-compact-cards-media.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/feature/feature69.tsx instead.
Usage
The file also exports feature69Demo, 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 { Feature69, feature69Demo } from "@/components/blocks/feature/feature69"; export default function Page() { return <Feature69 {...feature69Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| eyebrow | string | undefined | Small centered label above the heading. |
| heading | string | none | Centered section heading. |
| description | string | undefined | Centered supporting paragraph. |
| backgroundImage | MediaSlotImage | none | Full-bleed photo behind the whole section, darkened by an overlay. |
| rows | Feature69Row[] | none | Alternating highlight-card + compact-cards rows; every other row flips left/right. |
| className | string | none | Extra classes for the outer section element. |
Types
interface Feature69HighlightCard { icon: LucideIcon; title: string; description: string; stat?: { value: string; label: string }; } interface Feature69CompactCard { icon: LucideIcon; title: string; description: string; } interface Feature69Row { highlight: Feature69HighlightCard; compactCards: Feature69CompactCard[]; }
Behavior notes
- Fully static Server Component: no event handlers, no client state.
- The background photo fills the section via an absolutely positioned MediaSlot plus a bg-background/85 overlay div, using semantic tokens so the overlay (and all card/text colors on top of it) automatically adapt between light and dark theme rather than hardcoding a black scrim.
- Every other row swaps the highlight card and compact-card stack via a CSS order utility on the first grid child, alternating which side carries the tall card.
- Cards accept their own icon component reference directly, which is safe here since this is a Server Component (not "use client").
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.
Center-Line Journey Timeline
Vertical hairline timeline alternating stages either side, dropping a phone frame on one step.
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.