Skip to content

Block 170 of 297

Park Rules

Park hours, rules grouped by topic with icons and ordinance references, and a report-a-violation contact panel.

Puck key
ParkRulesBlock
Export
parkRulesBlock
React component
<ParkRules />
Path
components/puck/park-rules-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 park rules page section: heading and intro beside an hours panel, then rule groups in two columns, each with a topic icon, a short list of rules and an optional ordinance link. A dark "report a violation" panel closes it. On phones every part stacks into one column. It suits any park system that wants rules written in plain language with the legal reference close by.

  • A park district rules and regulations page
  • A single park's page covering dogs, fires and fishing
  • A trail or preserve page with seasonal restrictions
Writing the content
  • Write Hours one line per place in the form "Place | Hours", like "Nature preserves | Dawn to dusk". The panel needs Hours heading to appear.
  • Enter Rules one per line. A group with no rules is not shown, and a blank Title uses the icon's name, such as "Dogs" or "Fires & grills".
  • The report panel appears when Report heading has text along with at least one detail, phone, email, button or emergency note. Up to 12 rule groups fit.
Accessibility
  • Hours are a description list pairing each place with its times, and each rule group is a heading followed by a list (WCAG 1.3.1).
  • Ordinance links add the group name for screen readers, so "Ordinance 4.12 (Dogs)" stays clear out of context (WCAG 2.4.4).
Customizing the code
  • Topics and their icons live in the topics record; add an entry to offer a new rule category in the editor.
  • The report panel uses bg-neutral-900; group icons sit in bg-indigo-50 tiles.

Editor fields

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

  • Headingtext
  • Heading levelselect
  • Introtextarea
  • Hours headingtext
  • Hourstextarea
  • Hours notetext
  • Rule groupsarray
  • Report headingtext
  • Report detailstextarea
  • Phonetext
  • Emailtext
  • Report button texttext
  • Report linktext
  • Emergency notetext