diff --git a/src/pages/HomePage.tsx b/src/pages/HomePage.tsx index 17bc774..ee7ac9d 100644 --- a/src/pages/HomePage.tsx +++ b/src/pages/HomePage.tsx @@ -12,7 +12,8 @@ import FaqSection from './HomePage/sections/Faq'; import ContactSection from './HomePage/sections/Contact'; -import CertificationsSection from './HomePage/sections/Certifications';export default function HomePage(): React.JSX.Element { +import CertificationsSection from './HomePage/sections/Certifications'; +import NewsletterSection from './HomePage/sections/Newsletter';export default function HomePage(): React.JSX.Element { return ( <> @@ -27,6 +28,7 @@ import CertificationsSection from './HomePage/sections/Certifications';export de + > ); } diff --git a/src/pages/HomePage/sections/Newsletter.tsx b/src/pages/HomePage/sections/Newsletter.tsx new file mode 100644 index 0000000..82f0252 --- /dev/null +++ b/src/pages/HomePage/sections/Newsletter.tsx @@ -0,0 +1,50 @@ +import { useState } from "react"; +import { motion } from "motion/react"; +import Tag from "@/components/ui/Tag"; +import TextAnimation from "@/components/ui/TextAnimation"; +import ScrollReveal from "@/components/ui/ScrollReveal"; +import Input from "@/components/ui/Input"; +import Button from "@/components/ui/Button"; + +export default function NewsletterSection() { + const [email, setEmail] = useState(""); + + const handleSubmit = (e: React.FormEvent) => { + e.preventDefault(); + console.log("Subscribed:", email); + setEmail(""); + }; + + return ( + + + + + + + + Subscribe to receive early access to new collections, private sales, and insider news from Mukmhal. + + + setEmail(e.target.value)} + required + className="flex-1" + /> + + + + + + + ); +} \ No newline at end of file
+ Subscribe to receive early access to new collections, private sales, and insider news from Mukmhal. +