PageSourceSearch

https://elroi.us/assets/ContactPage-CS19Py2E.js

js elroi.us collected 2026-10-08 09:44:56 UTC 13,065 bytes, 4 lines download raw bytes

1import{j as e}from"./animations-JszNqBDT.js";import{b as m}from"./react-vendor-B_OrhaRZ.js";import{u as g,H as b,F as f}from"./index-BgQw-z5o.js";const v=()=>{const{theme:r}=g(),[t,i]=m.useState({fullName:"",email:"",reason:"",subject:"",message:"",acceptTerms:!1}),[n,u]=m.useState(!1),[d,c]=m.useState({type:null,message:""}),o=l=>{const{name:s,value:a}=l.target;i(h=>({...h,[s]:a}))},x=l=>{const{name:s,checked:a}=l.target;i(h=>({...h,[s]:a}))},p=async l=>{l.preventDefault(),u(!0),c({type:null,message:""});try{const s=await fetch("/api/contact",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),a=await s.json().catch(()=>({}));if(!s.ok)throw new Error(a.error||"Failed to send message. Please try again.");c({type:"success",message:a.message||"Your message has been sent successfully!"}),i({fullName:"",email:"",reason:"",subject:"",message:"",acceptTerms:!1})}catch(s){console.error("Submit error:",s),c({type:"error",message:s.message||"Failed to send message. Please try again."})}finally{u(!1)}};return e.jsxs(e.Fragment,{children:[e.jsx(b,{}),e.jsxs("div",{className:`min-h-screen pt-32 pb-20 transition-colors duration-300 ${r==="dark"?"bg-[#0a0a0f]":"bg-gray-50"}`,children:[r==="dark"&&e.jsx("div",{className:"fixed inset-0 pointer-events-none",children:e.jsx("div",{className:"absolute w-full h-full",style:{background:`
2                  radial-gradient(ellipse 80% 60% at 50% 50%, rgba(99, 102, 241, 0.1), transparent),
3                  radial-gradient(ellipse 60% 40% at 20% 80%, rgba(139, 92, 246, 0.08), transparent)
4                `}})}),e.jsxs("div",{className:"container mx-auto px-4 relative z-10",children:[e.jsxs("div",{className:"text-center mb-12",children:[e.jsx("span",{className:`inline-block text-sm font-semibold tracking-wider uppercase mb-4 ${r==="dark"?"text-purple-400":"text-purple-600"}`,children:"Get In Touch"}),e.jsx("h1",{className:`text-4xl md:text-5xl font-bold mb-4 ${r==="dark"?"text-white":"text-gray-900"}`,children:"We'd Love to Hear From You"}),e.jsx("p",{className:`text-lg max-w-2xl mx-auto ${r==="dark"?"text-white/60":"text-gray-600"}`,children:"Have questions about ELROI? We're here to help."})]}),e.jsxs("div",{className:"max-w-5xl mx-auto grid md:grid-cols-5 gap-8",children:[e.jsxs("div",{className:`md:col-span-3 rounded-2xl p-8 ${r==="dark"?"bg-white/5 border border-white/10":"bg-white border border-gray-200 shadow-sm"}`,children:[d.type&&e.jsx("div",{className:`mb-6 p-4 rounded-xl ${d.type==="success"?"bg-emerald-500/20 text-emerald-400 border border-emerald-500/30":"bg-red-500/20 text-red-400 border border-red-500/30"}`,children:d.message}),e.jsxs("form",{onSubmit:p,className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"fullName",className:`block text-sm font-medium mb-2 ${r==="dark"?"text-white/80":"text-gray-700"}`,children:"Full Name"}),e.jsx("input",{type:"text",id:"fullName",name:"fullName",value:t.fullName,onChange:o,placeholder:"Enter your full name",required:!0,className:`w-full px-4 py-3 rounded-xl transition-colors ${r==="dark"?"bg-white/5 border border-white/10 text-white placeholder-white/40 focus:border-purple-500 focus:ring-1 focus:ring-purple-500":"bg-gray-50 border border-gray-200 text-gray-900 placeholder-gray-400 focus:border-purple-500 focus:ring-1 focus:ring-purple-500"}`})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"email",className:`block text-sm font-medium mb-2 ${r==="dark"?"text-white/80":"text-gray-700"}`,children:"Email Address"}),e.jsx("input",{type:"email",id:"email",name:"email",value:t.email,onChange:o,placeholder:"Enter your email address",required:!0,className:`w-full px-4 py-3 rounded-xl transition-colors ${r==="dark"?"bg-white/5 border border-white/10 text-white placeholder-white/40 focus:border-purple-500 focus:ring-1 focus:ring-purple-500":"bg-gray-50 border border-gray-200 text-gray-900 placeholder-gray-400 focus:border-purple-500 focus:ring-1 focus:ring-purple-500"}`})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"reason",className:`block text-sm font-medium mb-2 ${r==="dark"?"text-white/80":"text-gray-700"}`,children:"Reason for Contact"}),e.jsxs("select",{id:"reason",name:"reason",value:t.reason,onChange:o,required:!0,className:`w-full px-4 py-3 rounded-xl transition-colors ${r==="dark"?"bg-white/5 border border-white/10 text-white focus:border-purple-500 focus:ring-1 focus:ring-purple-500":"bg-gray-50 border border-gray-200 text-gray-900 focus:border-purple-500 focus:ring-1 focus:ring-purple-500"}`,children:[e.jsx("option",{value:"",children:"Select a reason"}),e.jsx("option",{value:"general",children:"General Inquiry"}),e.jsx("option",{value:"support",children:"Technical Support"}),e.jsx("option",{value:"feedback",children:"Feedback"}),e.jsx("option",{value:"partnerships",children:"Partnerships"}),e.jsx("option",{value:"other",children:"Other"})]})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"subject",className:`block text-sm font-medium mb-2 ${r==="dark"?"text-white/80":"text-gray-700"}`,children:"Subject"}),e.jsx("input",{type:"text",id:"subject",name:"subject",value:t.subject,onChange:o,placeholder:"Enter the subject of your message",required:!0,className:`w-full px-4 py-3 rounded-xl transition-colors ${r==="dark"?"bg-white/5 border border-white/10 text-white placeholder-white/40 focus:border-purple-500 focus:ring-1 focus:ring-purple-500":"bg-gray-50 border border-gray-200 text-gray-900 placeholder-gray-400 focus:border-purple-500 focus:ring-1 focus:ring-purple-500"}`})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"message",className:`block text-sm font-medium mb-2 ${r==="dark"?"text-white/80":"text-gray-700"}`,children:"Message"}),e.jsx("textarea",{id:"message",name:"message",value:t.message,onChange:o,placeholder:"Type your message here...",rows:5,required:!0,className:`w-full px-4 py-3 rounded-xl transition-colors resize-none ${r==="dark"?"bg-white/5 border border-white/10 text-white placeholder-white/40 focus:border-purple-500 focus:ring-1 focus:ring-purple-500":"bg-gray-50 border border-gray-200 text-gray-900 placeholder-gray-400 focus:border-purple-500 focus:ring-1 focus:ring-purple-500"}`})]}),e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("input",{type:"checkbox",id:"acceptTerms",name:"acceptTerms",checked:t.acceptTerms,onChange:x,required:!0,className:"mt-1 w-4 h-4 rounded border-gray-300 text-purple-600 focus:ring-purple-500"}),e.jsxs("label",{htmlFor:"acceptTerms",className:`text-sm ${r==="dark"?"text-white/60":"text-gray-600"}`,children:["I agree to the"," ",e.jsx("a",{href:"/terms-of-service",className:"text-purple-500 hover:underline",children:"Terms of Service"})," ","and"," ",e.jsx("a",{href:"/privacy-policy",className:"text-purple-500 hover:underline",children:"Privacy Policy"})]})]}),e.jsx("button",{type:"submit",disabled:!t.acceptTerms||n,className:`w-full py-4 rounded-xl font-semibold transition-all ${t.acceptTerms&&
4!n?"bg-gradient-to-r from-indigo-500 via-purple-500 to-pink-500 text-white hover:opacity-90":"bg-gray-400 text-white cursor-not-allowed"}`,children:n?"Sending...":"Send Message"})]})]}),e.jsxs("div",{className:"md:col-span-2 space-y-6",children:[e.jsxs("div",{className:`rounded-2xl p-6 ${r==="dark"?"bg-white/5 border border-white/10":"bg-white border border-gray-200 shadow-sm"}`,children:[e.jsx("h3",{className:`text-lg font-semibold mb-4 ${r==="dark"?"text-white":"text-gray-900"}`,children:"Email Us"}),e.jsx("a",{href:"mailto:[email protected]",className:"text-purple-500 hover:text-purple-400 transition-colors",children:"[email protected]"}),e.jsx("p",{className:`text-sm mt-2 ${r==="dark"?"text-white/50":"text-gray-500"}`,children:"Response time: 24-48 hours"})]}),e.jsxs("div",{className:`rounded-2xl p-6 ${r==="dark"?"bg-white/5 border border-white/10":"bg-white border border-gray-200 shadow-sm"}`,children:[e.jsx("h3",{className:`text-lg font-semibold mb-4 ${r==="dark"?"text-white":"text-gray-900"}`,children:"Follow Us"}),e.jsxs("div",{className:"flex gap-4",children:[e.jsx("a",{href:"https://www.instagram.com/elroi_ai",target:"_blank",rel:"noopener noreferrer",className:`w-10 h-10 rounded-xl flex items-center justify-center transition-colors ${r==="dark"?"bg-white/10 text-white hover:bg-white/20":"bg-gray-100 text-gray-600 hover:bg-gray-200"}`,children:e.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{d:"M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z"})})}),e.jsx("a",{href:"https://www.linkedin.com/company/elroitechnologies",target:"_blank",rel:"noopener noreferrer",className:`w-10 h-10 rounded-xl flex items-center justify-center transition-colors ${r==="dark"?"bg-white/10 text-white hover:bg-white/20":"bg-gray-100 text-gray-600 hover:bg-gray-200"}`,children:e.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{d:"M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z"})})}),e.jsx("a",{href:"https://www.youtube.com/@elroiforbusiness",target:"_blank",rel:"noopener noreferrer",className:`w-10 h-10 rounded-xl flex items-center justify-center transition-colors ${r==="dark"?"bg-white/10 text-white hover:bg-white/20":"bg-gray-100 text-gray-600 hover:bg-gray-200"}`,children:e.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"})})})]})]}),e.jsxs("div",{className:`rounded-2xl p-6 ${r==="dark"?"bg-white/5 border border-white/10":"bg-white border border-gray-200 shadow-sm"}`,children:[e.jsx("h3",{className:`text-lg font-semibold mb-4 ${r==="dark"?"text-white":"text-gray-900"}`,children:"Our Locations"}),e.jsxs("div",{className:`text-sm leading-relaxed space-y-3 ${r==="dark"?"text-white/60":"text-gray-600"}`,children:[e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsxs("svg",{className:`w-4 h-4 mt-0.5 flex-shrink-0 ${r==="dark"?"text-purple-400":"text-purple-600"}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"}),e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M15 11a3 3 0 11-6 0 3 3 0 016 0z"})]}),e.jsx("span",{children:"Michigan"})]}),e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsxs("svg",{className:`w-4 h-4 mt-0.5 flex-shrink-0 ${r==="dark"?"text-purple-400":"text-purple-600"}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"}),e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M15 11a3 3 0 11-6 0 3 3 0 016 0z"})]}),e.jsx("span",{children:"North Carolina"})]}),e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsxs("svg",{className:`w-4 h-4 mt-0.5 flex-shrink-0 ${r==="dark"?"text-purple-400":"text-purple-600"}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"}),e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M15 11a3 3 0 11-6 0 3 3 0 016 0z"})]}),e.jsx("span",{children:"Florida"})]})]})]})]})]})]})]}),e.jsx(f,{})]})};export{v as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.