Skip to content

Block 174 of 297

Activity Guide

The season's program guide: cover, registration dates by residency, browse, PDF and print links, and highlights.

Puck key
ActivityGuideBlock
Export
activityGuideBlock
React component
<ActivityGuide />
Path
components/puck/activity-guide-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 promo section for a printed seasonal program guide. A tilted cover image sits on one side, and the season title, registration opening dates, browse, download and print-request links, and a short "inside this guide" list with page numbers sit on the other. On large screens the cover stays in view while the text scrolls; on phones it sits above the text at a smaller width.

  • A park district's seasonal program guide landing page
  • A home page feature when a new guide comes out
  • A library or community education catalog announcement
Writing the content
  • List residents first in Registration dates; when there are two or more, the first card is highlighted and tagged "First". Up to six dates fit.
  • Fill in PDF size, like "8.4 MB PDF", so people on phone data know what they are downloading.
  • Use a portrait cover image at about 3:4. Write Cover alt text that describes the cover photo, or leave it blank if the cover only shows the title.
Accessibility
  • Registration dates are an ordered list labelled by its heading, and highlights are a list labelled by theirs (WCAG 1.3.1).
  • Page numbers read as "Page 12" to screen readers; the visible "p." abbreviation is hidden from them.
  • The cover's hover straightening only runs when reduced motion is not requested, and the decorative backing card and spine shadow are hidden from assistive technology.
Customizing the code
  • The cover tilt comes from -rotate-1 on the cover and rotate-3 with bg-indigo-200 on the backing card; remove them for a flat cover.
  • Change aspect-3/4 on the image if your guide has a different trim size.

Editor fields

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

  • Eyebrowtext
  • Season titletext
  • Heading levelselect
  • Introtextarea
  • Cover image URLtext
  • Cover alt texttext
  • Registration headingtext
  • Registration datesarray
  • Browse link texttext
  • Browse linktext
  • PDF link texttext
  • PDF sizetext
  • PDF linktext
  • Printed copy link texttext
  • Printed copy linktext
  • Highlights headingtext
  • Highlightsarray