PageSourceSearch

https://getyouaninterview.com/assets/Contact-UeS2daOH.js

js getyouaninterview.com collected 2026-10-02 01:31:28 UTC 4,487 bytes, 1 lines download raw bytes

1import{j as e}from"./vendor-radix-Djw8bMfa.js";import{r as o}from"./vendor-react-BosAocA3.js";import{a as d,H as x,L as l,I as m,j as u,k as j,l as g,m as p,n as b,T as v,B as f,F as N,s as y}from"./index-CXNxXznd.js";import{m as S}from"./vendor-motion-C9gs001o.js";import{aJ as w,g as C,al as k,ac as T}from"./vendor-icons-CC7K3DCo.js";import"./vendor-supabase-DHET8n-G.js";import"./vendor-charts-C6ZjoPMk.js";import"./vendor-query-Di8qp77c.js";const q=["General question","Feedback","Bug report","Partnership inquiry","Other"];function G(){const{toast:i}=d(),[n,c]=o.useState(!1),[t,r]=o.useState({name:"",email:"",subject:"",message:""}),h=async s=>{if(s.preventDefault(),t.message.length<20){i({title:"Message too short",description:"Please enter at least 20 characters.",variant:"destructive"});return}c(!0);try{const{error:a}=await y.functions.invoke("send-email",{body:{to:"[email protected]",subject:`[Contact] ${t.subject} | from ${t.name}`,html:`<p><strong>From:</strong> ${t.name} (${t.email})</p><p><strong>Subject:</strong> ${t.subject}</p><hr/><p>${t.message.replace(/\n/g,"<br/>")}</p>`}});if(a)throw a;i({title:"Message sent",description:"We'll get back to you within 24 hours."}),r({name:"",email:"",subject:"",message:""})}catch(a){console.error("Contact form error:",a),i({title:"Error sending message",description:"Please try again or email us directly.",variant:"destructive"})}finally{c(!1)}};return e.jsxs("div",{className:"min-h-screen bg-gyai-navy",children:[e.jsx(x,{}),e.jsx("main",{className:"max-w-[900px] mx-auto px-4 py-16 sm:py-24",children:e.jsxs(S.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},children:[e.jsx("h1",{className:"text-[hsl(210,40%,96%)] text-3xl sm:text-4xl font-bold mb-3",children:"Get in touch"}),e.jsx("p",{className:"text-[hsl(215,17%,53%)] mb-10",children:"Questions, feedback, or found a bug? We want to hear it."}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-10",children:[e.jsxs("form",{onSubmit:h,className:"space-y-5",children:[e.jsxs("div",{children:[e.jsx(l,{className:"text-[hsl(210,40%,96%)] text-sm mb-1.5 block",children:"Name"}),e.jsx(m,{required:!0,value:t.name,onChange:s=>r(a=>({...a,name:s.target.value})),className:"bg-[hsl(224,50%,13%)] border-[hsl(224,50%,18%)] text-[hsl(210,40%,96%)]"})]}),e.jsxs("div",{children:[e.jsx(l,{className:"text-[hsl(210,40%,96%)] text-sm mb-1.5 block",children:"Email"}),e.jsx(m,{required:!0,type:"email",value:t.email,onChange:s=>r(a=>({...a,email:s.target.value})),className:"bg-[hsl(224,50%,13%)] border-[hsl(224,50%,18%)] text-[hsl(210,40%,96%)]"})]}),e.jsxs("div",{children:[e.jsx(l,{className:"text-[hsl(210,40%,96%)] text-sm mb-1.5 block",children:"Subject"}),e.jsxs(u,{required:!0,value:t.subject,onValueChange:s=>r(a=>({...a,subject:s})),children:[e.jsx(j,{className:"bg-[hsl(224,50%,13%)] border-[hsl(224,50%,18%)] text-[hsl(210,40%,96%)]",children:e.jsx(g,{placeholder:"Select a subject"})}),e.jsx(p,{children:q.map(s=>e.jsx(b,{value:s,children:s},s))})]})]}),e.jsxs("div",{children:[e.jsx(l,{className:"text-[hsl(210,40%,96%)] text-sm mb-1.5 block",children:"Message"}),e.jsx(v,{required:!0,minLength:20,rows:5,value:t.message,onChange:s=>r(a=>({...a,message:s.target.value})),className:"bg-[hsl(224,50%,13%)] border-[hsl(224,50%,18%)] text-[hsl(210,40%,96%)] resize-none"})]}),e.jsx(f,{type:"submit",disabled:n||!t.subject,className:"w-full",children:n?"Sending…":"Send message"})]}),e.jsxs("div",{className:"space-y-6 md:pt-6",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(w,{className:"h-5 w-5 text-[hsl(215,17%,53%)]"}),e.jsx("a",{href:"tel:7372080220",className:"text-[hsl(210,40%,96%)] hover:text-primary transition-colors",children:"737-208-0220"})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(C,{className:"h-5 w-5 text-[hsl(215,17%,53%)]"}),e.jsx("a",{href:"mailto:[email protected]",className:"text-[hsl(210,40%,96%)] hover:text-primary transition-colors",children:"[email protected]"})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(k,{className:"h-5 w-5 text-[hsl(215,17%,53%)]"}),e.jsx("span",{className:"text-[hsl(210,40%,96%)]",children:"Austin, TX"})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(T,{className:"h-5 w-5 text-[hsl(215,17%,53%)]"}),e.jsx("span",{className:"text-[hsl(210,40%,96%)]",children:"Mon–Fri, 9am–6pm CT"})]})]})]})]})}),e.jsx(N,{})]})}
1export{G 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.