Staaarter

Pinned Photos About

About statement beside two overlapping, subtly rotated studio photos, each with its own caption. Reads like a pinned photo corkboard next to the copy.

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

npx shadcn add https://staaarter.com/r/pinned-photos-about.json

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

Usage

The file also exports about53Demo, 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 { About53, about53Demo } from "@/components/blocks/about/about53";

export default function Page() {
  return <About53 {...about53Demo} />;
}

Props

PropTypeDefaultDescription
eyebrowstringundefinedSmall label above the heading.
headingstringnoneSection heading in the text column.
statementstringnoneBody paragraph beneath the heading.
photos[PinnedPhoto, PinnedPhoto]noneExactly two photos, each with an image and caption, rendered as a rotated, overlapping pair.
classNamestringnoneExtra classes for the outer section element.

Types

type PinnedPhoto = {
  image: { src: string; alt: string };
  caption: string;
};

Behavior notes

  • photos is a fixed two-element tuple, not an open array like About1's team grid; the component always renders exactly two rotated cards, never zero, one, or three.
  • The rotation (-rotate-3 on the first photo, rotate-2 on the second) and the negative left margin on the second figure are fixed in the component, not props, so the pinned-corkboard look is guaranteed rather than caller-configurable, unlike About10 where the bento layout is fixed but photo count is a prop.
  • Each photo carries its own caption rendered below the frame, distinct from About9's logo strip, which has no per-item captions at all.