Deploy
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
'use client'
|
||||
|
||||
import { useState } from "react"
|
||||
import Button from "@/components/ui/Button"
|
||||
import Input from "@/components/ui/Input"
|
||||
|
||||
export default function NewsletterSection() {
|
||||
const [email, setEmail] = useState("")
|
||||
const [submitted, setSubmitted] = useState(false)
|
||||
|
||||
const handleSubmit = (e: React.FormEvent) => {
|
||||
e.preventDefault()
|
||||
if (email) {
|
||||
setSubmitted(true)
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
<section data-vula-section="newsletter" id="newsletter" className="py-16 bg-[#18181b]">
|
||||
<div className="max-w-2xl mx-auto px-4 text-center">
|
||||
<h2 className="text-3xl font-bold text-white mb-2">Join the S.A.W Fam</h2>
|
||||
<p className="text-gray-300 mb-6">
|
||||
Early access to drops, exclusive content, and first dibs on new tees. Straight to your inbox.
|
||||
</p>
|
||||
{submitted ? (
|
||||
<div className="bg-white/10 rounded-xl p-6">
|
||||
<p className="text-white font-semibold">Bet. You're in the fam now. Keep an eye on your inbox.</p>
|
||||
</div>
|
||||
) : (
|
||||
<form onSubmit={handleSubmit} className="flex flex-col sm:flex-row gap-3 max-w-md mx-auto">
|
||||
<Input
|
||||
type="email"
|
||||
placeholder="your@email.com"
|
||||
value={email}
|
||||
onChange={(e) => setEmail(e.target.value)}
|
||||
required
|
||||
className="flex-1 bg-white/10 border-white/20 text-white placeholder:text-gray-400"
|
||||
/>
|
||||
<Button type="submit" variant="default" className="bg-white text-[#18181b] hover:bg-gray-100">
|
||||
Sign Up
|
||||
</Button>
|
||||
</form>
|
||||
)}
|
||||
</div>
|
||||
</section>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user