How-to guide

A hero with a picture and dark overlay

A background picture with a dark wash makes white text readable on any photo.

Steps

  1. Select the hero block (or switch a block to Hero (grid) in the Block tab).

  2. In Design, choose a background picture and set it to cover.

  3. Still in Design, add an overlay: black, with the opacity slider around 50%.

  4. Set the text colour to white and give the block generous padding in Layout.

  5. Add a button: select text and use the Button style on the Home tab.

CSS

/* Optional: a gradient instead of a flat overlay, for a class "hero-fade" on the section */
.hero-fade .jc-hero { min-height: 70vh; display: grid; align-items: end; }
.hero-fade .jc-hero::before { background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.75) 100%) !important; }

Prompt for your AI

In my JoodCMS kit, change the hero of the home page to use /uploads/[photo].jpg as background (style.base.bg with url()),
a black overlay at 55% opacity (style.base.overlay and overlayOpacity), white text and 96px padding (48px on phones).
Keep the text and ids. Return the complete kit.

← All guides

made by Content Management System