diff --git a/src/components/sections/IkhambiBlogSection.tsx b/src/components/sections/IkhambiBlogSection.tsx new file mode 100644 index 0000000..7ca4fdf --- /dev/null +++ b/src/components/sections/IkhambiBlogSection.tsx @@ -0,0 +1,51 @@ +'use client' + +import { useVulaContent } from '@/hooks/useVulaContent' +import Image from 'next/image' +import Link from 'next/link' +import Button from '@/components/ui/Button' + +export default function IkhambiBlogSection() { + const { items, loading } = useVulaContent('posts') + + if (loading) return
+ if (items.length === 0) return null + + return ( +
+
+
+

+ Ikhambi — wisdom from the earth +

+

Deepen your ritual with stories and guides.

+
+
+ {items.slice(0, 3).map((item) => { + const d = item.data as { title?: string; excerpt?: string; author?: string; image?: string; category?: string } + return ( +
+ {d.image && ( +
+ {d.title +
+ )} +
+ {d.category && {d.category}} + {d.title &&

{d.title}

} + {d.excerpt &&

{d.excerpt}

} + {d.author &&

By {d.author}

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