From 89954d7b69b5554e5524b152f3af4c9410993bdd Mon Sep 17 00:00:00 2001 From: Vula Builder Date: Tue, 23 Jun 2026 08:38:47 +0000 Subject: [PATCH] Deploy --- .../sections/CommunityJusticeSection.tsx | 76 +++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 src/components/sections/CommunityJusticeSection.tsx diff --git a/src/components/sections/CommunityJusticeSection.tsx b/src/components/sections/CommunityJusticeSection.tsx new file mode 100644 index 0000000..4a56fa3 --- /dev/null +++ b/src/components/sections/CommunityJusticeSection.tsx @@ -0,0 +1,76 @@ +'use client' +import { useEmDashContent } from '@/hooks/useEmDashContent' +import Image from 'next/image' +import Link from 'next/link' +import { Card, CardContent, CardFooter, CardTitle } from '@/components/ui/Card' +import Button from '@/components/ui/Button' + +export default function CommunityJusticeSection() { + const { items, loading } = useEmDashContent('campaigns') + + if (loading) { + return ( +
+
+
+ ) + } + + if (items.length === 0) return null + + return ( +
+
+
+

Community Justice

+

+ Pro bono initiatives and legal workshops that uplift our communities +

+
+
+ {items.slice(0, 6).map((item) => { + const d = item.data as { title?: string; headline?: string; body?: string; cta_text?: string; image?: string } + const img = d.image || '' + const title = d.title || d.headline || 'Campaign' + const desc = d.body || '' + const cta = d.cta_text || 'Get Involved' + return ( + +
+ {img ? ( + {title} + ) : ( +
+ + + +
+ )} +
+ + {title} + {desc && ( +

{desc}

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