diff --git a/src/components/ContactModal.tsx b/src/components/ContactModal.tsx new file mode 100644 index 0000000..7b421c5 --- /dev/null +++ b/src/components/ContactModal.tsx @@ -0,0 +1,128 @@ +import { motion, AnimatePresence } from "framer-motion"; +import { X, Mail, Linkedin, Github, Send } from "lucide-react"; +import { Magnetic } from "./Motion"; +import { useState } from "react"; +import { toast } from "sonner"; + +interface ContactModalProps { + isOpen: boolean; + onClose: () => void; +} + +export function ContactModal({ isOpen, onClose }: ContactModalProps) { + const [pending, setPending] = useState(false); + + const handleSubmit = (e: React.FormEvent) => { + e.preventDefault(); + setPending(true); + // Simulate API call + setTimeout(() => { + setPending(false); + toast.success("Message sent! I'll get back to you soon."); + onClose(); + }, 1500); + }; + + return ( + + {isOpen && ( + + + {/* Close button */} +
+ + + +
+ + {/* Content */} +
+
+

[ CONTACT ]

+

Let's start a
conversation.

+

+ I'm always open to discussing new projects, creative ideas or opportunities to be part of your visions. +

+
+ +
+ + rohan@example.com + +
+ + + + + + + + + + +
+
+
+ + {/* Form */} +
+
+ + +
+
+ + +
+
+ +