Staaarter

Hero Banner with Avatars

Wide hero image with gradient overlay text, inline stats, and a stacked avatar strip of team members.

By Staaarter Team
About
Docs
Live preview

Docs

Installation

A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its avatar, avatar-initials, media-slot dependencies and any missing npm packages, and installs them straight into your project.

npx shadcn add https://staaarter.com/r/hero-banner-with-avatars.json

Prefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/about/about11.tsx instead.

Usage

The file also exports about11Demo, 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 { About11, about11Demo } from "@/components/blocks/about/about11";

export default function Page() {
  return <About11 {...about11Demo} />;
}

Props

PropTypeDefaultDescription
headingstringnoneHeading overlaid on the image.
descriptionstringundefinedSupporting text overlaid beneath the heading.
image{ src: string; alt: string }undefinedBackground image; renders a placeholder gradient when omitted.
statsStatItem[][]Inline stats in the overlay footer.
teamTeamMember[][]Stacked avatars in the overlay footer.
classNamestringnoneExtra classes for the outer section element.

Types

type StatItem = { title: string; value: string };

type TeamMember = {
  name: string;
  avatar?: { src: string; alt: string };
};

Behavior notes

  • Text sits on top of the image via a bottom-to-top gradient overlay (from-background via-background/60 to-transparent), so it stays legible over any image without needing a fixed dark scrim.
  • The image container's aspect ratio changes at the sm breakpoint (16:9 on mobile, 21:9 from sm up), which is different from every other image-based About block in this category and worth checking against your content at both sizes.
  • stats and team share one flex-wrap row rather than separate grids, so the overlay stays a single readable line until it wraps on narrow viewports.