Skip to content

Block 02 of 297

Hero — Centered

Centered statement hero with an announcement pill, two calls to action and an optional patterned backdrop.

Puck key
HeroCenteredBlock
Export
heroCenteredBlock
React component
<HeroCentered />
Path
components/puck/hero-centered-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 single centered column with an optional announcement pill, a large headline, a paragraph, two calls to action and a small trust line underneath. A faint grid and indigo glow can sit behind it, or you can switch to plain white. Use it when the message matters more than a photo, or when you have no strong image.

  • A nonprofit home page leading with its mission statement
  • Announcing a new report, campaign or season with a linked pill
  • A text-first landing page for an appeal or sign-up
Writing the content
  • Keep the Announcement short; a linked pill truncates it to one line. Leave Announcement link text blank for a plain pill.
  • The heading runs up to 7xl on desktop, so aim for one or two lines at that size.
  • Use the Trust line for one verifiable proof point, such as donor count or rating, and leave it blank if you can't back it up.
  • Set Background pattern to Hide when this block sits below another busy section.
Accessibility
  • The Heading level field (H1 to H4) changes only the tag, so you can keep one H1 per page without changing the design.
  • The grid, glow and icons are aria-hidden, and the SVG pattern ids are scoped to each block instance so two copies on a page stay valid.
  • The pill link and both buttons have visible focus outlines and a 44px minimum height for touch.
Customizing the code
  • Indigo drives the pill, button, glow and checkmark; swap the indigo- classes for your brand color.
  • The grid cell size is the 48 in the SVG pattern width, height and path; change all three together.

Editor fields

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

  • Announcementtext
  • Announcement link texttext
  • Announcement linktext
  • Headingtextarea
  • Heading levelselect
  • Bodytextarea
  • Primary button texttext
  • Primary button linktext
  • Secondary link texttext
  • Secondary linktext
  • Background patternradio
  • Trust linetext