From 5ec4e2bc3703922c0e2b0958316c24c8b0ce33ba Mon Sep 17 00:00:00 2001 From: Vula Builder Date: Tue, 23 Jun 2026 08:38:43 +0000 Subject: [PATCH] Deploy --- .../sections/AdvocateProfilesSection.tsx | 73 +++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 src/components/sections/AdvocateProfilesSection.tsx diff --git a/src/components/sections/AdvocateProfilesSection.tsx b/src/components/sections/AdvocateProfilesSection.tsx new file mode 100644 index 0000000..8d7971c --- /dev/null +++ b/src/components/sections/AdvocateProfilesSection.tsx @@ -0,0 +1,73 @@ +'use client' + +import { useEmDashContent } from '@/hooks/useEmDashContent' +import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/Card' +import Image from 'next/image' + +export default function AdvocateProfilesSection() { + const { items, loading } = useEmDashContent('team_members') + + if (loading) { + return ( +
+
+
+ ) + } + + if (!items || items.length === 0) return null + + return ( +
+
+
+

+ Meet Your Defence Team +

+

+ Seasoned advocates and attorneys who bring decades of courtroom experience to every case. +

+
+
+ {items.map((item) => { + const d = item.data as { name?: string; role?: string; bio?: string; image?: string } + return ( + + +
+ {d.image ? ( + {d.name + ) : ( +
+ {d.name?.charAt(0) ?? '?'} +
+ )} +
+
+ + + {d.name ?? 'Advocate'} + + {d.role && ( + {d.role} + )} + {d.bio && ( +

+ {d.bio} +

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