Skip to content

Block 207 of 297

Storytime Schedule

Weekly kids' storytimes grouped by age with jump links, day, time, branch and a plain-text registration note.

Puck key
StorytimeScheduleBlock
Export
storytimeScheduleBlock
React component
<StorytimeSchedule />
Path
components/puck/storytime-schedule-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

Weekly children's programs grouped under age headings, each a card with the age range, day and time, branch, a short description and a badge saying whether registration is required. Pill links at the top jump to each age group. Cards sit two across from tablet width and stack on phones.

  • A youth services storytime page for the season
  • An early literacy page for parents of babies and toddlers
  • A branch page listing only that location's storytimes
Writing the content
  • Type Age group the same way on every program that belongs together; groups appear in the order each is first used, and jump links only show when there are two or more.
  • Programs takes up to 20 entries. Repeat a program for each day or branch it runs, as the sample does for Baby Rhyme Time.
  • Choose Registration for every program. It sets the badge text and changes the card link to "Register" or "Details".
Accessibility
  • Registration status is spelled out in the badge ("Registration required" or "Drop in, no registration"), not shown by color or icon alone (WCAG 1.4.1).
  • Age groups and program names form a two-level heading outline below the Heading level setting, and day, time and branch sit in a description list with hidden "When" and "Where" terms (WCAG 1.3.1).
  • Each "Register" or "Details" link adds the program name and day for screen readers, and jump links count programs in words.
Customizing the code
  • The required badge uses bg-indigo-600 and the age range text-indigo-700; change the indigo- classes to match your youth services palette.

Editor fields

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

  • Eyebrowtext
  • Headingtext
  • Heading levelselect
  • Introtextarea
  • Jump links labeltext
  • Programsarray
  • Notetextarea
  • Calendar link texttext
  • Calendar linktext