Skip to content

Block 01 of 297

Hero — Split

Headline, supporting copy and two calls to action beside a large photo. Image side is switchable.

Puck key
HeroSplitBlock
Export
heroSplitBlock
React component
<HeroSplit />
Path
components/puck/hero-split-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 two-column opening section: headline, a short paragraph and up to two links on one side, a large photo on the other. It suits landing pages and program pages where one image does a lot of the explaining. On phones the photo stacks above the copy, so the page still opens on the picture.

  • The top of a home page or campaign landing page with one main action
  • A program or service page that leads with a representative photo
  • Alternating sections down a long page, flipping the image side each time
Writing the content
  • Keep the heading under about ten words; the layout gives it room to wrap, but shorter headlines scan faster.
  • Use the primary button for the one action you most want, and the secondary link for a softer next step such as "Learn more".
  • Leave the eyebrow blank unless it adds timely context, like an enrollment window; an empty field hides it.
  • Choose a photo that still works cropped: it shows at 4:3 on phones and 6:7 on large screens.
Accessibility
  • The heading level is an editor setting (H1 to H4), so the page keeps one H1 and a logical outline (WCAG 1.3.1) without changing the look.
  • The image takes its alt text from the editor; leave the field blank only for a purely decorative photo, which then renders with an empty alt.
  • Both links are real anchors with a visible focus ring and a 44px minimum height for touch.
Customizing the code
  • The accent is Tailwind indigo; replace indigo- with your brand color family to rebrand the button and eyebrow.
  • To change the photo crop, edit the aspect-[4/3] and lg:aspect-[6/7] classes on the image.

Editor fields

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

  • Eyebrowtext
  • Headingtextarea
  • Heading levelselect
  • Bodytextarea
  • Primary button texttext
  • Primary button linktext
  • Secondary link texttext
  • Secondary linktext
  • Image URLtext
  • Image alt texttext
  • Image sideradio