Deploy
This commit is contained in:
@@ -0,0 +1,70 @@
|
|||||||
|
'use client'
|
||||||
|
|
||||||
|
import { useVulaContent } from "@/hooks/useVulaContent"
|
||||||
|
import Image from "next/image"
|
||||||
|
|
||||||
|
export default function StreetStyleGallerySection() {
|
||||||
|
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-[#ea580c] border-t-transparent animate-spin" />
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
if (items.length === 0) return null
|
||||||
|
|
||||||
|
return (
|
||||||
|
<section
|
||||||
|
id="gallery"
|
||||||
|
data-vula-section="gallery"
|
||||||
|
data-vula-cms="gallery"
|
||||||
|
className="bg-[#18181b] py-20 px-4"
|
||||||
|
>
|
||||||
|
<div className="max-w-7xl mx-auto">
|
||||||
|
<h2 className="text-4xl md:text-5xl font-black uppercase tracking-tight text-white mb-2">
|
||||||
|
STREET STYLE
|
||||||
|
</h2>
|
||||||
|
<p className="text-[#ea580c] uppercase tracking-widest text-sm mb-10">
|
||||||
|
From Vilakazi to the world
|
||||||
|
</p>
|
||||||
|
<div className="columns-1 sm:columns-2 lg:columns-3 gap-6 space-y-6">
|
||||||
|
{items.map((item) => {
|
||||||
|
const d = item.data as { title?: string; description?: string; image?: string }
|
||||||
|
return (
|
||||||
|
<div
|
||||||
|
key={item.id}
|
||||||
|
className="break-inside-avoid bg-white border-2 border-[#ea580c] shadow-[6px_6px_0_0_#16a34a] rounded-none overflow-hidden"
|
||||||
|
>
|
||||||
|
{d.image && (
|
||||||
|
<div className="relative">
|
||||||
|
<Image
|
||||||
|
src={d.image}
|
||||||
|
alt={d.title ?? "Gallery image"}
|
||||||
|
width={600}
|
||||||
|
height={400}
|
||||||
|
className="w-full h-auto object-cover"
|
||||||
|
style={{ aspectRatio: "4/3" }}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
<div className="p-4">
|
||||||
|
<h3 className="text-lg font-black uppercase text-[#18181b] tracking-tight">
|
||||||
|
{d.title}
|
||||||
|
</h3>
|
||||||
|
{d.description && (
|
||||||
|
<p className="text-gray-600 text-sm mt-1">
|
||||||
|
{d.description}
|
||||||
|
</p>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
})}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user