Block 06 of 297
Collage Hero
Copy beside an asymmetric, overlapping three-photo mosaic with an optional round stamp badge.
- Puck key
- HeroCollageBlock
- Export
- heroCollageBlock
- React component
- <HeroCollage />
- Path
- components/puck/hero-collage-block.tsx
- Dependencies
- None
- License
- MIT
About this block
When to use it, how to write for it, and what to change in the code.
What it's for
Copy and buttons on the left, with an overlapping mosaic of up to three photos on the right and an optional tilted round badge. The arrangement is fixed: one large anchor photo, a smaller one high on the right and a third overlapping the bottom. It suits programs that want to show several people or places at once. On phones the mosaic follows the copy.
- A youth, arts or recreation program with many participants
- An organization's About page that shows people and places together
- A camp or class registration landing page
Writing the content
- Add up to three Photos in order: large anchor, small top right, then the overlapping one. Square-ish photos crop best.
- With only one photo it fills the whole square; with two, the third slot is simply empty, so three gives the intended look.
- Badge value fits a year or short figure like 1962 or 40K; the stamp is small, and Badge label should stay two or three words.
- Leave Badge value blank to remove the stamp entirely.
Accessibility
- Each photo has its own Alt text field; a blank one renders an empty alt so decorative images are skipped by screen readers.
- The badge is plain text, so its value and label are read in order after the photos.
- The heading tag is chosen with the Heading level field, and both links show a visible focus outline at 44px minimum height.
Customizing the code
- Tile positions on the 12 by 12 grid are in the TILES array; edit the col and row start and end classes to rearrange the mosaic.
- The badge uses bg-indigo-600 with -rotate-6; change the color or tilt there.
Editor fields
What content editors see in the P1 sidebar when they select this block.
- Eyebrowtext
- Headingtextarea
- Heading levelselect
- Bodytextarea
- Primary button texttext
- Primary button linktext
- Secondary link texttext
- Secondary linktext
- Photosarray
- Badge valuetext
- Badge labeltext