From 06ef9d90e661bc7ac3273380e656916f41b37de2 Mon Sep 17 00:00:00 2001 From: Vula Builder Date: Wed, 29 Jul 2026 19:04:18 +0000 Subject: [PATCH] Deploy --- .../sections/StyleDiariesSection.tsx | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 src/components/sections/StyleDiariesSection.tsx diff --git a/src/components/sections/StyleDiariesSection.tsx b/src/components/sections/StyleDiariesSection.tsx new file mode 100644 index 0000000..ff51d30 --- /dev/null +++ b/src/components/sections/StyleDiariesSection.tsx @@ -0,0 +1,44 @@ +'use client' + +import { useVulaContent } from '@/hooks/useVulaContent' +import Image from 'next/image' +import { Card, CardContent } from '@/components/ui/Card' +import Badge from '@/components/ui/Badge' + +export default function StyleDiariesSection() { + const { items, loading } = useVulaContent('posts') + + if (loading) return
+ if (items.length === 0) return null + + return ( +
+
+

Style Diaries

+

Trend reports, how-to-wear guides, and behind-the-scenes stories.

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

{d.title}

+ {d.excerpt &&

{d.excerpt}

} + {d.author &&

By {d.author}

} +
+
+ ) + })} +
+
+
+ ) +} \ No newline at end of file