Skip to content

Block 163 of 297

City Jobs

Open city job postings with department, pay range, schedule, closing date and an equal opportunity statement.

Puck key
CityJobsBlock
Export
cityJobsBlock
React component
<CityJobs />
Path
components/puck/city-jobs-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 ruled list of open positions. Each row gives the department, job title and a one-line summary, then pay, schedule and closing date, then an Apply button. On large screens those three parts sit side by side; on phones they stack. A count of open positions sits beside the heading, and an equal opportunity statement with HR contacts closes the section.

  • A city or county careers page
  • A seasonal hiring push for lifeguards, plow drivers or camp staff
  • A department page that lists only its own openings
Writing the content
  • Write Pay range the way it appears on the posting, like "$52,400–$68,100 per year" or "$18.50 per hour". Pay grade, if filled in, follows it.
  • Closing date is free text, so "Open until filled" works. Leave Apply link blank to hide the button for a posting that is not live yet.
  • Paste the Equal opportunity statement exactly as approved by HR or legal. Clearing Equal opportunity heading hides the whole statement panel.
  • Up to 30 postings fit, but for longer lists keep the top few here and point All jobs link text to the full job board.
Accessibility
  • Pay, Schedule and Closes are a description list, so each value is announced with its label (WCAG 1.3.1).
  • Each Apply button adds the job title for screen readers ("Apply for Library Associate"), so a page of Apply links stays distinct (WCAG 2.4.4).
Customizing the code
  • Schedule labels come from the schedules map; add an entry and a matching select option for types like "Internship".
  • The row layout uses lg:col-span-6, lg:col-span-4 and lg:col-span-2; the accent is indigo-700 throughout.

Editor fields

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

  • Headingtext
  • Heading levelselect
  • Introtextarea
  • Job postingsarray
  • All jobs link texttext
  • All jobs linktext
  • Equal opportunity headingtext
  • Equal opportunity statementtextarea
  • Accommodations texttextarea
  • HR phonetext
  • HR emailtext