thumbnail with a play button that swaps in the embed.
Install
From your site folder, run:
jprot add MediaVideoThat downloads the self-contained component into theme/components/MediaVideo.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: 'MediaVideo', title: 'MediaVideo' },
]Use it inside a page
On its own line in any Markdown file, passing the props:
:::MediaVideo title="Product tour" thumb="https://picsum.photos/seed/vid/640/360" href="https://www.youtube.com/watch?v=dQw4w9WgXcQ"Props
| Prop | Type | Note |
|---|---|---|
title | string | caption |
thumb | string | thumbnail URL |
href | string | video URL to open |