Hero photo gradient overlay

Full-height hero with a cover photo under a theme-coloured gradient, a centered headline, supporting copy, and two buttons.

herophotogradientoverlaybackdropfullscreencover-imagedark

About this block

A full-screen opening section that puts a large photo behind your headline and keeps the text readable with a gradient overlay. The gradient is darker at the top and bottom and lighter in the middle, so the photo still shows through behind the words. The overlay uses your theme's text colour, so it follows your palette instead of a flat black film.

When to use it

  • Your business has a strong photo that sells it on its own: a venue, a finished project, a team at work.
  • You want the first screen to feel big and confident, with one clear message and one main action.
  • Text over a photo has been hard to read and a flat dark overlay looked muddy.
  • Restaurants, studios, trades, events, and agencies where the place or the work is the proof.

What's inside

  • A section at least 85% of the screen tall, with the content centered both ways.
  • A cover photo that fills the section. From tablet width up it stays fixed while the page scrolls, for a light parallax feel.
  • A top-to-bottom gradient overlay (90% → 50% → 80%) between the photo and the text.
  • An eyebrow line, an h1 headline, and a supporting paragraph, all centered and capped at a readable width.
  • A primary button and an outline button that stack on phones and sit side by side from tablet width up.

How to customize it

  • Replace the photo with your own. Wide, well-lit photos with a calm area in the middle work best behind text.
  • Write a headline that says what you do and for whom, then point both buttons at your real pages.
  • If the photo is busy, raise the middle of the gradient (the 50% stop) so the text has more contrast. If it's dark already, lower it.
  • Swap the gradient to your primary colour for a branded look: change the overlay's from-, via- and to- colours from base-content to primary.

Questions

How do I make text readable on a background photo?
Put a gradient overlay between the photo and the text, darker where the text sits. This block does that with three stops so the photo stays visible in the middle.
Is the background photo bad for page speed?
A large photo is the heaviest part of most heroes. Upload a well-compressed image around 1600px wide; PageHub serves it through its image CDN.
Why does the photo stay still when I scroll on desktop?
The photo uses a fixed background from tablet width up, which gives a parallax effect. On phones it scrolls normally, since most mobile browsers don't support fixed backgrounds well.

Browse other blocks

Same library cards — preview live and grab structure from any block.

View full library

Hero split

Two-column hero with eyebrow, heading, description, and CTAs on the left. Image on the right.

Hero centered

Clean centered hero with eyebrow, large heading, description, and two CTA buttons.

Hero photo backdrop

Full-height hero with a cover photo, theme-tinted overlay, centered headline, subtitle, and CTAs.

Hero dark background

Dark background hero with eyebrow, centered heading, description, and CTA buttons.

Hero parallax cover

Full-bleed cover image hero with a theme-tinted gradient overlay, parallax scrolling on larger screens, and a centered eyebrow, headline, subtitle, and two CTAs. Pair it with your site header above.

Coming soon hero

Centered launch hero with oversized headline, waitlist copy, and an inline email signup form.

Hero centered minimal

Clean centered hero with a large heading and subtext on a plain background. Simple and versatile.

Hero split portfolio

Bold split hero with oversized stacked typography on the left and a large framed image on the right.

Image band with overlay

Full-width image hero with a gradient overlay, centered headline, subtitle, and CTA.

Hero with announcement

Centered hero on a brand-colour background with an announcement pill and link at the top, a large headline, two CTAs, and a trusted-by row of customer names.

Hero split with features

Two-column hero with a headline, two icon feature columns that each carry a button, and a large cover image on the right.

Hero with video

Centered hero with social proof row, headline, CTAs, and a large video or image thumbnail below.