From e6491c3332d3f4de5487178e401a62c54ad8888b Mon Sep 17 00:00:00 2001 From: Vula Builder Date: Mon, 27 Jul 2026 18:59:57 +0000 Subject: [PATCH] Deploy --- .../sections/OriginRootsSection.tsx | 64 +++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 src/components/sections/OriginRootsSection.tsx diff --git a/src/components/sections/OriginRootsSection.tsx b/src/components/sections/OriginRootsSection.tsx new file mode 100644 index 0000000..0928aa9 --- /dev/null +++ b/src/components/sections/OriginRootsSection.tsx @@ -0,0 +1,64 @@ +'use client' + +import { useVulaContent } from '@/hooks/useVulaContent' +import Image from 'next/image' +import Button from '@/components/ui/Button' +import Link from 'next/link' + +export default function OriginRootsSection() { + const { items, loading } = useVulaContent('posts') + + if (loading) return
+ + if (items.length === 0) return null + + const item = items[0] + const data = item.data as { title?: string; excerpt?: string; body?: string; author?: string; category?: string; image?: string } + + return ( +
+
+
+
+ {data.image && ( + {data.title + )} +
+
+ {data.category && ( +

{data.category}

+ )} + {data.title && ( +

+ {data.title.split(' ').slice(0, -1).join(' ')}{' '} + {data.title.split(' ').pop()} +

+ )} + {data.excerpt && ( +

{data.excerpt}

+ )} + {data.body && ( +

{data.body}

+ )} +
+ {data.author && ( +

By {data.author}

+ )} + + + +
+
+
+
+
+ ) +} \ No newline at end of file