Deploy
This commit is contained in:
@@ -0,0 +1,49 @@
|
|||||||
|
'use client'
|
||||||
|
import Image from 'next/image'
|
||||||
|
import { useVulaContent } from '@/hooks/useVulaContent'
|
||||||
|
import { User } from 'lucide-react'
|
||||||
|
|
||||||
|
export default function LegalTeamSection() {
|
||||||
|
const { items, loading } = useVulaContent('team_members')
|
||||||
|
|
||||||
|
if (loading) {
|
||||||
|
return <div className="flex justify-center py-16"><div className="w-8 h-8 rounded-full border-2 border-current border-t-transparent animate-spin" /></div>
|
||||||
|
}
|
||||||
|
|
||||||
|
if (items.length === 0) return null
|
||||||
|
|
||||||
|
return (
|
||||||
|
<section id="legal-team" data-vula-section="legalteam" data-vula-cms="team_members" className="bg-[#F0F8FF] py-20 px-6">
|
||||||
|
<div className="max-w-6xl mx-auto">
|
||||||
|
<div className="max-w-2xl">
|
||||||
|
<p className="text-xs uppercase tracking-[0.14em] text-[#0077BE]">Attorneys & support</p>
|
||||||
|
<h2 className="mt-4 font-serif text-4xl lg:text-5xl font-black text-[#1A2B3C] leading-tight tracking-tight">The people who <em className="italic text-[#00A8CC]">carry</em> your matter.</h2>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="grid md:grid-cols-3 gap-6 mt-12">
|
||||||
|
{items.slice(0, 6).map((item) => {
|
||||||
|
const d = item.data as { name?: string; role?: string; bio?: string; image?: string }
|
||||||
|
return (
|
||||||
|
<div key={item.id} className="group bg-transparent border border-[#1A2B3C]/15 rounded-lg hover:border-[#0077BE] transition-colors duration-200 overflow-hidden">
|
||||||
|
<div className="relative aspect-[4/5] w-full overflow-hidden">
|
||||||
|
{d.image ? (
|
||||||
|
<Image src={d.image} alt={d.name || 'Attorney'} fill sizes="(max-width: 768px) 100vw, 33vw" className="object-cover transition-transform duration-500 ease-out group-hover:scale-105" />
|
||||||
|
) : (
|
||||||
|
<div className="flex h-full items-center justify-center bg-[#1A2B3C]/5 text-[#1A2B3C]/30">
|
||||||
|
<User className="h-10 w-10" />
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
<div className="p-6">
|
||||||
|
{d.name ? <h3 className="text-xl font-bold text-[#1A2B3C]">{d.name}</h3> : null}
|
||||||
|
{d.role ? <p className="mt-1 text-xs uppercase tracking-[0.14em] text-[#00A8CC]">{d.role}</p> : null}
|
||||||
|
{d.bio ? <p className="mt-3 text-sm leading-relaxed text-[#1A2B3C]/70 line-clamp-4">{d.bio}</p> : null}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
})}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user