Staaarter

Hero Overlay & Suite Cards

A dark-overlay hero image carries the heading and description, followed by a grid of feature or tier cards, each with an image and two small badges (for example capacity and duration). Suited to hospitality- and service-style brands.

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 badge, media-slot dependencies and any missing npm packages, and installs them straight into your project.

npx shadcn add https://staaarter.com/r/hero-overlay-suite-cards.json

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

Usage

The file also exports about31Demo, 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 { About31, about31Demo } from "@/components/blocks/about/about31";

export default function Page() {
  return <About31 {...about31Demo} />;
}

Props

PropTypeDefaultDescription
headingstringnoneHeading layered over the hero image.
descriptionstringundefinedBody copy layered over the hero image, below the heading.
heroMediaSlotImageundefinedFull-bleed hero image behind a dark gradient overlay.
suitesSuiteCard[]noneCards below the hero, each with an image, description, and up to two badges.
classNamestringnoneExtra classes for the outer section element.

Types

type SuiteCard = {
  name: string;
  description: string;
  image?: { src: string; alt: string };
  badges: string[];
};

Behavior notes

  • Like About11, the hero uses the same bottom-anchored gradient overlay pattern for its heading, but About31 has no avatar row or stat row inside the hero itself; that content moves entirely into the card grid below.
  • Only the first two entries of each card's badges array render, since the layout reserves a fixed two-badge row (for example capacity and duration) per card rather than the open-ended attribute list About29's product cards use.
  • The card grid is visually closer to About18's office grid in its 3-column bordered-card shape, but About31's cards lead with an image at the top instead of an icon chip, and pair badges instead of a single icon-plus-label row.