Block 154 of 297
Public Notices
Legal notices for hearings, zoning, bids and ordinances, with type badges and comment deadlines.
- Puck key
- PublicNoticesBlock
- Export
- publicNoticesBlock
- React component
- <PublicNotices />
- Path
- components/puck/public-notices-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 divided list of legal notices with a text badge for the notice type, the posted date and a highlighted comment deadline on the right. On phones the deadline box drops below the title. Use it where a city must publish hearings, rezonings, bid invitations and ordinances and wants the response date to be the first thing people see.
- A city clerk's public notices page required by state law
- A planning department page announcing upcoming hearings
- A purchasing page that lists open bid invitations
Writing the content
- Write the Title in plain language that says what is happening and where; the whole row links to the Full notice link, usually a PDF.
- Leave Comment deadline blank when there is no comment period and the row will say "No comment period". For the Bid type the box is labeled "Deadline" instead of "Comments due".
- Fill in Deadline (machine date) as YYYY-MM-DD so the date is wrapped in a time element that calendars and search engines can read.
- The block holds up to 30 notices. Move expired ones to the page behind Archive link to keep the list current.
Accessibility
- Notice type is printed as a word in the badge (Public hearing, Zoning, Bid and so on), not signaled by color (WCAG 1.4.1).
- Notice titles are headings one level below the section heading, so screen reader users can jump between notices (WCAG 1.3.1).
Customizing the code
- To add or rename notice types, edit the NoticeType union, the typeLabels map and the select options together.
- The deadline panel uses bg-indigo-50 and text-indigo-950; change the indigo- classes to match your palette.
Editor fields
What content editors see in the P1 sidebar when they select this block.
- Headingtext
- Heading levelselect
- Introtextarea
- Noticesarray
- Subscribe link texttext
- Subscribe linktext
- Archive link texttext
- Archive linktext