Deploy
This commit is contained in:
@@ -0,0 +1,58 @@
|
|||||||
|
'use client'
|
||||||
|
|
||||||
|
import { useEmDashContent } from '@/hooks/useEmDashContent'
|
||||||
|
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/Card'
|
||||||
|
import { Quote } from 'lucide-react'
|
||||||
|
|
||||||
|
export default function GuestTalesSection() {
|
||||||
|
const { items, loading } = useEmDashContent('posts')
|
||||||
|
|
||||||
|
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="guest-stories" data-vula-section="guesttales" data-vula-cms="posts" className="bg-white py-20 px-6">
|
||||||
|
<div className="max-w-7xl mx-auto">
|
||||||
|
<h2 className="text-3xl font-bold text-[#111827] mb-4 text-center">Guest Tales</h2>
|
||||||
|
<p className="text-[#111827]/70 text-center max-w-2xl mx-auto mb-12">
|
||||||
|
Stories of warmth, privacy, and regal service from our guests
|
||||||
|
</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; excerpt?: string; author?: string; category?: string; image?: string }
|
||||||
|
return (
|
||||||
|
<Card key={item.id} className="rounded-2xl border border-neutral-100 bg-white shadow-[var(--shadow-card)] hover:shadow-[var(--shadow-lifted)] hover:-translate-y-0.5 transition-all duration-200 ease-out p-6 relative">
|
||||||
|
<CardContent className="p-0">
|
||||||
|
<Quote className="w-8 h-8 text-[#d4af37]/30 mb-3" />
|
||||||
|
{d.excerpt && (
|
||||||
|
<p className="text-base text-[#111827]/80 leading-relaxed italic mb-4">
|
||||||
|
“{d.excerpt}”
|
||||||
|
</p>
|
||||||
|
)}
|
||||||
|
{d.title && (
|
||||||
|
<h3 className="text-lg font-semibold text-[#111827] mb-1">{d.title}</h3>
|
||||||
|
)}
|
||||||
|
<div className="flex items-center gap-3 text-sm">
|
||||||
|
{d.author && <span className="text-[#8b5a3c] font-medium">{d.author}</span>}
|
||||||
|
{d.category && (
|
||||||
|
<span className="inline-block bg-[#16a34a]/10 text-[#16a34a] px-2 py-0.5 rounded-full text-xs font-semibold">
|
||||||
|
{d.category}
|
||||||
|
</span>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
</CardContent>
|
||||||
|
</Card>
|
||||||
|
)
|
||||||
|
})}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user