Deploy
This commit is contained in:
@@ -0,0 +1,80 @@
|
|||||||
|
'use client'
|
||||||
|
|
||||||
|
import { useEmDashContent } from '@/hooks/useEmDashContent'
|
||||||
|
import Image from 'next/image'
|
||||||
|
import Button from '@/components/ui/Button'
|
||||||
|
import { Card, CardHeader, CardTitle, CardContent, CardFooter } from '@/components/ui/Card'
|
||||||
|
import { ArrowRight } from 'lucide-react'
|
||||||
|
|
||||||
|
export default function MoltenRockCampaignsSection() {
|
||||||
|
const { items, loading } = useEmDashContent('campaigns')
|
||||||
|
|
||||||
|
if (loading) {
|
||||||
|
return (
|
||||||
|
<div className="flex justify-center py-20">
|
||||||
|
<div className="w-8 h-8 rounded-full border-2 border-current border-t-transparent animate-spin text-[#36454F]" />
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
if (items.length === 0) return null
|
||||||
|
|
||||||
|
return (
|
||||||
|
<section id="exclusive-offers" data-vula-section="moltenrockcampaigns" data-vula-cms="campaigns" className="py-20 bg-[#f2f4f5]">
|
||||||
|
<div className="container mx-auto px-4 max-w-7xl">
|
||||||
|
<h2 className="text-3xl md:text-4xl font-light text-[#36454F] mb-4 text-center">
|
||||||
|
Exclusive offers for <span className="font-semibold text-[#d4af37]">direct bookers</span>
|
||||||
|
</h2>
|
||||||
|
<p className="text-[#1f2b33] text-center max-w-2xl mx-auto mb-12 text-lg leading-relaxed">
|
||||||
|
Curated privileges reserved for those who book directly with Molten Rock Private Reserve.
|
||||||
|
</p>
|
||||||
|
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
|
||||||
|
{items.map((item) => {
|
||||||
|
const d = item.data as {
|
||||||
|
title?: string
|
||||||
|
headline?: string
|
||||||
|
body?: string
|
||||||
|
cta_text?: string
|
||||||
|
image?: string
|
||||||
|
}
|
||||||
|
return (
|
||||||
|
<Card key={item.id} className="rounded-[24px] shadow-2xl shadow-black/10 overflow-hidden border-0 transition-all duration-300 hover:shadow-3xl hover:-translate-y-1">
|
||||||
|
{d.image && (
|
||||||
|
<div className="relative h-48 w-full overflow-hidden">
|
||||||
|
<Image
|
||||||
|
src={d.image}
|
||||||
|
alt={d.title || 'Campaign'}
|
||||||
|
fill
|
||||||
|
sizes="(max-width: 768px) 100vw, 33vw"
|
||||||
|
className="object-cover transition-transform duration-500 ease-out hover:scale-105"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
<CardHeader className="px-6 pt-6 pb-0">
|
||||||
|
<CardTitle className="text-xl font-medium text-[#36454F]">{d.title}</CardTitle>
|
||||||
|
</CardHeader>
|
||||||
|
<CardContent className="px-6 py-4">
|
||||||
|
{d.headline && (
|
||||||
|
<p className="text-[#d4af37] font-semibold text-sm uppercase tracking-wider mb-2">{d.headline}</p>
|
||||||
|
)}
|
||||||
|
<p className="text-[#1f2b33] text-sm leading-relaxed">{d.body}</p>
|
||||||
|
</CardContent>
|
||||||
|
<CardFooter className="px-6 pb-6 pt-0">
|
||||||
|
<Button variant="default" size="sm" className="bg-[#36454F] text-white hover:bg-[#2a363f] rounded-full px-6 py-2 text-sm font-medium transition-all duration-200 ease-out">
|
||||||
|
{d.cta_text || 'Pre-book now'} <ArrowRight className="ml-2 w-4 h-4" />
|
||||||
|
</Button>
|
||||||
|
</CardFooter>
|
||||||
|
</Card>
|
||||||
|
)
|
||||||
|
})}
|
||||||
|
</div>
|
||||||
|
<div className="flex justify-center mt-10">
|
||||||
|
<p className="text-[#1f2b33] text-sm">
|
||||||
|
<span className="inline-block w-2 h-2 rounded-full bg-[#16a34a] mr-2" />
|
||||||
|
Limited availability — rates are subject to change upon confirmation.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user