big centered headline, subtitle and two buttons.

Live preview

Build the web, instantly

Markdown in, website out — no build step at all.

Install

From your site folder, run:

jprot add CenteredHero

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

Use it inside a page

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

:::CenteredHero title="Build the web, instantly" subtitle="Markdown in, website out — no build step at all." primaryUrl="/about" primaryLabel="Get started" secondaryUrl="/blog" secondaryLabel="Read the blog"

Props

PropTypeNote
titlestringthe headline
subtitlestringsupporting line
primaryLabelstringprimary button text
primaryUrlstringprimary button target
secondaryLabelstringsecondary button text ('' hides it)
secondaryUrlstringsecondary button target

↩ Back to all elements