import{r as l,j as e}from"./index-CeSBbkQk.js";import{S as p,A as u}from"./Snackbar-BDD_gL5A.js";import"./IconButton-XqSyRGcm.js";import"./createSimplePaletteValueFilter-bm0fmN_7.js";import"./isFocusVisible-B8k4qzLc.js";import"./Paper-CO4pcNri.js";import"./useTheme-CHgUx8ni.js";const w=()=>{const[t,c]=l.useState({interest:"",email:"",country:"",firstName:"",lastName:"",projectDescription:""}),[i,m]=l.useState(!1),[o,h]=l.useState(""),n=(s,r)=>{r!=="clickaway"&&m(!1)},a=s=>{const{name:r,value:d}=s.target;c(x=>({...x,[r]:d}))};return e.jsxs("div",{id:"contact",className:"bg-gray-100 py-12 px-6 lg:mt-20 mt-10 font-openSan",children:[e.jsx("h1",{className:"text-4xl font-bold text-center text-colorFoot mb-6",children:"Contact Us"}),e.jsx("p",{className:"text-center text-lg text-gray-600 mb-8",children:"Tell us what you want to do!"}),e.jsxs("div",{className:"max-w-3xl mx-auto bg-white shadow-lg rounded-lg p-8",children:[o&&e.jsx("div",{className:"bg-red-500 text-white p-4 mb-4 rounded-md",children:o}),e.jsxs("form",{onSubmit:async s=>{s.preventDefault(),(await fetch("https://formspree.io/f/xbldkjea",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})).ok?alert("Message sent!"):alert("Error submitting the form. Please try again.")},children:[e.jsxs("label",{className:"block mb-4",children:[e.jsx("span",{className:"text-gray-700",children:"I am interested in"}),e.jsx("input",{type:"text",name:"interest",value:t.interest,onChange:a,className:"block w-full mt-2 p-3 border rounded-md",placeholder:"e.g., Web Development, App Design",required:!0})]}),e.jsxs("label",{className:"block mb-4",children:[e.jsx("span",{className:"text-gray-700",children:"Email"}),e.jsx("input",{type:"email",name:"email",value:t.email,onChange:a,className:"block w-full mt-2 p-3 border rounded-md",placeholder:"e.g., example@domain.com",required:!0})]}),e.jsxs("label",{className:"block mb-4",children:[e.jsx("span",{className:"text-gray-700",children:"Country"}),e.jsx("input",{type:"text",name:"country",value:t.country,onChange:a,className:"block w-full mt-2 p-3 border rounded-md",placeholder:"e.g., Nigeria, USA",required:!0})]}),e.jsxs("label",{className:"block mb-4",children:[e.jsx("span",{className:"text-gray-700",children:"First Name"}),e.jsx("input",{type:"text",name:"firstName",value:t.firstName,onChange:a,className:"block w-full mt-2 p-3 border rounded-md",placeholder:"Your first name",required:!0})]}),e.jsxs("label",{className:"block mb-4",children:[e.jsx("span",{className:"text-gray-700",children:"Last Name"}),e.jsx("input",{type:"text",name:"lastName",value:t.lastName,onChange:a,className:"block w-full mt-2 p-3 border rounded-md",placeholder:"Your last name",required:!0})]}),e.jsxs("label",{className:"block mb-6",children:[e.jsx("span",{className:"text-gray-700",children:"Describe your project here"}),e.jsx("textarea",{name:"projectDescription",value:t.projectDescription,onChange:a,className:"block w-full mt-2 p-3 border rounded-md",rows:"4",placeholder:"Provide a brief description of your project...",required:!0})]}),e.jsx("button",{type:"submit",className:"bg-colorBtn text-white py-2 px-6 rounded-md hover:bg-colorBtnHover transition duration-300",children:"Submit"})]})]}),e.jsx(p,{open:i,autoHideDuration:3e3,onClose:n,anchorOrigin:{vertical:"top",horizontal:"center"},children:e.jsx(u,{onClose:n,severity:"success",variant:"filled",sx:{width:"100%"},children:"Form submitted successfully!"})}),e.jsxs("div",{className:"max-w-3xl mx-auto shadow-lg rounded-lg p-8 mt-12",children:[e.jsx("h2",{className:"font-bold text-gray-700 mb-6 text-4xl ",children:"Contact Info"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("p",{className:"text-gray-600",children:[e.jsx("strong",{children:"Address: 228, Oron Road,"}),"Akwa Ibom State"]}),e.jsxs("p",{className:"text-gray-600",children:[e.jsx("strong",{children:"Phone:"})," +234 703 842 4760"]}),e.jsxs("p",{className:"text-gray-600",children:[e.jsx("strong",{children:"Email:"})," techanchor100@gmail.com"]})]})]})]})};export{w as default};
