Deploy
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
'use client'
|
||||
import { useVulaContent } from '@/hooks/useVulaContent'
|
||||
import { Card, CardContent } from '@/components/ui/Card'
|
||||
import Image from 'next/image'
|
||||
|
||||
export default function GallerySection() {
|
||||
const { items, loading } = useVulaContent('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="lookbook" data-vula-section="gallery" data-vula-cms="gallery" className="bg-white py-20">
|
||||
<div className="container mx-auto px-4">
|
||||
<h2 className="font-['Archivo_Black'] uppercase text-4xl md:text-5xl text-[#18181b] mb-12 tracking-tight">
|
||||
LOOKBOOK
|
||||
</h2>
|
||||
<div className="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4">
|
||||
{items.slice(0, 8).map((item, i) => {
|
||||
const d = item.data as { title?: string; description?: string; image?: string }
|
||||
return (
|
||||
<Card key={item.id} className="border-3 border-[#18181b] rounded-none shadow-[4px_4px_0_0_#18181b] overflow-hidden group cursor-pointer">
|
||||
<div className="relative aspect-square overflow-hidden">
|
||||
{d.image && (
|
||||
<Image src={d.image} alt={d.title || ''} fill className="object-cover transition-transform duration-500 group-hover:scale-105" sizes="(max-width: 768px) 50vw, 25vw" />
|
||||
)}
|
||||
<div className="absolute inset-0 bg-gradient-to-t from-black/70 via-transparent to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-300 flex items-end p-4">
|
||||
<CardContent className="p-0">
|
||||
{d.title && <h3 className="text-white font-bold text-sm uppercase tracking-wider">{d.title}</h3>}
|
||||
{d.description && <p className="text-gray-200 text-xs mt-1">{d.description}</p>}
|
||||
</CardContent>
|
||||
</div>
|
||||
</div>
|
||||
</Card>
|
||||
)
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user