Block 151 of 297
Elected Officials
Mayor and council with office, term end, direct email and phone, and a find-your-ward link.
- Puck key
- ElectedOfficialsBlock
- Export
- electedOfficialsBlock
- React component
- <ElectedOfficials />
- Path
- components/puck/elected-officials-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 roster of the mayor and council with office, term end date, photo and direct email and phone links. By default the first person gets a wide featured card above the others. Remaining officials run four across on desktop and two on tablets, and on phones they become compact rows with a small portrait beside the name. Missing photos show initials.
- A Mayor and City Council page
- A county commission or school board roster
- A Contact your representative page paired with a ward lookup
Writing the content
- Put the mayor or board chair first and leave Feature the first person on Yes; set it to No for a flat grid.
- Write Office with the district, like "Council Member, Ward 3". Term ends displays as "Term ends December 2028".
- Photo alt text can usually stay blank, since the name is printed next to the photo. Leave Photo URL blank to show initials.
- Link the Find-your-ward link to your address lookup so residents can see who represents them. The roster holds up to 30 officials.
Accessibility
- Names are headings one level below the block heading, and link to a bio page when Bio page link is filled.
- Contact links include the person's name for screen readers, such as "Email Jordan Lee", so a column of "Email" links stays clear (WCAG 2.4.4).
- Initials placeholders are hidden from screen readers, and contact links have a 44px minimum height and a focus outline.
Customizing the code
- Office labels, contact links and initials use Tailwind indigo-700; swap indigo- to rebrand.
Editor fields
What content editors see in the P1 sidebar when they select this block.
- Headingtext
- Heading levelselect
- Introtextarea
- Officialsarray
- Feature the first personradio
- Find-your-ward link texttext
- Find-your-ward linktext