From 44ebf67358ac5a322575cfeefe50e999366946ce Mon Sep 17 00:00:00 2001 From: Vula Builder Date: Tue, 14 Jul 2026 18:35:20 +0000 Subject: [PATCH] Deploy --- .../sections/FieldNotesJournalSection.tsx | 100 ++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 src/components/sections/FieldNotesJournalSection.tsx diff --git a/src/components/sections/FieldNotesJournalSection.tsx b/src/components/sections/FieldNotesJournalSection.tsx new file mode 100644 index 0000000..b4d11d1 --- /dev/null +++ b/src/components/sections/FieldNotesJournalSection.tsx @@ -0,0 +1,100 @@ +'use client' + +import { useEmDashContent } from '@/hooks/useEmDashContent' +import Image from 'next/image' +import Button from '@/components/ui/Button' + +export default function FieldNotesJournalSection() { + const { items, loading } = useEmDashContent('posts') + + if (loading) { + return ( +
+
+
+ ) + } + + if (items.length === 0) return null + + return ( +
+
+ {/* Eyebrow */} +
+
+ + Field Journal + +
+
+

+ Notes from the Bush +

+

+ Rangers’ diaries, conservation updates, and the quiet stories of the reserve. +

+ +
+ {items.slice(0, 6).map((item) => { + const d = item.data as { + title?: string + excerpt?: 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}

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