From 8d0a625e54c7f2e8d56722cb008adc986e301be0 Mon Sep 17 00:00:00 2001 From: kudinDmitriyUp Date: Sun, 21 Jun 2026 08:54:01 +0000 Subject: [PATCH] Bob AI: Added newsletter signup section before footer --- src/pages/HomePage.tsx | 4 +- src/pages/HomePage/sections/Newsletter.tsx | 50 ++++++++++++++++++++++ 2 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 src/pages/HomePage/sections/Newsletter.tsx 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 -- 2.49.1