This commit is contained in:
Vula Builder
2026-07-27 17:52:35 +00:00
parent da88be1c9f
commit a0b252ddb0
@@ -0,0 +1,52 @@
'use client'
import { useVulaContent } from '@/hooks/useVulaContent'
import Button from '@/components/ui/Button'
import { Card, CardContent } from '@/components/ui/Card'
import Badge from '@/components/ui/Badge'
import { ArrowRight, Clock } from 'lucide-react'
import Image from 'next/image'
export default function LimitedDropCampaignSection() {
const { items, loading } = useVulaContent('campaigns')
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="drops" data-vula-section="limiteddropcampaign" data-vula-cms="campaigns" className="py-20 bg-[#18181b] text-white">
<div className="max-w-7xl mx-auto px-4">
<div className="flex items-center gap-3 mb-10">
<Clock className="w-6 h-6 text-[#d4af37]" />
<h2 className="text-4xl md:text-5xl font-black uppercase tracking-tight">
Limited Drops
</h2>
</div>
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
{items.map((item) => {
const d = item.data as { title?: string; headline?: string; body?: string; cta_text?: string; image?: string }
return (
<Card key={item.id} className="border-2 border-[#d4af37] shadow-[8px_8px_0_0_#d4af37] bg-white text-[#101418] rounded-none overflow-hidden">
<div className="relative h-48 w-full">
{d.image && (
<Image src={d.image} alt={d.title || ''} fill className="object-cover" sizes="(max-width: 768px) 100vw, 50vw" />
)}
</div>
<CardContent className="p-6 space-y-3">
<Badge variant="accent" size="sm" className="uppercase tracking-wider">Just Dropped</Badge>
<h3 className="text-2xl font-black uppercase">{d.title}</h3>
<p className="text-sm uppercase tracking-wide">{d.headline}</p>
<p className="text-sm text-gray-600">{d.body}</p>
<div className="pt-3">
<Button variant="default" className="uppercase text-sm tracking-widest bg-[#dc2626] hover:bg-[#b91c1c] shadow-[4px_4px_0_0_#18181b]">
{d.cta_text || 'Shop Now'} <ArrowRight className="w-4 h-4 ml-2" />
</Button>
</div>
</CardContent>
</Card>
)
})}
</div>
</div>
</section>
)
}