diff --git a/src/components/sections/GallerySection.tsx b/src/components/sections/GallerySection.tsx new file mode 100644 index 0000000..dc9a7cc --- /dev/null +++ b/src/components/sections/GallerySection.tsx @@ -0,0 +1,41 @@ +'use client' +import { useVulaContent } from '@/hooks/useVulaContent' +import { Card, CardContent } from '@/components/ui/Card' +import Image from 'next/image' + +export default function GallerySection() { + const { items, loading } = useVulaContent('gallery') + + if (loading) return
+ if (items.length === 0) return null + + return ( +
+
+

+ LOOKBOOK +

+
+ {items.slice(0, 8).map((item, i) => { + const d = item.data as { title?: string; description?: string; image?: string } + return ( + +
+ {d.image && ( + {d.title + )} +
+ + {d.title &&

{d.title}

} + {d.description &&

{d.description}

} +
+
+
+
+ ) + })} +
+
+
+ ) +} \ No newline at end of file