two-column hero: headline on the left, image on the right.

Live preview

Ship faster

A reusable block for every campaign.

Get started

Install

From your site folder, run:

jprot add SplitHero

That downloads the self-contained component into theme/components/SplitHero.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: 'SplitHero', title: 'SplitHero' },
]

Use it inside a page

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

:::SplitHero title="Ship faster" subtitle="A reusable block for every campaign." image="https://picsum.photos/seed/a/520/380" linkLabel="Get started" linkUrl="/about"

Props

PropTypeNote
titlestringthe headline
subtitlestringone supporting line
imagestringoptional right-side photo URL
kickerstringsmall uppercase line above the title
linkLabelstringprimary button text ('' hides it)
linkUrlstringprimary button target

↩ Back to all elements