--- import { staticPath } from '@shared/lib/assets' import photos from '@data/photos.json' import CardTitle from '@ui/CardTitle.astro' interface Props { id?: string title?: string indicators?: boolean indicatorsThumb?: boolean indicatorsThumbRatio?: boolean indicatorsDot?: boolean indicatorsVertical?: boolean controls?: boolean captions?: boolean offset?: number fade?: boolean } const { id: idProp, title = 'Carousel', indicators, indicatorsThumb, indicatorsThumbRatio, indicatorsDot, indicatorsVertical, controls, captions, offset = 0, fade } = Astro.props const limit = 5 const carouselId = idProp ?? 'carousel' const filteredPhotos = (photos as { file: string; title?: string; horizontal?: boolean }[]).filter((p) => p.horizontal) const slides = filteredPhotos.slice(offset, offset + limit) ---
Nulla vitae elit libero, a pharetra augue mollis interdum.