Skip to content

Block 157 of 297

Emergency Info

A call-911 panel, tap-to-call non-emergency numbers, alert sign-up and preparedness links.

Puck key
EmergencyInfoBlock
Export
emergencyInfoBlock
React component
<EmergencyInfo />
Path
components/puck/emergency-info-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

An emergency contacts section built around a red "call 911" panel with a large tap-to-call button. Beside it sit a list of non-emergency numbers, an optional alert sign-up panel, and a row of preparedness links at the bottom. The panels sit side by side on large screens and stack on phones, with the red panel first.

  • An emergency management or public safety landing page
  • A seasonal storm, flood or heat preparedness page
  • A footer-adjacent "who to call" section on a city home page
Writing the content
  • Type each Phone the way people read it, like (555) 555-0100; the block strips formatting to build the tap-to-call link. A number with no Phone value is not shown.
  • Keep Emergency panel title short and direct. Clear Emergency number to hide the big Call button.
  • Preparedness links hold up to eight items and sit in four columns on large screens; remove all of them to hide the row.
Accessibility
  • Each non-emergency phone link appends its label for screen readers, so a list of links reads as "(555) 555-0110, Police non-emergency" rather than bare numbers.
  • Preparedness links are wrapped in a nav landmark named by Preparedness heading, or "Emergency preparedness" when blank.
  • The Call button has a white focus outline on the red panel and a 56px minimum height (WCAG 2.4.7, 2.5.8).
Customizing the code
  • Red is reserved for the 911 panel (bg-red-700, text-red-800 on the button); the rest of the block uses indigo, which you can swap via the focusRing constant and indigo- classes.
  • The 5/7 column split is set by lg:col-span-5 and lg:col-span-7 in the main grid.

Editor fields

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

  • Headingtext
  • Heading levelselect
  • Introtextarea
  • Emergency panel titletext
  • Emergency panel texttextarea
  • Emergency numbertext
  • Numbers headingtext
  • Non-emergency numbersarray
  • Alert sign-up headingtext
  • Alert sign-up texttextarea
  • Alert button texttext
  • Alert button linktext
  • Preparedness headingtext
  • Preparedness linksarray