import { type Image } from "../build"; interface YearPhotosProps { year: string; images: Image[]; } export default function YearPhotos({ year, images }: YearPhotosProps) { return (

{year}

{images.map((image) => { const aspectRatio = image.width / image.height; return ( 1.05 ? "[grid-column:span_2] aspect-[2/1]" : "aspect-square" }`} key={`${year}-${image.id}`} data-slide-name={image.id} data-src={image.thumbnail[2048]} data-lg-size={`512-100-480, 1200-513-960, 2048-1201`} data-responsive={`${image.thumbnail[512]} 480, ${image.thumbnail[1024]} 960`} data-srcset={`${image.thumbnail[512]} 480w, ${image.thumbnail[1024]} 960w, ${image.thumbnail[2048]} 1920w`} data-sizes="(max-width: 600px) 480px, (max-width: 1200px) 960px, 1920px" data-download-url={image.image} > {image.alt} ); })}
); }