From 0b9695cb92a5e5253c851e4170d133e96054943a Mon Sep 17 00:00:00 2001 From: Vula Builder Date: Tue, 14 Jul 2026 19:09:00 +0000 Subject: [PATCH] Deploy --- .../sections/BushChronicleSection.tsx | 90 +++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 src/components/sections/BushChronicleSection.tsx diff --git a/src/components/sections/BushChronicleSection.tsx b/src/components/sections/BushChronicleSection.tsx new file mode 100644 index 0000000..bf32607 --- /dev/null +++ b/src/components/sections/BushChronicleSection.tsx @@ -0,0 +1,90 @@ +'use client' + +import { useEmDashContent } from '@/hooks/useEmDashContent' +import Image from 'next/image' +import { Card, CardHeader, CardTitle, CardContent, CardFooter } from '@/components/ui/Card' +import { BookOpen } from 'lucide-react' + +export default function BushChronicleSection() { + const { items, loading } = useEmDashContent('posts') + + if (loading) { + return ( +
+
+
+ ) + } + + if (items.length === 0) return null + + // Only show up to 3 posts + const visibleItems = items.slice(0, 3) + + return ( +
+
+

+ Tales from the bush +

+

+ Notes on wild moments, conservation milestones, and the chef's table under the stars. +

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

{d.excerpt}

+
+ + + {d.author ? `By ${d.author}` : ''} + + + Read more + + +
+ ) + })} +
+
+

+ Recent dispatches from the reserve — updated each season. +

+
+
+
+ ) +}