diff --git a/src/components/sections/VendaSeasonalSpecialsSection.tsx b/src/components/sections/VendaSeasonalSpecialsSection.tsx new file mode 100644 index 0000000..a23e081 --- /dev/null +++ b/src/components/sections/VendaSeasonalSpecialsSection.tsx @@ -0,0 +1,77 @@ +'use client' + +import { useState } from "react" +import { useEmDashContent } from "@/hooks/useEmDashContent" +import Image from "next/image" +import { Card, CardContent, CardTitle } from "@/components/ui/Card" + +export default function VendaSeasonalSpecialsSection() { + const { items, loading } = useEmDashContent("promotions") + const [expandedId, setExpandedId] = useState(null) + + if (loading) { + return ( +
+
+
+ ) + } + + if (items.length === 0) return null + + return ( +
+
+

+ Seasonal specials +

+

+ Limited-time packages tied to Venda seasons and celebrations. Book now to secure your place. +

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

{d.description}

+ {d.price && ( +

{d.price}

+ )} + + {expandedId === item.id && ( +

Booking link will appear here.

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