From d910201446248eb8452478eb119b6c67e2e1958e Mon Sep 17 00:00:00 2001 From: Vula Builder Date: Sat, 25 Jul 2026 19:05:20 +0000 Subject: [PATCH] Deploy --- .../sections/SpecialOffersSection.tsx | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 src/components/sections/SpecialOffersSection.tsx diff --git a/src/components/sections/SpecialOffersSection.tsx b/src/components/sections/SpecialOffersSection.tsx new file mode 100644 index 0000000..0450a75 --- /dev/null +++ b/src/components/sections/SpecialOffersSection.tsx @@ -0,0 +1,62 @@ +'use client' +import { useEmDashContent } from '@/hooks/useEmDashContent' +import Image from 'next/image' +import Link from 'next/link' +import Button from '@/components/ui/Button' +import { Card, CardHeader, CardTitle, CardContent, CardFooter } from '@/components/ui/Card' + +export default function SpecialOffersSection() { + const { items, loading } = useEmDashContent('promotions') + + if (loading) return
+ if (items.length === 0) return null + + return ( +
+
+
+ + Seasonal Offers + +
+

+ Exclusive Packages +

+
+ {items.slice(0, 6).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 &&

KSh {d.price} / night

} +
+ + + + + + + ) + })} +
+
+
+ ) +}