full-bleed image background with a centered overlay panel.

Live preview

A portfolio that flies

Full-bleed imagery with a glassy caption.

View work

Install

From your site folder, run:

jprot add CoverHero

That downloads the self-contained component into theme/components/CoverHero.js,

where it is picked up automatically — the same way as any built-in component.

To remove it later, just delete that file.

Use it as a homepage section

Add an entry to the sections: list in jprot.config.js:

sections: [
  { component: 'CoverHero', title: 'CoverHero' },
]

Use it inside a page

On its own line in any Markdown file, passing the props:

:::CoverHero title="A portfolio that flies" subtitle="Full-bleed imagery with a glassy caption." image="https://picsum.photos/seed/cv/1400/600" ctaUrl="/about" ctaLabel="View work"

Props

PropTypeNote
titlestringheadline over the image
subtitlestringsupporting line
imagestringbackground image URL
ctaLabelstringbutton text
ctaUrlstringbutton target

↩ Back to all elements