Deploy
This commit is contained in:
@@ -0,0 +1,71 @@
|
|||||||
|
'use client'
|
||||||
|
|
||||||
|
import { useEmDashContent } from '@/hooks/useEmDashContent'
|
||||||
|
import { Card, CardHeader, CardTitle, CardContent } from '@/components/ui/Card'
|
||||||
|
|
||||||
|
export default function LodgePoliciesSection() {
|
||||||
|
const { items, loading } = useEmDashContent('policies')
|
||||||
|
|
||||||
|
if (loading) {
|
||||||
|
return <div className="flex justify-center py-16"><div className="w-8 h-8 rounded-full border-2 border-[#d4af37] border-t-transparent animate-spin" /></div>
|
||||||
|
}
|
||||||
|
|
||||||
|
if (items.length === 0) return null
|
||||||
|
|
||||||
|
return (
|
||||||
|
<section
|
||||||
|
id="lodge-policies"
|
||||||
|
data-vula-section="lodgepolicies"
|
||||||
|
data-vula-cms="policies"
|
||||||
|
className="py-28 bg-[#0f1712] border-t border-[#304036]"
|
||||||
|
>
|
||||||
|
<div className="container mx-auto px-4 max-w-6xl">
|
||||||
|
<div className="flex items-center justify-center gap-4 mb-6">
|
||||||
|
<span className="block w-14 h-px bg-[#d4af37]" />
|
||||||
|
<span className="text-[#d4af37] text-xs font-sans uppercase tracking-[0.2em]">
|
||||||
|
Lodge Policies
|
||||||
|
</span>
|
||||||
|
<span className="block w-14 h-px bg-[#d4af37]" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h2 className="font-serif font-light text-4xl md:text-5xl text-center text-[#e7eeea] leading-tight mb-16">
|
||||||
|
Designed for your
|
||||||
|
<span className="italic text-[#d4af37]"> ease</span>
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
<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
|
||||||
|
}
|
||||||
|
return (
|
||||||
|
<Card
|
||||||
|
key={item.id}
|
||||||
|
className="bg-[#1a2720] border border-[#304036] rounded-lg"
|
||||||
|
>
|
||||||
|
<CardHeader>
|
||||||
|
<CardTitle className="text-lg font-sans uppercase tracking-widest text-[#d4af37]">
|
||||||
|
{d.title}
|
||||||
|
</CardTitle>
|
||||||
|
</CardHeader>
|
||||||
|
<CardContent>
|
||||||
|
<p className="text-[#b0bfb8] text-sm leading-relaxed">
|
||||||
|
{d.description}
|
||||||
|
</p>
|
||||||
|
</CardContent>
|
||||||
|
</Card>
|
||||||
|
)
|
||||||
|
})}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{items.length === 0 && (
|
||||||
|
<p className="text-center text-[#6a7a72] text-sm mt-12">
|
||||||
|
Policy details coming soon. For immediate questions, please contact
|
||||||
|
us directly.
|
||||||
|
</p>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user