Skip to content

Block 03 of 297

Image Overlay Hero

Full-bleed photo with an adjustable gradient scrim, headline and buttons anchored bottom-left, and an optional photo credit.

Puck key
HeroImageOverlayBlock
Export
heroImageOverlayBlock
React component
<HeroImageOverlay />
Path
components/puck/hero-image-overlay-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 full-bleed photograph with the headline, body and two links anchored to the bottom-left over a dark gradient scrim, plus an optional photo credit in the bottom-right corner. It fits places and outdoor programs where the picture sets the mood. On large screens a second side gradient darkens the left edge behind the text.

  • A park, trail or facility page led by a landscape photo
  • A campaign page where one documentary image carries the story
  • A visitor guide or destination landing page
Writing the content
  • Use a wide photo at least 2000px across, and keep the subject out of the bottom-left, where the text sits.
  • Pick Strong under Scrim strength for bright or busy photos; Light works only on darker images.
  • Add a Photo credit when the license requires one; it is truncated to a single line, so keep it brief.
  • Keep Body to two or three lines so the text block doesn't climb into the photo's focal point.
Accessibility
  • All three scrim settings keep the bottom of the image near-opaque behind the white text, aiming at text contrast (WCAG 1.4.3) on varied photos. Check very bright images yourself.
  • Image alt text comes from the editor; a blank field renders an empty alt for a decorative photo.
  • Buttons use white focus outlines that show against the dark scrim, and both links meet a 44px minimum height.
Customizing the code
  • Scrim gradients live in the SCRIMS map at the top of the file; adjust the neutral-950 opacity stops there.
  • Section height is set by min-h-144 and lg:min-h-176; the eyebrow rule uses bg-indigo-400.

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
  • Photo credittext
  • Scrim strengthselect