From 46503424d0e78c6ecebb303b82d85c5453c83d36 Mon Sep 17 00:00:00 2001 From: HJfod <60038575+HJfod@users.noreply.github.com> Date: Tue, 5 Mar 2024 11:47:11 +0200 Subject: [PATCH] better gallery controls --- src/components/Gallery.astro | 103 ++++++++++++++++++++++++++++++----- 1 file changed, 88 insertions(+), 15 deletions(-) diff --git a/src/components/Gallery.astro b/src/components/Gallery.astro index 055be97..4684030 100644 --- a/src/components/Gallery.astro +++ b/src/components/Gallery.astro @@ -1,16 +1,29 @@ --- +import { ArrowLeftIcon, ArrowRightIcon } from "astro-feather"; + const gallery = await Astro.slots.render('default'); const imgCount = gallery.match(/<\s*img/gs)?.length; ---