diff --git a/src/components/sections/ShopCTASection.tsx b/src/components/sections/ShopCTASection.tsx new file mode 100644 index 0000000..4f62c02 --- /dev/null +++ b/src/components/sections/ShopCTASection.tsx @@ -0,0 +1,80 @@ +'use client' + +import { useState } from 'react'; +import { useVulaContent } from '@/hooks/useVulaContent' +import Button from '@/components/ui/Button' +import Image from 'next/image' +import Link from 'next/link' + +export default function ShopCTASection() { + const { items, loading } = useVulaContent('advert_banners') + const [formData, setFormData] = useState({}) // dummy to satisfy hook rule + + if (loading) { + return ( +
+
+
+ ) + } + if (items.length === 0) return null + + const d = items[0].data as { + title?: string + headline?: string + body?: string + cta_text?: string + image?: string + } + + const bgImage = d.image || '/placeholder-cover.svg' + const headline = d.headline || 'Rep Your Hood' + const subtitle = d.body || 'Shop the Collection' + const cta = d.cta_text || 'Shop Now' + + return ( +
+ {/* Background image */} +
+ Crowd of township youth +
+ {/* Overlay gradient */} +
+ {/* Content */} +
+
+

+ {headline} +
+ {subtitle} +

+
+ + + +
+

+ Limited drops — get yours before they vanish +

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