From c30309211f8b677c0f136011d3e5261d1ec580c7 Mon Sep 17 00:00:00 2001 From: Vula Builder Date: Sun, 26 Jul 2026 16:40:57 +0000 Subject: [PATCH] Deploy --- .../sections/GuestStoriesSection.tsx | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 src/components/sections/GuestStoriesSection.tsx diff --git a/src/components/sections/GuestStoriesSection.tsx b/src/components/sections/GuestStoriesSection.tsx new file mode 100644 index 0000000..33684ab --- /dev/null +++ b/src/components/sections/GuestStoriesSection.tsx @@ -0,0 +1,56 @@ +'use client' + +import { Quote } from 'lucide-react' +import { useEmDashContent } from '@/hooks/useEmDashContent' + +export default function GuestStoriesSection() { + const { items, loading } = useEmDashContent('posts') + + if (loading) return ( +
+
+
+ ) + + if (items.length === 0) return null + + // Take first 3 posts for testimonial display + const testimonials = items.slice(0, 3) + + return ( +
+
+

What Our Guests Say

+

+ Real stories from travelers who found something special in the heart of Limpopo. +

+
+ {testimonials.map((item) => { + const d = item.data as { title?: string; excerpt?: string; body?: string; author?: string; category?: string; image?: string } + return ( +
+ +
+

+ "{d.excerpt || d.body?.substring(0, 150) || 'A truly unforgettable experience.'}" +

+
+
+ {(d.author || d.title || 'G')[0]} +
+
+

{d.author || d.title || 'Guest'}

+ {d.category && ( +

{d.category}

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