fix(gallery): change row count calculation, add new screenshots

This commit is contained in:
Ivan R. 2024-03-05 23:11:36 +05:00
parent 2fa5d28001
commit ab03e0d0fa
No known key found for this signature in database
GPG key ID: 56C7BAAE859B302C
10 changed files with 5 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 506 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 443 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 375 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 521 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -7,7 +7,7 @@ interface Props {
images: Image[]
}
const { images } = Astro.props
const rowCount = Math.round(images.length/3)
const rowCount = Math.ceil(images.length/3)
---
<div>

View file

@ -19,6 +19,10 @@ import Gallery from '../components/Gallery.astro'
{src: "/cinema/yokohama-kaidashi-kikou/1.avif", alt: "Yokohama Kaidashi Kikou"},
{src: "/cinema/yokohama-kaidashi-kikou/2.avif", alt: "Yokohama Kaidashi Kikou"},
{src: "/cinema/yokohama-kaidashi-kikou/3.avif", alt: "Yokohama Kaidashi Kikou"},
{src: "/cinema/whisper-of-the-heart/1.avif", alt: "Шёпот сердца"},
{src: "/cinema/whisper-of-the-heart/2.avif", alt: "Шёпот сердца"},
{src: "/cinema/whisper-of-the-heart/3.avif", alt: "Шёпот сердца"},
{src: "/cinema/whisper-of-the-heart/4.avif", alt: "Шёпот сердца"},
{src: "/cinema/john-wick-chapter-4/1.avif", alt: "John Wick: Chapter 4"},
{src: "/cinema/night-in-the-woods/1.avif", alt: "Night in the Woods"},
{src: "/cinema/night-in-the-woods/2.avif", alt: "Night in the Woods"},