image-top card with overlay caption.
Install
From your site folder, run:
jprot add CardImageThat downloads the self-contained component into theme/components/CardImage.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: 'CardImage', title: 'CardImage' },
]Use it inside a page
On its own line in any Markdown file, passing the props:
:::CardImage title="Norden trip" text="Bleak coastline, loud coffee, zero signal." image="https://picsum.photos/seed/nord/600/340" url="/blog/norden"Props
| Prop | Type | Note |
|---|---|---|
title | string | card title |
text | string | card body |
image | string | top image URL |
url | string | optional link |