diff --git a/src/components/sections/CulturalInsightsSection.tsx b/src/components/sections/CulturalInsightsSection.tsx new file mode 100644 index 0000000..5f4d633 --- /dev/null +++ b/src/components/sections/CulturalInsightsSection.tsx @@ -0,0 +1,72 @@ +'use client' + +import Image from 'next/image' +import Link from 'next/link' +import Badge from '@/components/ui/Badge' +import { ArrowRight } from 'lucide-react' +import { useEmDashContent } from '@/hooks/useEmDashContent' + +export default function CulturalInsightsSection() { + const { items, loading } = useEmDashContent('posts') + + if (loading) return ( +
+
+
+ ) + + if (items.length === 0) return null + + // Take first 3 posts for this feed + const insights = items.slice(0, 3) + + return ( +
+
+

Cultural Insights

+

+ Explore Venda traditions, local recipes, and travel tips from our team. +

+
+ {insights.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?.substring(0, 120)}{d.excerpt && d.excerpt.length > 120 ? '...' : ''} +

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