From ee45b795480daa3ece5b61fa6b96acbb46101a47 Mon Sep 17 00:00:00 2001 From: Vula Builder Date: Tue, 23 Jun 2026 08:38:57 +0000 Subject: [PATCH] Deploy --- .../sections/ImveloInsightsSection.tsx | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 src/components/sections/ImveloInsightsSection.tsx diff --git a/src/components/sections/ImveloInsightsSection.tsx b/src/components/sections/ImveloInsightsSection.tsx new file mode 100644 index 0000000..9dacb91 --- /dev/null +++ b/src/components/sections/ImveloInsightsSection.tsx @@ -0,0 +1,61 @@ +'use client' + +import { useEmDashContent } from '@/hooks/useEmDashContent' +import Image from 'next/image' +import { ArrowRight } from 'lucide-react' + +export default function ImveloInsightsSection() { + const { items, loading } = useEmDashContent('posts') + + if (loading) { + return ( +
+
+
+ ) + } + + if (items.length === 0) return null + + return ( +
+
+

Imvelo Insights

+

+ Stories from our journal — wildlife encounters, braai recipes, and local gems in Pietermaritzburg. +

+
+ {items.slice(0, 3).map((item) => { + const d = item.data as { title?: string; excerpt?: string; body?: string; author?: string; category?: string; image?: string } + const imageUrl = d.image || 'https://images.pexels.com/photos/37238864/pexels-photo-37238864.jpeg?auto=compress&cs=tinysrgb&h=350' + return ( +
+
+ {d.title +
+
+ {d.category && ( + {d.category} + )} +

{d.title || 'Untitled'}

+

{d.excerpt || d.body?.slice(0, 150) || ''}

+
+ {d.author && By {d.author}} + + Read more + +
+
+
+ ) + })} +
+
+
+ ) +}