Skip to content

Block 280 of 297

Voronoi Mosaic

Stats section on solid cards over slowly shifting stained-glass panes in three brand colors.

Puck key
VoronoiMosaicBlock
Export
voronoiMosaicBlock
React component
<VoronoiMosaic />
Files
components/puck/voronoi-mosaic-block.tsx
components/puck/voronoi-mosaic.client.tsx
Dependencies
vgpu
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 stats section over slowly shifting stained-glass panes in three colors joined by thin dark leading. The heading sits on a near-black panel, and each figure gets its own white card with an optional sentence of context. Cards stack on phones, pair up on tablets and run three across on desktop, where every other card drops slightly.

  • A community foundation's year in review
  • Grant or impact summaries with context for each number
  • Coalition or partnership pages that stress many parts making a whole
Writing the content
  • Figures allows zero to four items, but the desktop grid is three across, so three makes the cleanest row.
  • Use Detail for one sentence explaining a figure, such as the year-over-year change; it hides when blank.
  • Leading color draws the lines between panes. A near-black value keeps the panes distinct.
  • Pane size Large shows a few big panes; Small fills the background with many.
Accessibility
  • All copy sits on opaque panels and white cards, so legibility doesn't depend on the colors moving behind it.
  • Figures are a description list, with Detail as a second dd tied to the same label (WCAG 1.3.1).
  • The glass canvas is aria-hidden; reduced motion gives a still frame, and animation pauses off screen.
Customizing the code
  • Requires vgpu and voronoi-mosaic.client.tsx. The pick thresholds (0.36 and 0.7) in fs_main set how often each glass color appears, and width = 0.008 sets leading thickness.
  • Remove lg:translate-y-8 on the figure cards for an even row.

Editor fields

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

  • Eyebrowtext
  • Headingtextarea
  • Heading levelselect
  • Bodytextarea
  • Figuresarray
  • Source notetext
  • Leading colortext
  • Glass color 1text
  • Glass color 2text
  • Glass color 3text
  • Pane sizeradio
  • Motionradio