feat: implement barebone zola templates

This commit is contained in:
Alexander Navarro 2024-11-10 21:45:59 +00:00
parent 9c20f5ed2e
commit f99a9ae2ac
198 changed files with 2434 additions and 227991 deletions

View file

@ -0,0 +1,29 @@
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>
);
}