This commit is contained in:
Vula Builder
2026-07-14 18:35:20 +00:00
parent 4536e88317
commit 6d43a5c157
@@ -0,0 +1,76 @@
'use client'
import { useEmDashContent } from '@/hooks/useEmDashContent'
import Image from 'next/image'
export default function MoltenMomentsGallerySection() {
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 text-[#f5f5dc]" />
</div>
)
}
if (items.length === 0) return null
return (
<section
id="photo-gallery"
data-vula-section="moltenmomentsgallery"
data-vula-cms="gallery"
className="py-24 bg-[#1a1a12]"
>
<div className="max-w-7xl mx-auto px-6">
{/* Eyebrow */}
<div className="flex items-center justify-center gap-4 mb-4">
<div className="w-14 h-px bg-[#f5f5dc]" />
<span className="text-[#6b8e23] font-sans uppercase tracking-[0.15em] text-sm">
Moments Captured
</span>
<div className="w-14 h-px bg-[#f5f5dc]" />
</div>
<h2 className="text-4xl md:text-5xl font-light text-[#eeeee7] text-center mb-4 font-serif">
A Gallery of Light and Shadow
</h2>
<p className="text-[#eeeee7]/80 text-center max-w-2xl mx-auto mb-12 font-sans text-sm leading-relaxed">
Golden-hour game drives, candlelit dinners, and the silent luxury of the suites.
</p>
<div className="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4">
{items.slice(0, 8).map((item) => {
const d = item.data as {
title?: string
description?: string
image?: string
}
return (
<div
key={item.id}
className="group relative aspect-square overflow-hidden rounded-[6px] border border-white/10"
>
{d.image && (
<Image
src={d.image}
alt={d.title ?? 'Molten Rock moment'}
fill
sizes="(max-width: 768px) 50vw, 25vw"
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-200" />
<div className="absolute bottom-0 left-0 right-0 p-3 opacity-0 group-hover:opacity-100 transition-opacity duration-200">
{d.title && (
<h3 className="text-sm font-serif text-[#eeeee7] leading-tight">{d.title}</h3>
)}
</div>
</div>
)
})}
</div>
</div>
</section>
)
}