PageSourceSearch

https://colivingrevolution.club/assets/Contact-9UkaBOqj.js

js colivingrevolution.club collected 2026-10-09 22:01:28 UTC 7,238 bytes, 1 lines download raw bytes

1import{e as f,r as u,j as e,g as v,I as x,B as N,S as y,s as w}from"./index-CK3vutSl.js";import{S}from"./SEOHead-CON3zavc.js";import{T as C}from"./textarea-CymhbYJ8.js";import{B as k}from"./badge-DSpRzzed.js";import{N as M}from"./Navbar-BUpDNnzb.js";import{F as E}from"./Footer-FFVJjLyw.js";import{M as F}from"./message-square-bZ_BbvsG.js";import{M as R}from"./map-pin-BOiT9jNc.js";import{o as T,s as l}from"./types-CkIM-bQt.js";import"./useIsAdmin-BuXYVmKR.js";import"./useProfile-B5IlLGJw.js";import"./avatar-C3uy22Nn.js";import"./index-BsnkaMDn.js";import"./Combination-CMXmbd7n.js";import"./index-0mbE7Hqp.js";import"./chevron-right-CWRhAgdX.js";import"./settings-CZ-FKz03.js";import"./log-out-BwoLdbKR.js";import"./user-COEoZknB.js";import"./house-DvWMWEH7.js";import"./users-yySNN4BJ.js";import"./plus-D178_5fr.js";import"./calendar-days-Bm2AhvK-.js";import"./sparkles-ubwtpnfR.js";import"./heart-CV_CSns9.js";import"./star-DA5biP6Q.js";import"./zap-BjYdfLPn.js";import"./building-2-tZ3PgJs7.js";import"./external-link-Iw7g49f4.js";const q=T({name:l().trim().min(1,"Name is required").max(100,"Name must be less than 100 characters"),email:l().trim().email("Invalid email address").max(255,"Email must be less than 255 characters"),subject:l().trim().min(1,"Subject is required").max(200,"Subject must be less than 200 characters"),message:l().trim().min(1,"Message is required").max(2e3,"Message must be less than 2000 characters")}),le=()=>{const{toast:h}=f(),[p,i]=u.useState(!1),[a,g]=u.useState({name:"",email:"",subject:"",message:""}),[t,m]=u.useState({}),n=c=>{const{name:s,value:r}=c.target;g(o=>({...o,[s]:r})),t[s]&&m(o=>({...o,[s]:void 0}))},j=async c=>{c.preventDefault(),i(!0),m({});const s=q.safeParse(a);if(!s.success){const b={};s.error.errors.forEach(d=>{d.path[0]&&(b[d.path[0]]=d.message)}),m(b),i(!1);return}const{data:r,error:o}=await w.functions.invoke("contact-submit",{body:{...s.data,source:"contact"}});if(o||r!=null&&r.error){h({title:"Message could not be sent",description:"Please try again or email us directly at [email protected].",variant:"destructive"}),i(!1);return}h({title:"Message sent!",description:"We'll get back to you as soon as possible."}),g({name:"",email:"",subject:"",message:""}),i(!1)};return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(S,{title:"Contact Coliving Revolution",description:"Get in touch with Coliving Revolution. Questions about events, investment, or community? We're here to help.",jsonLd:{"@context":"https://schema.org","@type":"ContactPage",name:"Contact Coliving Revolution",url:"https://colivingrevolution.lovable.app/contact",mainEntity:{"@type":"Organization",name:"Coliving Revolution",email:"[email protected]"}}}),e.jsx(M,{}),e.jsx("section",{className:"pt-32 pb-16 px-4 bg-gradient-to-b from-card to-background",children:e.jsxs("div",{className:"container mx-auto text-center",children:[e.jsx(k,{className:"mb-4 bg-primary/20 text-primary border-primary/30",children:"Get in Touch"}),e.jsxs("h1",{className:"font-heading text-4xl md:text-6xl font-bold text-foreground mb-6",children:["Contact ",e.jsx("span",{className:"gradient-text",children:"Us"})]}),e.jsx("p",{className:"text-lg md:text-xl text-muted-foreground max-w-2xl mx-auto",children:"Questions about Club Membership, the Montenegro Founder Round, or how the network works? We'd love to hear from you."})]})}),e.jsx("section",{className:"py-16 px-4",children:e.jsx("div",{className:"container mx-auto",children:e.jsxs("div",{className:"grid lg:grid-cols-2 gap-12",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"font-heading text-2xl md:text-3xl font-bold text-foreground mb-6",children:"Let's Start a Conversation"}),e.jsx("p",{className:"text-muted-foreground mb-8",children:"Whether you want to reserve a Club Membership, ask about the Montenegro Founder Round, or simply understand how the network works — reach out and we'll reply personally."}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl gradient-primary flex items-center justify-center flex-shrink-0",children:e.jsx(v,{className:"w-6 h-6 text-primary-foreground"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-heading font-bold text-foreground mb-1",children:"Email"}),e.jsx("a",{href:"mailto:[email protected]",className:"text-muted-foreground hover:text-primary transition-colors",children:"[email protected]"})]})]}),e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl gradient-primary flex items-center justify-center flex-shrink-0",children:e.jsx(F,{className:"w-6 h-6 text-primary-foreground"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-heading font-bold text-foreground mb-1",children:"Community"}),e.jsx("p",{className:"text-muted-foreground",children:"Join our WhatsApp community for updates"})]})]}),e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl gradient-primary flex items-center justify-center flex-shrink-0",children:e.jsx(R,{className:"w-6 h-6 text-primary-foreground"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-heading font-bold text-foreground mb-1",children:"Locations"}),e.jsx("p",{className:"text-muted-foreground",children:"Montenegro • Switzerland"})]})]})]})]}),e.jsx("div",{className:"glass rounded-2xl p-8",children:e.jsxs("form",{onSubmit:j,className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"name",className:"block text-sm font-medium text-foreground mb-2",children:"Your Name"}),e.jsx(x,{id:"name",name:"name",value:a.name,onChange:n,placeholder:"John Doe",className:t.name?"border-destructive":""}),t.name&&e.jsx("p",{className:"text-sm text-destructive mt-1",children:t.name})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"email",className:"block text-sm font-medium text-foreground mb-2",children:"Email Address"}),e.jsx(x,{id:"email",name:"email",type:"email",value:a.email,onChange:n,placeholder:"[email protected]",className:t.email?"border-destructive":""}),t.email&&e.jsx("p",{className:"text-sm text-destructive mt-1",children:t.email})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"subject",className:"block text-sm font-medium text-foreground mb-2",children:"Subject"}),e.jsx(x,{id:"subject",name:"subject",value:a.subject,onChange:n,placeholder:"How can we help?",className:t.
1subject?"border-destructive":""}),t.subject&&e.jsx("p",{className:"text-sm text-destructive mt-1",children:t.subject})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"message",className:"block text-sm font-medium text-foreground mb-2",children:"Message"}),e.jsx(C,{id:"message",name:"message",value:a.message,onChange:n,placeholder:"Tell us about your project or question...",rows:5,className:t.message?"border-destructive":""}),t.message&&e.jsx("p",{className:"text-sm text-destructive mt-1",children:t.message})]}),e.jsxs(N,{type:"submit",className:"w-full gradient-primary text-primary-foreground",disabled:p,children:[p?"Sending...":"Send Message",e.jsx(y,{className:"w-4 h-4 ml-2"})]})]})})]})})}),e.jsx(E,{})]})};export{le 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.