Team Events Gallery
A CSS-columns masonry gallery (columns-2 on mobile, columns-3 from sm) showing 8 photos from company offsites, dinners, and events. Each photo is wrapped in a break-inside-avoid block with a per-item aspect (short, medium, tall) so the grid reads as a real masonry layout instead of a uniform grid.
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/team-events-gallery.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/careers/careers29.tsx instead.
Usage
The file also exports careers29Demo, 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 { Careers29, careers29Demo } from "@/components/blocks/careers/careers29"; export default function Page() { return <Careers29 {...careers29Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| heading | string | "Life at the company" | Section heading. |
| description | string | "A few moments from our team offsites..." | Section subheading. |
| photos | EventPhoto[] | none | Photos to render in the masonry grid, each with an aspect that controls its height. |
| className | string | none | Extra classes for the outer section element. |
Types
type EventPhotoAspect = "short" | "medium" | "tall"; interface EventPhoto { image: { src: string; alt: string }; aspect: EventPhotoAspect; }
Behavior notes
- Fully static: the masonry effect comes from CSS multi-column layout (`columns-2 sm:columns-3`) plus `break-inside-avoid`, not JavaScript.
- Each photo's height is chosen from the fixed `aspect` enum, not a client-computed layout.
More Careers Blocks
View all →job-listings-list
Job Listings List
A vertical list of open roles with department badge, location, employment type, and an apply link per row.
job-openings-grid
Job Openings Grid
A responsive card grid of open roles with department badge, location, employment type, and an apply link.
department-grouped-positions
Department-Grouped Positions
Open jobs grouped under department headings with minimal single-line rows for title, location, and type.
perks-open-positions
Perks & Open Positions
A benefits icon grid followed by a list of open positions with title, department, and location.
featured-role-with-positions
Featured Role with Positions
A larger featured job card with a 'Hiring now' badge, followed by a compact list of additional openings.
tab-filtered-job-board
Tab-Filtered Job Board
Department tabs (All/Engineering/Design/Marketing) that filter which job list is shown.