Overlap Heading About
About section with a large centered heading that overlaps the bottom edge of a banner image using a negative top margin, followed by a paragraph, CTA buttons, and a bottom stat ribbon.
Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its button, media-slot dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/overlap-heading-about.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/about/about38.tsx instead.
Usage
The file also exports about38Demo, 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 { About38, about38Demo } from "@/components/blocks/about/about38"; export default function Page() { return <About38 {...about38Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| heading | string | none | Large heading rendered over the image's bottom edge via a negative top margin. |
| description | string | none | Centered paragraph below the heading/image block. |
| image | MediaSlotImage | undefined | Wide banner image the heading overlaps; falls back to the shared gradient placeholder. |
| buttons | ButtonItem[] | [] | Centered CTA buttons below the description. |
| stats | StatItem[] | [] | Bottom stat ribbon in a bordered 4-column grid. |
| className | string | none | Extra classes for the outer section element. |
Types
type ButtonItem = { label: string; href?: string; variant?: "default" | "secondary" | "outline" | "ghost" | "link" | "destructive"; }; type StatItem = { title: string; value: string };
Behavior notes
- The heading sits in normal document flow with a negative top margin and a text-background color plus drop shadow so it visually overlaps the image above it, unlike About14 whose stats bar and story card never overlap and About38's own bottom ribbon which is a plain bordered grid, not overlapping anything.
- The bottom stat ribbon reuses About14's fixed 4-column centered grid pattern, but here it comes after the CTA rather than being the section's opening element.
- Buttons default to variant "default" like About1 and About14, not the alternating default/outline pattern used in About5.
More About Blocks
View all →team-mission
Team & Mission
Two-column about section with mission statement, company stats, and team member grid.
values-with-team-photo
Values with Team Photo
Full-width photo with a three-column values grid below.
timeline-milestones
Timeline & Milestones
Company stats on the left and a vertical timeline of milestones on the right.
founder-quote-team
Founder Quote & Team
Founder blockquote with avatar, followed by a horizontal team member row.
image-text-split
Image & Text Split
Tall image on the left, company story, inline stats, and CTAs on the right.
numbered-principles
Numbered Principles
Heading on the left and numbered company principles on the right.