From 7bfb777a74f5020a0353f415cafbebe587ee4ed5 Mon Sep 17 00:00:00 2001 From: Kenzo Date: Tue, 9 Dec 2025 17:42:27 +0100 Subject: [PATCH] feat: Add gallery management and dynamic API-based data loading - Introduced a gallery management section in `admin.astro` for uploading, listing, and deleting gallery images. - Added dynamic fetching of events and gallery images from the backend in `index.astro`. - Updated authentication to handle gallery-related UI visibility and actions. --- src/pages/admin.astro | 73 +++++++++++++++++++++++++++++++++++++++++++ src/pages/index.astro | 37 ++++++++++++++++++---- 2 files changed, 104 insertions(+), 6 deletions(-) diff --git a/src/pages/admin.astro b/src/pages/admin.astro index 99c7bd4..463d3ac 100644 --- a/src/pages/admin.astro +++ b/src/pages/admin.astro @@ -67,6 +67,23 @@ const title = 'Admin'; + +