diff --git a/src/components/sections/UbuntuGlowTestimonialsSection.tsx b/src/components/sections/UbuntuGlowTestimonialsSection.tsx new file mode 100644 index 0000000..20fab0f --- /dev/null +++ b/src/components/sections/UbuntuGlowTestimonialsSection.tsx @@ -0,0 +1,49 @@ +'use client' + +import { useVulaContent } from '@/hooks/useVulaContent' +import Image from 'next/image' + +export default function UbuntuGlowTestimonialsSection() { + const { items, loading } = useVulaContent('posts') + + if (loading) return
+ if (items.length === 0) return null + + return ( +
+
+
+ Ubuntu +

+ I am because we are — real stories from our community +

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

“{d.excerpt}”

} + {d.author &&

{d.author}

} + {d.title &&

{d.title}

} +
+
+ ) + })} +
+ {items.length > 3 && ( +
+ +
+ )} +
+
+ ) +}