PageSourceSearch

https://cozy-chapter.netlify.app/assets/contact-D2Re5bjN.js

js cozy-chapter.netlify.app collected 2026-10-03 10:37:15 UTC 3,557 bytes, 1 lines download raw bytes

1import{N as x,O as g,r as a,j as e}from"./main-Ddr2rSaQ.js";import{F as u}from"./Footer-CjbTY36B.js";const b=x({method:"POST"}).handler(g("b65f73bebe07cc3b4982b223b6adfd7320240b7a445a0115c21585ef71ce7bf1"));function f(){const[s,r]=a.useState(!1),[n,d]=a.useState(!1),[l,o]=a.useState(null),m=async i=>{i.preventDefault(),r(!0),o(null);const t=new FormData(i.currentTarget);try{await b({data:{email:String(t.get("email")),message:String(t.get("message")),company:t.get("company")?String(t.get("company")):null}}),d(!0)}catch(c){console.error("Error sending message"),o(c instanceof Error?c.message:"something went wrong")}finally{r(!1)}};return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"min-h-screen bg-gradient-to-b from-slate-950 via-slate-900 to-slate-950 text-white",children:e.jsxs("section",{className:"relative min-h-[85dvh] flex items-center justify-center overflow-hidden",children:[e.jsxs("div",{className:"absolute inset-0",children:[e.jsx("img",{src:"/homedemoupdate.png",alt:"","aria-hidden":"true",className:"w-full h-full object-cover opacity-60"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-slate-950/40 via-slate-900/60 to-slate-950"})]}),e.jsx("div",{className:"absolute inset-0 backdrop-saturate-150 pointer-events-none"}),e.jsxs("div",{className:"relative z-[10] max-w-4xl mx-auto px-6 text-center",children:[e.jsxs("h1",{className:"text-7xl md:text-8xl font-bold tracking-tight",children:[e.jsx("span",{className:"text-slate-200",children:"Contact Cozy"}),e.jsx("br",{}),e.jsx("span",{className:"bg-gradient-to-r from-cyan-300 via-blue-400 to-cyan-500 bg-clip-text text-transparent",children:"Chapter"})]}),!n&&e.jsx(e.Fragment,{children:e.jsxs("div",{className:"bg-slate-900/80 m-5 p-5 rounded-lg",children:[e.jsx("p",{className:"text-xl mt-4 text-slate-300 font-light max-w-2xl mx-auto mb-2 leading-relaxed",children:"Find a bug, have feedback, feature requests or just want to say hi?"}),e.jsx("p",{className:"text-l mt-4 text-slate-300 font-light max-w-2xl mx-auto mb-4 leading-relaxed",children:"Reach out 👋"}),e.jsxs("form",{onSubmit:m,children:[l&&e.jsx("div",{className:"bg-red-900/50 border border-red-700 text-red-200 px-4 py-3 rounded-lg mb-6",children:l}),e.jsxs("div",{className:"mb-4",children:[e.jsx("label",{htmlFor:"email",className:"block text-gray-300 text-sm font-medium mb-2",children:"Email"}),e.jsx("input",{type:"email",placeholder:"[email protected]",name:"email",required:!0,className:"w-full px-4 py-3 bg-gray-800 border border-ray-700 rounded-lg text-white placeholder-gray-500 focus:ring-2 focus:ring-cyan-600 focus:border-transparent transition-all"}),e.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":"true",className:"absolute left-[-999px] w-px h-px overflow-hidden"}),e.jsx("label",{htmlFor:"message",className:"block text-gray-300 mt-3",children:"Message"}),e.jsx("textarea",{name:"message",placeholder:"message to cozy chapter",className:"w-full px-4 py-3 bg-gray-800 border border-ray-700 rounded-lg text-white placeholder-gray-500 focus:ring-2 focus:ring-cyan-600 focus:border-transparent transition-all"})]}),e.jsx("button",{type:"submit",disabled:s,className:"cursor-pointer w-75 bg-cyan-700 hover:bg-cyan-600 text-white font-medium py-3 rounded-lg transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:s?"Sending...":"Send"})]})]})}),n&&e.jsx("p",{className:"mt-4 text-center text-sm text-emerald-400",children:"Thank you, your message is on it's way 🚀"})]})]})}),e.jsx(u,{})]})}export{f as component};

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.