image-top card with overlay caption.

Live preview

Install

From your site folder, run:

jprot add CardImage

That 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

PropTypeNote
titlestringcard title
textstringcard body
imagestringtop image URL
urlstringoptional link

↩ Back to all elements