Skip to content

Block 91 of 297

Header — Centered Logo

Editorial header with a serif wordmark centered between two sets of links, a notice line above and a double rule below.

Puck key
HeaderCenteredBlock
Export
headerCenteredBlock
React component
<HeaderCentered />
Path
components/puck/header-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

An editorial header with a large serif wordmark centered between two groups of links, an optional notice line above and a double rule along the bottom. The button sits at the far right. Below the large breakpoint the wordmark moves left and all links collapse into a "Menu" panel set in large serif type.

  • Museums, galleries and botanical gardens
  • Performing arts venues and historic sites
  • Literary or cultural nonprofits with a strong wordmark
Writing the content
  • Keep the Wordmark to two or three words; it is set large. Wordmark tagline adds a small capitals line underneath.
  • Each side takes up to 4 links. Balance them, such as three and three, or the logo will look off center.
  • Use Notice line for one short, current fact like today's hours. Leave it blank to remove the strip.
  • Setting Logo image URL replaces the wordmark and tagline entirely, so fill Logo alt text with your organization's name.
Accessibility
  • If Logo alt text is blank, the image falls back to the Wordmark text for its alt, so the home link keeps an accessible name.
  • The phone menu is a native details element that opens by keyboard or tap, and its nav is named separately with "(mobile)".
  • Links have a 44px minimum height (56px in the phone menu) and an indigo focus outline. There is no current-page field, so aria-current isn't set.
Customizing the code
  • The double rule is border-b-4 border-double border-neutral-900 on the header element.
  • The wordmark uses font-serif at lg:text-4xl; point font-serif at your brand serif in your Tailwind theme.

Editor fields

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

  • Notice linetext
  • Wordmarktext
  • Wordmark taglinetext
  • Logo image URLtext
  • Logo alt texttext
  • Logo linktext
  • Navigation nametext
  • Links left of the logoarray
  • Links right of the logoarray
  • Button texttext
  • Button linktext
  • Mobile menu labeltext