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

+ THE STREETS SPEAK +

+

+ Real people. Real fit. Real talk. +

+
+ {items.slice(0, 6).map((item) => { + const d = item.data as { title?: string; excerpt?: string; author?: string; image?: string; category?: string } + const stars = 5 // always show 5 stars as social proof + return ( +
+ + {"★".repeat(stars)} + + {d.excerpt && ( +

+ “{d.excerpt}” +

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

+ {d.author ?? "Street Fam"} +

+ {d.category && ( +

+ {d.category} +

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