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