From 98c9be85a969cd0c1c27cc1848bda0aa431aa27c Mon Sep 17 00:00:00 2001 From: Vula Builder Date: Tue, 28 Jul 2026 07:32:32 +0000 Subject: [PATCH] Deploy --- .../sections/RootedMomentsGallerySection.tsx | 89 +++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 src/components/sections/RootedMomentsGallerySection.tsx diff --git a/src/components/sections/RootedMomentsGallerySection.tsx b/src/components/sections/RootedMomentsGallerySection.tsx new file mode 100644 index 0000000..5222696 --- /dev/null +++ b/src/components/sections/RootedMomentsGallerySection.tsx @@ -0,0 +1,89 @@ +'use client' + +import { useState } from 'react' +import { useVulaContent } from '@/hooks/useVulaContent' +import Modal from '@/components/ui/Modal' +import Image from 'next/image' + +const IMAGE_PLACEHOLDER = 'https://images.pexels.com/photos/33783/olive-oil-salad-dressing-cooking-olive.jpg?auto=compress&cs=tinysrgb&w=400&h=300&fit=crop' + +export default function RootedMomentsGallerySection() { + const [ selectedImage, setSelectedImage ] = useState(null) + const { items, loading } = useVulaContent('gallery') + + if (loading) { + return ( +
+
+
+ ) + } + + if (items.length === 0) return null + + return ( + <> + + + setSelectedImage(null)} + className="max-w-4xl" + > + {selectedImage && ( +
+ Enlarged gallery photo +
+ )} +
+ + ) +}