Deploy
This commit is contained in:
@@ -0,0 +1,51 @@
|
|||||||
|
'use client'
|
||||||
|
|
||||||
|
import { useState } from 'react'
|
||||||
|
import Button from '@/components/ui/Button'
|
||||||
|
import Input from '@/components/ui/Input'
|
||||||
|
|
||||||
|
export default function StayFreshSection() {
|
||||||
|
const [email, setEmail] = useState('')
|
||||||
|
const [submitted, setSubmitted] = useState(false)
|
||||||
|
|
||||||
|
const handleSubmit = (e: React.FormEvent) => {
|
||||||
|
e.preventDefault()
|
||||||
|
setSubmitted(true)
|
||||||
|
}
|
||||||
|
|
||||||
|
return (
|
||||||
|
<section data-vula-section="stayfresh" id="stay-fresh" className="bg-[#18181b] text-white py-20">
|
||||||
|
<div className="container mx-auto px-4">
|
||||||
|
<div className="max-w-3xl mx-auto text-center">
|
||||||
|
<h2 className="text-4xl md:text-5xl font-black uppercase tracking-tight mb-4">
|
||||||
|
Faka i-email yakho
|
||||||
|
</h2>
|
||||||
|
<p className="text-lg text-[#d4af37] font-semibold mb-8">
|
||||||
|
Stay ahead of the culture. Early drop access, exclusive drops.
|
||||||
|
</p>
|
||||||
|
{submitted ? (
|
||||||
|
<p className="text-2xl text-[#d4af37] font-bold">Signed up! We'll be in touch.</p>
|
||||||
|
) : (
|
||||||
|
<form onSubmit={handleSubmit} className="flex flex-col sm:flex-row gap-4 justify-center">
|
||||||
|
<Input
|
||||||
|
type="email"
|
||||||
|
placeholder="your@email.com"
|
||||||
|
value={email}
|
||||||
|
onChange={(e) => setEmail(e.target.value)}
|
||||||
|
required
|
||||||
|
className="bg-black border-2 border-[#d4af37] text-white placeholder-gray-400 rounded-none px-6 py-3 text-lg flex-1 max-w-sm"
|
||||||
|
/>
|
||||||
|
<Button
|
||||||
|
type="submit"
|
||||||
|
variant="default"
|
||||||
|
className="bg-[#d4af37] text-black font-extrabold uppercase tracking-wider px-8 py-3 rounded-none border-2 border-[#d4af37] hover:bg-black hover:text-[#d4af37] transition-all duration-200"
|
||||||
|
>
|
||||||
|
Join
|
||||||
|
</Button>
|
||||||
|
</form>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user