Skip to content

Block 281 of 297

Caustics Pool

Aquatic center hero with shimmering pool caustics over a tiled floor, today's hours and a CTA.

Puck key
CausticsPoolBlock
Export
causticsPoolBlock
React component
<CausticsPool />
Files
components/puck/caustics-pool-block.tsx
components/puck/caustics-pool.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 hero for an aquatic center: shimmering light patterns play across a tiled pool floor with lane stripes, while the heading, body and buttons sit at the lower left. A solid white card lists today's sessions and hours. On desktop the card sits to the right of the copy; on phones it stacks below, over a flat dark overlay.

  • A municipal pool or aquatic center home page
  • Swim lesson registration or seasonal schedule pages
  • A park district's aquatics section landing page
Writing the content
  • Hours allows up to seven rows, each a Session or day plus Hours; one row per session type keeps the card scannable.
  • The hours card hides only when Hours card title and every row are blank.
  • Use Hours note for closures or fine print, such as early closing for lifeguard training.
  • Deep water color also paints the lane stripes, so keep it noticeably darker than the Tile color.
Accessibility
  • Hours render as a description list, pairing each session with its times (WCAG 1.3.1), on an opaque white card.
  • The pool canvas is aria-hidden, shows a still frame with reduced motion, and pauses off screen or in a background tab.
  • Heading level is an editor setting, and both links have a white focus outline and 44px minimum height.
Customizing the code
  • Requires vgpu and caustics-pool.client.tsx. Tile size is the 16.0 in the gridLine() calls, and the 0.95 in laneX sets lane spacing.
  • The clock icon on the hours card uses text-indigo-600; the scrim classes (bg-neutral-950/60 and the lg: gradient) control how dark the water reads behind the copy.

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
  • Hours card titletext
  • Hoursarray
  • Hours notetextarea
  • Deep water colortext
  • Tile colortext
  • Light colortext
  • Motionradio
  • Heightselect