Deploy
This commit is contained in:
@@ -0,0 +1,76 @@
|
|||||||
|
'use client'
|
||||||
|
|
||||||
|
import { useEmDashContent } from '@/hooks/useEmDashContent'
|
||||||
|
import Image from 'next/image'
|
||||||
|
import { Card, CardContent } from '@/components/ui/Card'
|
||||||
|
|
||||||
|
export default function StreetStyleGallerySection() {
|
||||||
|
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-[#18181b] border-t-transparent animate-spin" />
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
if (items.length === 0) return null
|
||||||
|
|
||||||
|
return (
|
||||||
|
<section
|
||||||
|
id="gallery"
|
||||||
|
data-vula-section="streetstylegallery"
|
||||||
|
data-vula-cms="gallery"
|
||||||
|
className="bg-[#ffffff] py-20 px-4"
|
||||||
|
>
|
||||||
|
<div className="max-w-7xl mx-auto">
|
||||||
|
<h2 className="text-4xl md:text-5xl font-black text-[#18181b] mb-4 uppercase tracking-tight">
|
||||||
|
Street Style Gallery
|
||||||
|
</h2>
|
||||||
|
<p className="text-lg text-[#36454F] mb-12 max-w-2xl">
|
||||||
|
Real youth, real fits — SA wearing S.A.W in the wild.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<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 (
|
||||||
|
<Card
|
||||||
|
key={item.id}
|
||||||
|
className="rounded-xl border border-neutral-200 bg-white shadow-[var(--shadow-card)] hover:shadow-[var(--shadow-lifted)] hover:-translate-y-1 transition-all duration-200 ease-out overflow-hidden group cursor-pointer"
|
||||||
|
>
|
||||||
|
{d.image && (
|
||||||
|
<div className="relative w-full aspect-[4/3] overflow-hidden">
|
||||||
|
<Image
|
||||||
|
src={d.image}
|
||||||
|
alt={d.title || 'Street style photo'}
|
||||||
|
fill
|
||||||
|
sizes="(max-width: 768px) 100vw, (max-width: 1024px) 50vw, 33vw"
|
||||||
|
className="object-cover transition-transform duration-500 ease-out group-hover:scale-105"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
<CardContent className="p-4">
|
||||||
|
{d.title && (
|
||||||
|
<h3 className="text-lg font-bold text-[#18181b] mb-1">{d.title}</h3>
|
||||||
|
)}
|
||||||
|
{d.description && (
|
||||||
|
<p className="text-sm text-[#111827] leading-relaxed line-clamp-2">
|
||||||
|
{d.description}
|
||||||
|
</p>
|
||||||
|
)}
|
||||||
|
</CardContent>
|
||||||
|
</Card>
|
||||||
|
)
|
||||||
|
})}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user