diff --git a/src/components/sections/NewsletterSection.tsx b/src/components/sections/NewsletterSection.tsx new file mode 100644 index 0000000..a5c0536 --- /dev/null +++ b/src/components/sections/NewsletterSection.tsx @@ -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 ( +
+
+

Join the S.A.W Fam

+

+ Early access to drops, exclusive content, and first dibs on new tees. Straight to your inbox. +

+ {submitted ? ( +
+

Bet. You're in the fam now. Keep an eye on your inbox.

+
+ ) : ( +
+ setEmail(e.target.value)} + required + className="flex-1 bg-white/10 border-white/20 text-white placeholder:text-gray-400" + /> + +
+ )} +
+
+ ) +}