feat: implement barebone zola templates
This commit is contained in:
parent
9c20f5ed2e
commit
f99a9ae2ac
198 changed files with 2434 additions and 227991 deletions
|
|
@ -1,29 +0,0 @@
|
|||
import React from 'react';
|
||||
import { type Media } from './types';
|
||||
|
||||
import classes from './Gallery.module.css';
|
||||
import Carousel from '@components/Carousel/Carousel';
|
||||
import CarouselItem from '@components/Carousel/CarouselItem';
|
||||
|
||||
interface Props {
|
||||
items: Media[];
|
||||
height: number;
|
||||
}
|
||||
|
||||
export default function Gallery({ items, height = 500 }: Props): JSX.Element {
|
||||
return (
|
||||
<div style={{ height }}>
|
||||
<Carousel>
|
||||
{items.map((item, idx) => (
|
||||
<CarouselItem key={idx}>
|
||||
<img
|
||||
className="respect-height"
|
||||
src={item.thumbnail ?? item.url}
|
||||
alt={item.alt}
|
||||
/>
|
||||
</CarouselItem>
|
||||
))}
|
||||
</Carousel>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue