PageSourceSearch

https://jhasolutions.com/assets/ContactUs-DjQrv1zK.js

js jhasolutions.com collected 2026-09-24 14:46:48 UTC 10,571 bytes, 2 lines download raw bytes

1import{r as y,j as e}from"./query-vendor-Dp9tfhuh.js";import{s as h,u as v,x as w,h as i,i as p,k as b,m as o,I as S,l as k,L as d,B as u}from"./index-CgOeqv80.js";import{I as x}from"./input-go5takyh.js";import{T as C}from"./textarea-BSB7eVDL.js";import{S as T}from"./SEOHead-BssTrujA.js";import{a as E}from"./react-vendor-DfslLuwi.js";import{H as M}from"./heart-Dv9Odr8c.js";import{C as j}from"./clock-BmPJ466V.js";import{M as F}from"./map-pin-B63H-upO.js";import{Z as I}from"./zap-BKGpOGd1.js";import{M as H}from"./mail-CObWevXE.js";import"./ui-vendor-DW4RoVmg.js";import"./chart-vendor-BoynbIzZ.js";const W="[email protected]";function g(){return typeof window<"u"?window.location.href:void 0}function A(s,r,t){const a=s.company||s.subject||"Not provided",n=s.phone||"Not provided",c=s.source||"contact_form";return["New contact submission","",`Name: ${s.name}`,`Email: ${s.email}`,`Phone: ${n}`,`Company / Subject: ${a}`,`Source: ${c}`,`Page: ${t||"Not provided"}`,`Submission ID: ${r}`,"","Message:",s.message].join(`
2`)}async function P(s){const r=g(),{data:t,error:a}=await h.from("contact_submissions").insert({name:s.name,email:s.email,phone:s.phone||null,company:s.company||s.subject||null,message:s.message,status:"new"}).select("id").single();if(a||!t)throw a||new Error("Could not save contact submission");const n=`New JHA contact: ${s.subject||s.company||s.name}`,c=A(s,t.id,r),{error:l}=await h.functions.invoke("send-platform-email",{body:{to:W,subject:n,body:c,from:s.email,metadata:{source:s.source||"contact_form",pageUrl:r,contact_submission_id:t.id,fallback:!0}}});if(l)throw l;return{success:!0,submissionId:t.id,emailSent:!0,fallback:!0}}async function O(s){const r=g(),{data:t,error:a}=await h.functions.invoke("submit-contact",{body:{...s,pageUrl:r}});return a?(console.warn("submit-contact unavailable, falling back to the local data API",a),P(s)):t}function K(){const s=E(),{t:r}=v(),{toast:t}=w(),[a,n]=y.useState(!1),c=async l=>{l.preventDefault(),n(!0);const m=new FormData(l.currentTarget),f={name:m.get("name"),email:m.get("email"),phone:m.get("phone")||null,subject:m.get("subject"),message:m.get("message"),source:"contact_page"};try{await O(f),t({title:"Message Sent!",description:"We'll get back to you within 24 hours."}),l.target.reset()}catch(N){console.error("Error submitting contact form:",N),t({title:"Error",description:"Failed to send message. Please try again.",variant:"destructive"})}finally{n(!1)}};return e.jsxs(e.Fragment,{children:[e.jsx(T,{title:"Contact Us - JHA Solutions | Real Estate Management Support",description:"Get in touch with JHA Solutions. We're here to help with fast, affordable support for all your property management needs.",canonical:"https://jhasolutions.com/contact"}),e.jsxs("div",{className:"min-h-screen bg-gradient-to-b from-background to-muted/20",children:[e.jsx("div",{className:"bg-primary/5 border-b",children:e.jsx("div",{className:"container mx-auto px-4 py-6",children:e.jsx("button",{onClick:()=>s("/"),className:"text-primary hover:text-primary/80 transition-colors font-semibold flex items-center gap-2",children:"← Back to Home"})})}),e.jsx("section",{className:"py-20 text-center",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsx("h1",{className:"text-5xl sm:text-6xl md:text-7xl font-black tracking-tight mb-6 font-inter",children:e.jsx("span",{className:"bg-gradient-to-r from-primary via-secondary to-accent bg-clip-text text-transparent",children:"Get in Touch"})}),e.jsx("p",{className:"text-xl sm:text-2xl text-muted-foreground max-w-3xl mx-auto leading-relaxed",children:"Have questions? We're here to help you succeed."})]})}),e.jsx("section",{className:"py-16",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs(i,{className:"max-w-5xl mx-auto border-2 shadow-luxury",children:[e.jsxs(p,{className:"text-center",children:[e.jsxs("div",{className:"inline-flex items-center justify-center gap-2 mb-4 px-6 py-3 rounded-full bg-primary/10 border border-primary/20 mx-auto",children:[e.jsx(M,{className:"h-5 w-5 text-primary"}),e.jsx("span",{className:"text-lg font-medium text-primary",children:"Our Story"})]}),e.jsx(b,{className:"text-4xl sm:text-5xl font-bold mb-4",children:"Built for Everyone Tired of the Old Way"})]}),e.jsxs(o,{className:"space-y-6 text-lg leading-relaxed",children:[e.jsx("p",{className:"text-muted-foreground",children:"We started JHA Solutions because we were frustrated. Frustrated with real estate management platforms that promised the world but delivered slow, expensive support when you needed help the most."}),e.jsx("p",{className:"text-muted-foreground",children:"We saw property managers and landlords struggling with:"}),e.jsxs("div",{className:"grid md:grid-cols-3 gap-6 my-8",children:[e.jsx(i,{className:"border-destructive/20 bg-destructive/5",children:e.jsxs(o,{className:"pt-6",children:[e.jsx(j,{className:"h-12 w-12 text-destructive mb-3"}),e.jsx("h3",{className:"font-bold text-xl mb-2",children:"Slow Support"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Waiting days for responses to urgent issues that need immediate attention."})]})}),e.jsx(i,{className:"border-destructive/20 bg-destructive/5",children:e.jsxs(o,{className:"pt-6",children:[e.jsx(F,{className:"h-12 w-12 text-destructive mb-3"}),e.jsx("h3",{className:"font-bold text-xl mb-2",children:"Expensive Solutions"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Paying premium prices for basic features and mediocre service."})]})}),e.jsx(i,{className:"border-destructive/20 bg-destructive/5",children:e.jsxs(o,{className:"pt-6",children:[e.jsx(S,{className:"h-12 w-12 text-destructive mb-3"}),e.jsx("h3",{className:"font-bold text-xl mb-2",children:"Complex Interfaces"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Wrestling with overcomplicated systems that make simple tasks difficult."})]})})]}),e.jsxs("p",{className:"text-muted-foreground",children:["So we built JHA Solutions differently. We're a company that puts ",e.jsx("span",{className:"font-bold text-primary",children:"speed, affordability, and simplicity"})," first. When you reach out to us, you get real people who care about solving your problems—not automated responses or endless ticket queues."]}),e.jsx("div",{className:"bg-primary/5 border border-primary/20 rounded-lg p-6 my-8",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx(I,{className:"h-8 w-8 text-primary shrink-0 mt-1"}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-xl mb-2",children:"Our Promise"}),e.jsx("p",{className:"text-muted-foreground",children:"Fast, friendly support that doesn't break the bank. We're here for landlords, property managers, and real estate professionals who deserve better. Because managing properties should be simple, not stressful."})]})]})}),e.jsx("p",{className:"text-center text-xl font-semibold text-primary mt-8",children:"Welcome to a better way. Welcome to JHA Solutions."})]})]})})}),e.jsx("section",{className:"py-16",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 max-w-6xl mx-auto",children:[e.jsxs("div",{className:"space-y-6",children:[e.jsx("h2",{className:"text-4xl font-bold mb-8",children:"Contact Information"}),e.jsx(i,{children:e.jsx(o,{className:"pt-6",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"p-3 rounded-lg bg-primary/10",children:e.jsx(H,{className:"h-6 w-6 text-primary"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-lg mb-1",children:"Email"}),e.jsx("a",{href:"mailto:[email protected]",className:"text-primary hover:underline text-lg",children:"[email protected]"}),e.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"We typically respond within 24 hours"})]})]})})}),e.jsx(i,{children:e.jsx(o,{className:"pt-6",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"p-3 rounded-lg bg-accent/10",children:e.jsx(j,{className:"h-6 w-6 text-accent"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-lg mb-1",children:"Business Hours"}),e.jsxs("p",{className:"text-muted-foreground",children:["Sunday - Thursday: 9:00 AM - 6:00 PM (IST)",e.jsx("br",{}
2),"Friday: 9:00 AM - 2:00 PM (IST)",e.jsx("br",{}),"Saturday: Closed"]})]})]})})})]}),e.jsxs(i,{children:[e.jsxs(p,{children:[e.jsx(b,{className:"text-3xl",children:"Send us a Message"}),e.jsx(k,{className:"text-base",children:"Fill out the form below and we'll get back to you as soon as possible."})]}),e.jsx(o,{children:e.jsxs("form",{onSubmit:c,className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx(d,{htmlFor:"name",children:"Name *"}),e.jsx(x,{id:"name",name:"name",required:!0,placeholder:"Your full name",className:"mt-1"})]}),e.jsxs("div",{children:[e.jsx(d,{htmlFor:"email",children:"Email *"}),e.jsx(x,{id:"email",name:"email",type:"email",required:!0,placeholder:"[email protected]",className:"mt-1"})]}),e.jsxs("div",{children:[e.jsx(d,{htmlFor:"phone",children:"Phone"}),e.jsx(x,{id:"phone",name:"phone",type:"tel",placeholder:"+1 (555) 000-0000",className:"mt-1"})]}),e.jsxs("div",{children:[e.jsx(d,{htmlFor:"subject",children:"Subject *"}),e.jsx(x,{id:"subject",name:"subject",required:!0,placeholder:"How can we help?",className:"mt-1"})]}),e.jsxs("div",{children:[e.jsx(d,{htmlFor:"message",children:"Message *"}),e.jsx(C,{id:"message",name:"message",required:!0,rows:6,placeholder:"Tell us more about your inquiry...",className:"mt-1"})]}),e.jsx(u,{type:"submit",className:"w-full",size:"lg",disabled:a,children:a?"Sending...":"Send Message"})]})})]})]})})}),e.jsx("section",{className:"py-20 bg-gradient-to-r from-primary via-secondary to-accent",children:e.jsxs("div",{className:"container mx-auto px-4 text-center text-white",children:[e.jsx("h2",{className:"text-4xl sm:text-5xl font-bold mb-6",children:"Ready to Get Started?"}),e.jsx("p",{className:"text-xl sm:text-2xl mb-8 max-w-2xl mx-auto opacity-90",children:"Join hundreds of property managers who've already made the switch."}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[e.jsx(u,{size:"lg",variant:"secondary",onClick:()=>s("/#pricing"),className:"text-lg px-8",children:"Start Free Trial"}),e.jsx(u,{size:"lg",variant:"outline",onClick:()=>s("/"),className:"text-lg px-8 bg-white/10 backdrop-blur-sm hover:bg-white/20 text-white border-white/30",children:"Learn More"})]})]})})]})]})}export{K 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.