From f07528766e4f59c70800f6bdaf7d77d6e55156cf Mon Sep 17 00:00:00 2001 From: Ravinder Date: Sun, 15 Mar 2026 22:07:02 +0000 Subject: [PATCH] feat: add a new modal for next/prev buttons to image gallery Updated gallery modal logic for images only. Video modal improvements coming next. #147 --- src/components/Gallery.astro | 239 ++++++++++++++--------------------- src/components/Modal.astro | 136 ++++++++++++++++++++ 2 files changed, 231 insertions(+), 144 deletions(-) create mode 100644 src/components/Modal.astro diff --git a/src/components/Gallery.astro b/src/components/Gallery.astro index 7567dc7..60e8c47 100644 --- a/src/components/Gallery.astro +++ b/src/components/Gallery.astro @@ -1,5 +1,6 @@ --- -import { Image, Picture } from "astro:assets"; +import { Image } from "astro:assets"; +import Modal from "./Modal.astro"; interface Props { images: { @@ -11,45 +12,33 @@ interface Props { const { images } = Astro.props; --- -
- + + )) + } + +
+ + + + -