diff --git a/src/pages/Contact/Contact.tsx b/src/pages/Contact/Contact.tsx index 64efabd..a75368e 100644 --- a/src/pages/Contact/Contact.tsx +++ b/src/pages/Contact/Contact.tsx @@ -1,22 +1,23 @@ -import { FormEvent, useRef, useState } from 'react'; +import { useState } from 'react'; +import { Github, Mail, Phone, Send, X, CheckCircle } from 'lucide-react'; function Contact() { const [showPopup, setShowPopup] = useState(false); - const formRef = useRef(null); + const [isSubmitting, setIsSubmitting] = useState(false); - const handleSubmit = (e: FormEvent) => { - e.preventDefault(); + const handleSubmit = async () => { + setIsSubmitting(true); + + // Simulate API call + await new Promise(resolve => setTimeout(resolve, 1500)); + + setIsSubmitting(false); setShowPopup(true); - // Optional: Clear the form - if (formRef.current) { - formRef.current.reset(); - } - - // Optional: Auto-close popup after 4 seconds + // Auto-close popup after 5 seconds setTimeout(() => { setShowPopup(false); - }, 4000); + }, 5000); }; const handleClosePopup = () => { @@ -24,77 +25,179 @@ function Contact() { }; return ( -
-

Contact Us

- - {/* Contact Methods */} -
-
- 📞 Phone -

(123) 456-7890

-
-
- ✉️ Email -

contact@company.com

-
-
- - {/* Contact Form */} -
-
- - -
-
- - -
-
- - +
+ {/* Animated background elements */} +
+
+
+
+
+ +
+ {/* Header Section */} +
+
+
+ Logo +
+

+ GitHub Tracker +

+
+

+ Get in touch with us to discuss your project tracking needs or report any issues +

-
- + +
+ {/* Contact Info Cards */} +
+
+

Let's Connect

+

+ We're here to help you track and manage your GitHub repositories more effectively +

+
+ +
+
+
+
+ +
+
+

Phone Support

+

(123) 456-7890

+

Mon-Fri, 9AM-6PM EST

+
+
+
+ +
+
+
+ +
+
+

Email Us

+

support@githubtracker.com

+

We'll respond within 24 hours

+
+
+
+ +
+
+
+ +
+
+

GitHub Issues

+

github.com/yourorg/githubtracker

+

Report bugs & feature requests

+
+
+
+
+
+ + {/* Contact Form */} +
+

Send us a Message

+ +
+
+
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+
+ + +
+
- +
- {/* Popup Modal */} + {/* Success Popup Modal */} {showPopup && ( -
-
-

Message Sent!

-

- Your message has been successfully sent. We will get back to you soon. -

-
+
+
+
+
+ +
+ +

Message Sent Successfully!

+

+ Thank you for reaching out to GitHub Tracker. We've received your message and will get back to you within 24 hours. +

+
@@ -105,4 +208,4 @@ function Contact() { ); } -export default Contact; +export default Contact; \ No newline at end of file