From ea4d51f6b50fdb80a566f699d1ef457dbf2253cf Mon Sep 17 00:00:00 2001 From: Vula Builder Date: Mon, 27 Jul 2026 17:52:37 +0000 Subject: [PATCH] Deploy --- src/components/sections/SowetoHeroSection.tsx | 79 +++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 src/components/sections/SowetoHeroSection.tsx diff --git a/src/components/sections/SowetoHeroSection.tsx b/src/components/sections/SowetoHeroSection.tsx new file mode 100644 index 0000000..01eb39a --- /dev/null +++ b/src/components/sections/SowetoHeroSection.tsx @@ -0,0 +1,79 @@ +'use client' + +import { useVulaContent } from '@/hooks/useVulaContent' +import Image from 'next/image' +import Button from '@/components/ui/Button' + +export default function SowetoHeroSection() { + const { items, loading } = useVulaContent('hero_banners') + + if (loading) { + return ( +
+
+
+ ) + } + + if (items.length === 0) return null + + const d = items[0].data as { + title?: string + subtitle?: string + cta_text?: string + cta_url?: string + image?: string + } + + return ( +
+ {/* Left solid block — ink black */} +
+
+

+ {d.title || 'FROM THE TOWNSHIP'} + TO THE WORLD +

+ {d.subtitle && ( +

{d.subtitle}

+ )} + {d.cta_text && ( + + )} +
+
+ + {/* Right block — brand color (accent red) + image overlay */} +
+ {d.image && ( +
+ {d.title +
+ )} +
+ + {/* Decorative offset shadow */} +
+
+ ) +} \ No newline at end of file