Block 152 of 297
Collection Schedule
Trash, recycling and yard waste days by zone in a table that stacks on phones, with holiday changes.
- Puck key
- CollectionScheduleBlock
- Export
- collectionScheduleBlock
- React component
- <CollectionSchedule />
- Path
- components/puck/collection-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
Trash, recycling and yard waste days by zone, built as a data table on tablets and desktops that turns into labelled cards on phones. Below it, a holiday list shows schedule changes and a tinted panel links to your sorting guide. A find-my-zone button sits beside the heading so residents can look up their zone first.
- A sanitation or solid waste department page
- A city home page section during holiday weeks
- A new resident page explaining collection days
Writing the content
- Name each Zone the way residents see it on their bill or map, like "Zone A, North".
- Spell out recycling frequency, such as "Monday, every other week (A weeks)". Leave Yard waste blank if not offered.
- Write Holiday changes one per line as Date | What changes, for example "Nov 26 | Thanksgiving: collection shifts one day later".
- The Sorting guide note only shows when Sorting guide link text is filled. The table takes up to 20 zones.
Accessibility
- The schedule is a real table with a hidden caption, column headers and zone row headers. Explicit table roles keep that structure after phone styles turn rows into cards (WCAG 1.3.1).
- On phones each value has a visible column label, and empty cells show a dash with hidden "None" text.
- The holiday list is labelled by its heading, one level below the block heading, and the link arrow only moves under motion-safe.
Customizing the code
- Column names come from the columns constant; edit it along with the zone fields to add or rename a stream, such as compost.
Editor fields
What content editors see in the P1 sidebar when they select this block.
- Headingtext
- Heading levelselect
- Introtextarea
- Zonesarray
- Holiday headingtext
- Holiday changestextarea
- Find-my-zone link texttext
- Find-my-zone linktext
- Sorting guide notetextarea
- Sorting guide link texttext
- Sorting guide linktext