mirror of
https://github.com/tabler/tabler.git
synced 2026-10-12 05:06:55 +04:00
30 lines
981 B
Plaintext
30 lines
981 B
Plaintext
---
|
|
import DefaultLayout from '@shared/layouts/DefaultLayout.astro'
|
|
import NavAside from '@shared/components/parts/NavAside.astro'
|
|
import GalleryPhoto from '@shared/components/cards/GalleryPhoto.astro'
|
|
import photos from '@data/photos.json'
|
|
import { people } from '@shared/lib/people'
|
|
import { requireIndex } from '@shared/lib/array'
|
|
|
|
const resultPhotos = photos.filter((photo) => photo.horizontal).slice(0, 18)
|
|
---
|
|
|
|
<DefaultLayout title="Search results" description="About 2,410 result (0.19 seconds)" pageMenu="extra.search-results">
|
|
<div class="row g-4">
|
|
<div class="col-md-3">
|
|
<NavAside />
|
|
</div>
|
|
<div class="col-md-9">
|
|
<div class="row row-cards">
|
|
{
|
|
resultPhotos.map((photo, index) => (
|
|
<div class="col-sm-6 col-lg-4">
|
|
<GalleryPhoto photo={photo} person={requireIndex(people, index)} index={index + 1} hideLikes />
|
|
</div>
|
|
))
|
|
}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</DefaultLayout>
|