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

Drop 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.title &&

{d.title}

} + {d.headline &&

{d.headline}

} + {d.body &&

{d.body}

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