diff --git a/src/components/AboutUs.css b/src/components/AboutUs.css index 0c004c0..a52b1e9 100644 --- a/src/components/AboutUs.css +++ b/src/components/AboutUs.css @@ -194,7 +194,9 @@ img { .flex { flex-direction: column !important; } - + .socials { + flex-direction: row !important; + } .image-container-one { order: -1; } diff --git a/src/components/ContactUs.jsx b/src/components/ContactUs.jsx index a9366c9..ffae103 100644 --- a/src/components/ContactUs.jsx +++ b/src/components/ContactUs.jsx @@ -5,7 +5,7 @@ import { SectionWrapper } from "./hoc"; import { slideIn } from "../utils/motions"; import FireFliesBackground from "./FireFlies"; import { ToastContainer, toast } from "react-toastify"; -import 'react-toastify/dist/ReactToastify.css'; +import "react-toastify/dist/ReactToastify.css"; const Contact = () => { const [name, setName] = useState(""); @@ -22,9 +22,8 @@ const Contact = () => { const formData = new FormData(event.target); formData.append("access_key", "b31a0b0f-6a98-4f98-a62b-c6c6b05ae9ee"); - const emailPattern = /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/i; - const validEmailDomains = ["com", "net", "org", "in"]; + const validEmailDomains = ["com", "net", "org", "in"]; const enteredDomain = email.split(".")[1]; if (!emailPattern.test(email)) { @@ -156,7 +155,8 @@ const Contact = () => { onChange={(e) => setEmail(e.target.value)} placeholder="What's your web address?" className={`bg-tertiary py-4 px-6 placeholder:text-secondary text-white rounded-lg outline-none border-none font-medium bg-[#1e1e1e] ${ - emailError ? "border-red-500" : "" }`} + emailError ? "border-red-500" : "" + }`} required /> {emailError && ( @@ -209,8 +209,8 @@ const Contact = () => {