This commit is contained in:
Vula Builder
2026-07-27 18:06:17 +00:00
parent f8ff5ff9f3
commit e32f05d09b
@@ -0,0 +1,85 @@
'use client'
import { useVulaContent } from '@/hooks/useVulaContent'
import Image from 'next/image'
import Link from 'next/link'
export default function StreetStyleLookbookSection() {
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="street-lookbook"
data-vula-section="streetstylelookbook"
data-vula-cms="gallery"
className="py-20 bg-[#f4f4f4]"
>
<div className="container mx-auto px-4">
<div className="text-center mb-12">
<span className="text-[#16a34a] font-bold uppercase tracking-widest text-sm">Soweto Stories</span>
<h2 className="text-4xl md:text-5xl font-black uppercase text-[#18181b] mt-2">
Street Style Lookbook
</h2>
<p className="text-gray-600 mt-2">Real people, real fits, real streets.</p>
</div>
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6">
{items.map((item) => {
const d = item.data as { title?: string; description?: string; image?: string }
return (
<div
key={item.id}
className="relative group overflow-hidden border-2 border-[#18181b] shadow-[4px_4px_0_0_#16a34a] break-inside-avoid"
>
<div className="aspect-[3/4] relative">
{d.image ? (
<Image
src={d.image}
alt={d.title || 'Street style look'}
fill
sizes="(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 33vw"
className="object-cover grayscale group-hover:grayscale-0 transition-all duration-300"
/>
) : (
<div className="w-full h-full bg-gray-200 flex items-center justify-center text-gray-400">
No Image
</div>
)}
</div>
{/* Hover overlay */}
<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 flex-col justify-end p-4">
<h3 className="text-white font-bold uppercase text-lg">{d.title || ''}</h3>
{d.description && (
<p className="text-gray-200 text-sm mt-1 line-clamp-2">{d.description}</p>
)}
<Link href="/products" className="mt-2 inline-block text-[#16a34a] font-bold uppercase text-sm">
Shop Look &rarr;
</Link>
</div>
{/* Tape accent */}
<div className="absolute top-2 left-2 w-12 h-2 bg-[#16a34a] rotate-[-5deg]" />
{/* Always visible title on bottom */}
<div className="p-3 bg-white border-t-2 border-[#18181b]">
<p className="font-bold text-[#18181b] uppercase text-sm truncate">{d.title || 'Untitled'}</p>
</div>
</div>
)
})}
</div>
</div>
</section>
)
}