full-width accent banner asking for subscribers.
Never miss a release
Changelogs, straight to your inbox.
2k readers
Install
From your site folder, run:
jprot add SubscribeBannerThat downloads the self-contained component into theme/components/SubscribeBanner.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: 'SubscribeBanner', title: 'SubscribeBanner' },
]Use it inside a page
On its own line in any Markdown file, passing the props:
:::SubscribeBanner title="Never miss a release" text="Changelogs, straight to your inbox." button="Subscribe" note="2k readers"Props
| Prop | Type | Note |
|---|---|---|
title | string | headline |
text | string | pitch |
button | string | submit text |
note | string | small footer (e.g. reader count) |