Skip to content

Block 41 of 297

Community Voices

Photo mosaic of neighbors with short quotes overlaid, alternating large and small tiles.

Puck key
CommunityVoicesBlock
Export
communityVoicesBlock
React component
<CommunityVoices />
Path
components/puck/community-voices-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

A mosaic of short quotes from residents or members, each laid over a photo with a dark gradient for legibility. Tiles come in groups of five, one large and four small, and the large tile switches sides in the second group. A voice with no photo becomes a solid indigo quote card. Phones show one column, tablets two.

  • A park, library or community center opening page that shares what visitors said
  • A neighborhood planning page summarizing public feedback in residents' words
  • A membership page where long-time members describe why they stay
Writing the content
  • Five or ten voices fill the mosaic evenly; the block accepts one to ten.
  • Keep each Quote under about 25 words. The first tile in each group of five prints it larger.
  • Neighborhood or role adds context like "Member since 2019" after the name. Leave Photo URL blank for a text card.
Accessibility
  • Each tile is a figure with blockquote and figcaption, keeping quote and speaker together (WCAG 1.3.1).
  • Photo alt text is read separately from the quote, so describe only the scene.
  • White text sits on a gradient that is lighter near the top of the photo; check contrast on bright images (WCAG 1.4.3).
Customizing the code
  • The group-of-five pattern is set in tileShape: change i % 5 and the col-span and row-span classes to alter the rhythm.
  • Text-only cards alternate bg-indigo-700 and bg-indigo-950; the link and quote mark also use indigo shades.

Editor fields

What content editors see in the P1 sidebar when they select this block.

  • Headingtext
  • Heading levelselect
  • Introtextarea
  • Voicesarray
  • Link texttext
  • Linktext