From 2663c9da045a0f378e48649d34effd5eaaae117f Mon Sep 17 00:00:00 2001 From: jhpin2 Date: Mon, 3 Mar 2025 12:50:14 +0600 Subject: [PATCH] contact page added --- src/app/contact/page.tsx | 5 + src/components/contact-page.tsx | 232 ++++++++++++++++++++++++++++++++ src/components/ui/textarea.tsx | 22 +++ 3 files changed, 259 insertions(+) create mode 100644 src/app/contact/page.tsx create mode 100644 src/components/contact-page.tsx create mode 100644 src/components/ui/textarea.tsx diff --git a/src/app/contact/page.tsx b/src/app/contact/page.tsx new file mode 100644 index 0000000..df5289b --- /dev/null +++ b/src/app/contact/page.tsx @@ -0,0 +1,5 @@ +import ContactPage from "@/components/contact-page"; + +export default function Contact() { + return ; +} diff --git a/src/components/contact-page.tsx b/src/components/contact-page.tsx new file mode 100644 index 0000000..6f6494d --- /dev/null +++ b/src/components/contact-page.tsx @@ -0,0 +1,232 @@ +"use client"; + +import type React from "react"; + +import { useState } from "react"; +import { Facebook, Twitter, Linkedin, Instagram, MapPin } from "lucide-react"; +import { Button } from "@/components/ui/button"; +import { Input } from "@/components/ui/input"; +import { Textarea } from "@/components/ui/textarea"; + +export default function ContactPage() { + const [formData, setFormData] = useState({ + name: "", + email: "", + phone: "", + company: "", + message: "", + }); + + const handleChange = ( + e: React.ChangeEvent + ) => { + const { name, value } = e.target; + setFormData((prev) => ({ ...prev, [name]: value })); + }; + + const handleSubmit = (e: React.FormEvent) => { + e.preventDefault(); + console.log("Form submitted:", formData); + // toast({ + // title: "Message sent!", + // description: "We'll be in touch with you shortly.", + // }); + // Reset form + setFormData({ + name: "", + email: "", + phone: "", + company: "", + message: "", + }); + }; + + return ( +
+
+
+
+ {/* Left Column - Contact Information */} +
+
+

+ Get in touch
+ with us directly +

+

+ We are here to help you! Tell us how we can help & we'll be + in touch with an expert within the next 24 hours. +

+
+ +
+
+

Send us an email:

+ + contact@adspillar.com + +
+ +
+

Give us a call:

+ + +880 1784-493232 + +
+ +
+

Follow us:

+ +
+
+
+ + {/* Right Column - Contact Form */} +
+
+
+
+ + +
+
+ + +
+
+ +
+
+ + +
+
+ + +
+
+ +
+ +