Block 165 of 297
Recreation Programs
A seasonal program catalog with ages, schedules, resident and non-resident fees, and register or waitlist links.
- Puck key
- RecreationProgramsBlock
- Export
- recreationProgramsBlock
- React component
- <RecreationPrograms />
- Path
- components/puck/recreation-programs-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 two-column catalog of program cards, one column on phones. Each card shows category, age range, dates, days and times, location, resident and non-resident fees, and a Register button. Programs marked Full turn gray and offer a waitlist link instead. It suits a seasonal activity guide where families compare times and prices before signing up.
- A parks and recreation fall or summer program listing
- A senior center or youth center class schedule
- A featured programs section on a rec department home page
Writing the content
- Set Availability on each program. Full replaces the Register button with Join the waitlist when Waitlist link has a URL, or the words "Registration is full" when it does not.
- Leave Non-resident fee blank if everyone pays the same; the label then reads "Fee" instead of "Resident".
- Use Registration note for the one date that matters most, like when resident registration opens.
- Explain who counts as a resident in Residency note. The block holds up to 30 programs.
Accessibility
- Availability is written out ("Full", "A few spots left"), not shown only through the gray card or badge color (WCAG 1.4.1).
- Register and Join the waitlist buttons add the program name for screen readers, so each link makes sense on its own (WCAG 2.4.4).
- Dates, When, Where and fees are description lists, so each value is announced with its label.
Customizing the code
- The register button is bg-indigo-700 and full cards use bg-neutral-100; edit these in the card and button classNames.
- Change md:grid-cols-2 on the list to show more cards per row on wide screens.
Editor fields
What content editors see in the P1 sidebar when they select this block.
- Eyebrowtext
- Headingtext
- Heading levelselect
- Introtextarea
- Registration notetext
- Programsarray
- Residency notetextarea
- Catalog link texttext
- Catalog linktext