From f852123cba3db62afc719fa568273bd41200d2ab Mon Sep 17 00:00:00 2001 From: Vula Builder Date: Tue, 14 Jul 2026 19:12:53 +0000 Subject: [PATCH] Deploy --- .../sections/SightingsJournalSection.tsx | 84 +++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 src/components/sections/SightingsJournalSection.tsx diff --git a/src/components/sections/SightingsJournalSection.tsx b/src/components/sections/SightingsJournalSection.tsx new file mode 100644 index 0000000..722dd57 --- /dev/null +++ b/src/components/sections/SightingsJournalSection.tsx @@ -0,0 +1,84 @@ +'use client' + +import { useEmDashContent } from '@/hooks/useEmDashContent' +import Image from 'next/image' +import Badge from '@/components/ui/Badge' + +export default function SightingsJournalSection() { + const { items, loading } = useEmDashContent('posts') + + if (loading) { + return ( +
+
+
+ ) + } + + if (items.length === 0) return null + + return ( +
+
+

+ The ranger’s digital sightings book +

+

+ Fresh notes from the bush — track the wild heartbeat of Thornveld. +

+
+ {items.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.author && ( + {d.author} + )} +
+

{d.title}

+ {d.excerpt && ( +

{d.excerpt}

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