diff --git a/src/components/sections/CampaignsSection.tsx b/src/components/sections/CampaignsSection.tsx new file mode 100644 index 0000000..4ecb82f --- /dev/null +++ b/src/components/sections/CampaignsSection.tsx @@ -0,0 +1,49 @@ +'use client' + +import { useVulaContent } from '@/hooks/useVulaContent' +import { Card, CardHeader, CardTitle, CardContent, CardFooter } from '@/components/ui/Card' +import Button from '@/components/ui/Button' +import Badge from '@/components/ui/Badge' +import Image from 'next/image' + +export default function CampaignsSection() { + const { items, loading } = useVulaContent('campaigns') + + if (loading) return
+ + if (items.length === 0) return null + + return ( +
+
+

Campaigns

+
+ {items.map((item) => { + const d = item.data as { title?: string; headline?: string; body?: string; cta_text?: string; image?: string } + return ( + + {d.image && ( +
+ {d.title +
+ )} + + {d.headline && {d.headline}} + {d.title} + + +

{d.body}

+
+ {d.cta_text && ( + + + + )} +
+ ) + })} +
+
+
+ ) +} \ No newline at end of file