overlapping layers of photos, one poking behind the other.
Install
From your site folder, run:
jprot add PhotoStackThat downloads the self-contained component into theme/components/PhotoStack.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: 'PhotoStack', title: 'PhotoStack' },
]Use it inside a page
On its own line in any Markdown file, passing the props:
:::PhotoStack images='["https://picsum.photos/seed/s1/500/360","https://picsum.photos/seed/s2/500/360","https://picsum.photos/seed/s3/500/360"]' caption="Behind the scenes"Props
| Prop | Type | Note |
|---|---|---|
images | array | image URLs, order = back to front |
caption | string | small caption |