From e94427e5e304154297dc789d08e3d0338f9f461f Mon Sep 17 00:00:00 2001 From: Vula Builder Date: Sun, 26 Jul 2026 17:41:20 +0000 Subject: [PATCH] Deploy --- .../sections/LodgeJournalSection.tsx | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 src/components/sections/LodgeJournalSection.tsx diff --git a/src/components/sections/LodgeJournalSection.tsx b/src/components/sections/LodgeJournalSection.tsx new file mode 100644 index 0000000..d59a3e9 --- /dev/null +++ b/src/components/sections/LodgeJournalSection.tsx @@ -0,0 +1,48 @@ +'use client' +import { useEmDashContent } from '@/hooks/useEmDashContent' +import Image from 'next/image' +import { Calendar, User } from 'lucide-react' + +export default function LodgeJournalSection() { + const { items, loading } = useEmDashContent('posts') + + if (loading) return
+ if (items.length === 0) return null + + return ( +
+
+
+ + Lodge Journal + +
+

+ Stories from the Bush +

+
+ {items.slice(0, 4).map((item, index) => { + const d = item.data as { title?: string; excerpt?: string; author?: string; category?: string; image?: string } + const isReversed = index % 2 === 1 + return ( +
+
+ {d.title +
+
+ {d.category || 'Journal'} +

{d.title}

+

{d.excerpt}

+
+ {d.author || 'Mpofana Team'} + Recently +
+
+
+ ) + })} +
+
+
+ ) +} \ No newline at end of file