Deploy
This commit is contained in:
@@ -0,0 +1,66 @@
|
|||||||
|
'use client'
|
||||||
|
import Link from 'next/link'
|
||||||
|
import Image from 'next/image'
|
||||||
|
import Button from '@/components/ui/Button'
|
||||||
|
import { Card, CardContent } from '@/components/ui/Card'
|
||||||
|
import { useVulaContent } from '@/hooks/useVulaContent'
|
||||||
|
import { ArrowRight } from 'lucide-react'
|
||||||
|
|
||||||
|
export default function SpecialOffersSection() {
|
||||||
|
const { items, loading } = useVulaContent('campaigns')
|
||||||
|
|
||||||
|
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="special-offers" data-vula-section="specialoffers" data-vula-cms="campaigns" className="bg-[#F0F8FF] py-20 px-6">
|
||||||
|
<div className="max-w-6xl mx-auto">
|
||||||
|
<div className="grid md:grid-cols-[1.6fr_0.7fr] gap-8 md:gap-12">
|
||||||
|
<div>
|
||||||
|
<p className="text-xs uppercase tracking-[0.14em] text-[#0077BE]">Current client incentives</p>
|
||||||
|
<h2 className="mt-4 font-serif text-4xl lg:text-5xl font-black text-[#1A2B3C] leading-tight tracking-tight">Clear fees, <em className="italic text-[#0077BE]">limited</em> windows.</h2>
|
||||||
|
<p className="mt-4 text-[#1A2B3C]/70 max-w-xl">Fixed-fee packages and introductory consultations, published when available.</p>
|
||||||
|
</div>
|
||||||
|
<div className="md:border-l border-[#1A2B3C]/15 md:pl-10 flex items-end pb-1">
|
||||||
|
<p className="text-sm text-[#1A2B3C]/60">Every campaign is vetted by a practising attorney before it reaches this page.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="grid md:grid-cols-3 gap-6 mt-12">
|
||||||
|
{items.slice(0, 3).map((item) => {
|
||||||
|
const d = item.data as { title?: string; headline?: string; body?: string; cta_text?: string; image?: string }
|
||||||
|
return (
|
||||||
|
<Card key={item.id} className="bg-transparent border border-[#1A2B3C]/15 rounded-lg hover:border-[#0077BE] transition-colors duration-200 shadow-none">
|
||||||
|
<CardContent className="p-6">
|
||||||
|
{d.image ? (
|
||||||
|
<div className="relative h-44 w-full overflow-hidden rounded-md">
|
||||||
|
<Image src={d.image} alt={d.headline || d.title || ''} fill sizes="(max-width: 768px) 100vw, 33vw" className="object-cover" />
|
||||||
|
</div>
|
||||||
|
) : (
|
||||||
|
<div className="flex h-44 items-center justify-center bg-[#1A2B3C]/5 text-[#1A2B3C]/30">
|
||||||
|
<span className="text-xs uppercase tracking-[0.14em]">Campaign</span>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
<div className="mt-5">
|
||||||
|
{d.title ? <p className="text-xs uppercase tracking-[0.14em] text-[#00A8CC]">{d.title}</p> : null}
|
||||||
|
{d.headline ? <h3 className="mt-2 text-xl font-bold text-[#1A2B3C]">{d.headline}</h3> : null}
|
||||||
|
{d.body ? <p className="mt-2 text-sm leading-relaxed text-[#1A2B3C]/70">{d.body}</p> : null}
|
||||||
|
<Link href="/booking" className="mt-4 inline-flex">
|
||||||
|
<Button variant="outline" size="sm" className="transition-all duration-200 ease-out">
|
||||||
|
{d.cta_text || 'Book consultation'}
|
||||||
|
<ArrowRight className="ml-2 h-4 w-4" />
|
||||||
|
</Button>
|
||||||
|
</Link>
|
||||||
|
</div>
|
||||||
|
</CardContent>
|
||||||
|
</Card>
|
||||||
|
)
|
||||||
|
})}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user