Skip to content

Block 242 of 297

Seasonal Highlights

Four staggered season panels with a photo, top experiences, typical weather and a link to each season's events.

Puck key
SeasonalHighlightsBlock
Export
seasonalHighlightsBlock
React component
<SeasonalHighlights />
Path
components/puck/seasonal-highlights-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

Up to four season panels, each topped by a photo with the months and season name over a dark gradient, followed by a short list of experiences, a typical-weather note and a link. On desktop the four panels sit side by side with staggered tops; tablets show two across and phones one.

  • A "When to visit" section on a tourism site
  • A park or garden's year-round programming overview
  • A recreation department page grouping seasonal leagues and events
Writing the content
  • Enter Top experiences one per line; three or four keep the panels similar in height.
  • Use tall photos. Panels crop at 4:3 on phones and 4:5 on larger screens, with text over the bottom.
  • If you list weather figures, name where they come from in Weather source, which prints under the panels.
  • Only four seasons render. Give each Link text its own wording, like "Fall events", since no hidden context is added.
Accessibility
  • Season names are headings one level below the Heading level setting, so each panel is reachable by heading navigation (WCAG 1.3.1).
  • The weather note starts with a visible "Typical weather:" label rather than relying on the cloud icon, which is aria-hidden.
  • Photos use the Image alt text field, and links have a 44px minimum height and a visible focus outline.
Customizing the code
  • The staggered tops come from the OFFSETS array; set every entry to an empty string for an even row.
  • Change indigo- to recolor the eyebrow, list dashes, weather icon and links.

Editor fields

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

  • Eyebrowtext
  • Headingtext
  • Heading levelselect
  • Introtextarea
  • Seasonsarray
  • Weather sourcetext