diff --git a/images/gallery/miyu98xy-24n3xo.png b/images/gallery/miyu98xy-24n3xo.png new file mode 100644 index 0000000..fc3a111 Binary files /dev/null and b/images/gallery/miyu98xy-24n3xo.png differ diff --git a/images/gallery/miyu9ex6-6imbgc.png b/images/gallery/miyu9ex6-6imbgc.png new file mode 100644 index 0000000..2b546c4 Binary files /dev/null and b/images/gallery/miyu9ex6-6imbgc.png differ diff --git a/images/gallery/miyu9s7x-8nsszm.png b/images/gallery/miyu9s7x-8nsszm.png new file mode 100644 index 0000000..802ae5f Binary files /dev/null and b/images/gallery/miyu9s7x-8nsszm.png differ diff --git a/images/gallery/miyu9vl2-pndg1t.png b/images/gallery/miyu9vl2-pndg1t.png new file mode 100644 index 0000000..494ffa6 Binary files /dev/null and b/images/gallery/miyu9vl2-pndg1t.png differ diff --git a/images/gallery/miyu9za8-edtk3k.png b/images/gallery/miyu9za8-edtk3k.png new file mode 100644 index 0000000..0f12971 Binary files /dev/null and b/images/gallery/miyu9za8-edtk3k.png differ diff --git a/src/pages/index.astro b/src/pages/index.astro index abe7868..60615de 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -8,39 +8,17 @@ import ImageCarousel from "../components/ImageCarousel.astro"; import Contact from "../components/Contact.astro"; import About from "../components/About.astro"; -const API_BASE = 'https://cms.gallus-pub.ch'; +const events = [ -// Fetch events from backend API -let events = []; -try { - const eventsResponse = await fetch(`${API_BASE}/api/events/public`); - if (eventsResponse.ok) { - const eventsData = await eventsResponse.json(); - events = (eventsData.events || []).map((ev: any) => ({ - image: `${API_BASE}${ev.imageUrl}`, - title: ev.title, - date: ev.date, - description: ev.description - })); - } -} catch (error) { - console.error('Failed to fetch events:', error); -} +]; -// Fetch gallery images from backend API -let images = []; -try { - const galleryResponse = await fetch(`${API_BASE}/api/gallery/public`); - if (galleryResponse.ok) { - const galleryData = await galleryResponse.json(); - images = (galleryData.images || []).map((img: any) => ({ - src: `${API_BASE}${img.imageUrl}`, - alt: img.altText - })); - } -} catch (error) { - console.error('Failed to fetch gallery:', error); -} +const images = [ + { src: "/static/images/gallery/miyu98xy-24n3xo.png", alt: "miyu98xy-24n3xo.png" }, + { src: "/static/images/gallery/miyu9ex6-6imbgc.png", alt: "miyu9ex6-6imbgc.png" }, + { src: "/static/images/gallery/miyu9s7x-8nsszm.png", alt: "miyu9s7x-8nsszm.png" }, + { src: "/static/images/gallery/miyu9vl2-pndg1t.png", alt: "miyu9vl2-pndg1t.png" }, + { src: "/static/images/gallery/miyu9za8-edtk3k.png", alt: "miyu9za8-edtk3k.png" } +]; ---