diff --git a/src/components/sections/StreetCredFeedSection.tsx b/src/components/sections/StreetCredFeedSection.tsx new file mode 100644 index 0000000..37a08ee --- /dev/null +++ b/src/components/sections/StreetCredFeedSection.tsx @@ -0,0 +1,101 @@ +'use client' + +import { useEmDashContent } from '@/hooks/useEmDashContent' +import { Card, CardHeader, CardTitle, CardContent, CardFooter } from '@/components/ui/Card' +import Badge from '@/components/ui/Badge' +import { Heart, MessageCircle } from 'lucide-react' + +export default function StreetCredFeedSection() { + const { items, loading } = useEmDashContent('posts') + + if (loading) { + return ( +
+
+
+ ) + } + + if (items.length === 0) return null + + return ( +
+
+

+ Street Cred Feed +

+

+ Real talk from the streets — what people are saying and wearing. +

+ +
+ {items.map((item) => { + const d = item.data as { + title?: string + excerpt?: string + body?: string + author?: string + category?: string + image?: string + } + + return ( + + + {d.category && ( + + {d.category} + + )} + {d.author && ( + + @{d.author} + + )} + + + + {d.title && ( + + {d.title} + + )} + {d.excerpt && ( +

+ {d.excerpt} +

+ )} + {d.body && !d.excerpt && ( +

+ {d.body} +

+ )} +
+ + + + 24 + + + 8 + + +
+ ) + })} +
+
+
+ ) +}