mirror of
https://github.com/tabler/tabler.git
synced 2026-08-29 13:21:29 +04:00
23 lines
696 B
Plaintext
23 lines
696 B
Plaintext
---
|
|
// Gallery uses horizontal photos only.
|
|
import DefaultLayout from '@shared/layouts/DefaultLayout.astro'
|
|
import Photo from '@ui/Photo.astro'
|
|
import photos from '@data/photos.json'
|
|
|
|
const filteredPhotos = photos.filter((photo) => photo.horizontal)
|
|
---
|
|
|
|
<DefaultLayout title="Lightbox" pageMenu="plugins.lightbox" pageLibs={['fslightbox']}>
|
|
<div class="row row-cols-3 row-cols-md-4 row-cols-lg-6 g-3">
|
|
{
|
|
filteredPhotos.map((photo) => (
|
|
<div class="col">
|
|
<a data-fslightbox="gallery" href={`./static/photos/${photo.file}`}>
|
|
<Photo photo={photo} class="rounded border" ratio="1x1" />
|
|
</a>
|
|
</div>
|
|
))
|
|
}
|
|
</div>
|
|
</DefaultLayout>
|