Staaarter

Office Locations Grid

A grid of office location cards, each with a wide photo, the city name, team headcount, and a short tagline about the office. Good for a careers page showing where a distributed company has a physical presence.

By Staaarter Team
Careers
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/office-locations-grid.json

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

Usage

The file also exports careers13Demo, 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 { Careers13, careers13Demo } from "@/components/blocks/careers/careers13";

export default function Page() {
  return <Careers13 {...careers13Demo} />;
}

Props

PropTypeDefaultDescription
headingstringnoneSection heading above the locations grid.
subheadingstringnoneShort supporting line under the heading.
officesOfficeLocation[]noneList of office cards to render.
classNamestringnoneExtra classes for the outer section element.

Types

interface OfficeLocation {
  city: string;
  teamSize: string;
  tagline: string;
  image: { src: string; alt: string };
}

Behavior notes

  • Fully static. Photos render via MediaSlot, which falls back to a gradient placeholder if an office's image field is omitted.