Deploy
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
'use client'
|
||||
|
||||
import { useEmDashContent } from '@/hooks/useEmDashContent'
|
||||
import Image from 'next/image'
|
||||
import Link from 'next/link'
|
||||
|
||||
export default function MasaiSuitesPromotionsSection() {
|
||||
const { items, loading } = useEmDashContent('promotions')
|
||||
|
||||
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="masaisuitespromotions" data-vula-cms="promotions" className="bg-[#f9f4f4] py-16">
|
||||
<div className="max-w-7xl mx-auto px-4">
|
||||
<h2 className="text-3xl md:text-4xl font-bold text-[#210d0d] mb-2 tracking-tight">Limited-time packages for extraordinary safaris</h2>
|
||||
<p className="text-[#210d0d] opacity-70 mb-10 text-lg max-w-2xl">Curated seasonal offers crafted for the discerning traveller—book direct for exclusive perks.</p>
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
|
||||
{items.map((item) => {
|
||||
const d = item.data as { title?: string; description?: string; price?: string; image?: string }
|
||||
return (
|
||||
<div key={item.id} className="group bg-white rounded-xl overflow-hidden shadow-[0_8px_30px_rgba(210,13,13,0.06)] border border-[#e2d4d4] transition-all duration-300 hover:shadow-[0_12px_40px_rgba(210,13,13,0.12)] hover:-translate-y-1">
|
||||
<div className="relative aspect-[4/3] overflow-hidden">
|
||||
{d.image && (
|
||||
<Image
|
||||
src={d.image}
|
||||
alt={d.title || 'Promotion image'}
|
||||
fill
|
||||
sizes="(max-width: 768px) 100vw, 33vw"
|
||||
className="object-cover transition-transform duration-500 group-hover:scale-105"
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
<div className="p-5">
|
||||
<h3 className="text-xl font-semibold text-[#210d0d] mb-2">{d.title}</h3>
|
||||
<p className="text-[#210d0d] opacity-70 text-sm mb-3 line-clamp-2">{d.description}</p>
|
||||
<div className="flex items-center justify-between">
|
||||
{d.price && <span className="text-lg font-bold text-[#d4af37]">{d.price}</span>}
|
||||
<Link href="/booking">
|
||||
<button className="bg-[#dc2626] text-white px-4 py-2 rounded-lg text-sm font-medium transition-all duration-200 hover:bg-[#b81e1e] active:scale-95">
|
||||
Book Now
|
||||
</button>
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user