Deploy
This commit is contained in:
@@ -0,0 +1,38 @@
|
|||||||
|
'use client'
|
||||||
|
import { useEmDashContent } from '@/hooks/useEmDashContent'
|
||||||
|
import Image from 'next/image'
|
||||||
|
|
||||||
|
export default function GuestGallerySection() {
|
||||||
|
const { items, loading } = useEmDashContent('gallery')
|
||||||
|
|
||||||
|
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-gallery" data-vula-section="guestgallery" data-vula-cms="gallery" className="py-24 bg-[#15271c]">
|
||||||
|
<div className="max-w-7xl mx-auto px-4">
|
||||||
|
<div className="flex items-center justify-center gap-6 mb-16">
|
||||||
|
<span className="block w-14 h-px bg-[#d4af37]"></span>
|
||||||
|
<span className="text-[#d4af37] uppercase tracking-[0.2em] text-sm font-medium">Moments Captured</span>
|
||||||
|
<span className="block w-14 h-px bg-[#d4af37]"></span>
|
||||||
|
</div>
|
||||||
|
<h2 className="text-4xl md:text-5xl font-light text-center mb-12 text-[#e7eeea]">
|
||||||
|
The <span className="italic text-[#d4af37]">Gallery</span> of Bush Life
|
||||||
|
</h2>
|
||||||
|
<div className="grid grid-cols-2 md:grid-cols-3 gap-4">
|
||||||
|
{items.slice(0, 9).map((item) => {
|
||||||
|
const d = item.data as { title?: string; description?: string; image?: string }
|
||||||
|
return (
|
||||||
|
<div key={item.id} className="relative aspect-video overflow-hidden rounded-md border border-[#304036] group">
|
||||||
|
<Image src={d.image || ''} alt={d.title || ''} fill sizes="(max-width: 768px) 50vw, 33vw" className="object-cover transition-transform duration-500 ease-out group-hover:scale-105" />
|
||||||
|
<div className="absolute inset-0 bg-gradient-to-t from-black/60 via-transparent to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-300 flex items-end p-4">
|
||||||
|
<span className="text-sm text-white font-medium">{d.title}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
})}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user