diff --git a/src/components/Contact-section/ContactForm.jsx b/src/components/Contact-section/ContactForm.jsx index 0041da1..1982733 100644 --- a/src/components/Contact-section/ContactForm.jsx +++ b/src/components/Contact-section/ContactForm.jsx @@ -1,8 +1,12 @@ import { useState } from "react"; import "./Contact-section.css"; // Ensure this path is correct import FirstNameIcon from "../../assets/icons/first-name-icon.png"; // Replace with your actual path +import LastNameIcon from "../../assets/icons/last-name-icon.png"; // Replace with your actual path import EmailIcon from "../../assets/icons/email-icon.png"; // Replace with your actual path import MessageIcon from "../../assets/icons/message-icon.png"; // Replace with your actual path +import Github from "../../assets/Social-Icons/Github.png"; +import Insta from "../../assets/Social-Icons/instagram.png"; +import Twitter from "../../assets/Social-Icons/Twitter.png"; const ContactForm = () => { const [contactForm, setContactForm] = useState({ @@ -21,7 +25,6 @@ const ContactForm = () => { const handleSubmit = (e) => { e.preventDefault(); const validationContactErrors = {}; - if (!contactForm.firstName.trim()) { validationContactErrors.firstName = "First name is required"; } @@ -37,7 +40,6 @@ const ContactForm = () => { if (!contactForm.message.trim()) { validationContactErrors.message = "Message is required"; } - setContactErrors(validationContactErrors); if (Object.keys(validationContactErrors).length === 0) { @@ -54,6 +56,7 @@ const ContactForm = () => { return ( <>
+ {/* Left hand side of the form */} {/* Right hand side of the form */}
@@ -72,7 +75,7 @@ const ContactForm = () => {
- Last Name Icon + Last Name Icon {
-
- Email Icon - - - {contactErrors.email} - +
+
+ Email Icon + + + {contactErrors.email} + +
@@ -113,7 +118,7 @@ const ContactForm = () => {
-
+