From 3b4ad90fc92187437f9153193e3b09cc1ff52cd1 Mon Sep 17 00:00:00 2001 From: Vula Builder Date: Mon, 27 Jul 2026 18:06:16 +0000 Subject: [PATCH] Deploy --- src/components/sections/HeroSection.tsx | 31 +++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/components/sections/HeroSection.tsx diff --git a/src/components/sections/HeroSection.tsx b/src/components/sections/HeroSection.tsx new file mode 100644 index 0000000..74a1492 --- /dev/null +++ b/src/components/sections/HeroSection.tsx @@ -0,0 +1,31 @@ +'use client' +import Image from 'next/image' +import { useVulaContent } from '@/hooks/useVulaContent' + +export default function HeroSection() { + const { items, loading } = useVulaContent('hero_banners') + if (loading) return
+ if (items.length === 0) return null + + return ( +
+ {items.slice(0, 1).map((item) => { + const d = item.data as { title?: string; subtitle?: string; cta_text?: string; cta_url?: string; image?: string } + return ( +
+ {d.image && {d.title} +
+ {d.title &&

{d.title}

} + {d.subtitle &&

{d.subtitle}

} + {d.cta_text && ( + d.cta_url + ? {d.cta_text} + : + )} +
+
+ ) + })} +
+ ) +}