PageSourceSearch

https://morethanmobility.com/assets/ContactPage-D8uQBiBn.js

js morethanmobility.com collected 2026-10-09 22:03:45 UTC 10,121 bytes, 1 lines download raw bytes

1import{r as l,j as e}from"./react-B3fA1Wqo.js";import{L as g}from"./router-PjoT9YGE.js";import{S as b,H as v,C as m,B as x,I as c,F as N,T as w,y as p,z as C}from"./index-7f5uFSj_.js";import{T as S}from"./textarea-B1fZezhd.js";import{L as o}from"./label-DwzCNcEv.js";import{h as q,M as k,q as P,aq as F,aD as M,aE as D}from"./ui-CMoX4sE7.js";import"./vendor-D0Hz1apT.js";import"./query-d8z89zdn.js";function U(){const[y,d]=l.useState(!1),[n,u]=l.useState(!1),[a,h]=l.useState({name:"",email:"",phone:"",subject:"",message:""});l.useEffect(()=>{document.title="Contact More Than Mobility | Plymouth City Centre";let t=document.querySelector('meta[name="description"]');t||(t=document.createElement("meta"),t.setAttribute("name","description"),document.head.appendChild(t)),t.setAttribute("content","Contact More Than Mobility at 139 Cornwall Street, Plymouth for product advice, showroom visits, delivery questions and aftercare support. Call 01752 673367 or email [email protected].");let s=document.querySelector('link[rel="canonical"]');s||(s=document.createElement("link"),s.setAttribute("rel","canonical"),document.head.appendChild(s)),s.setAttribute("href",window.location.origin+"/contact")},[]);const r=t=>{h(s=>({...s,[t.target.name]:t.target.value}))},f=async t=>{if(t.preventDefault(),n)return;u(!0);const s=typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():`${Date.now()}-${Math.random().toString(36).slice(2)}`,j={name:a.name,email:a.email,phone:a.phone,subject:a.subject,message:a.message};try{const{error:i}=await p.functions.invoke("send-transactional-email",{body:{templateName:"contact-enquiry",recipientEmail:"[email protected]",idempotencyKey:`contact-enquiry-${s}`,templateData:j}});if(i)throw i;await p.functions.invoke("send-transactional-email",{body:{templateName:"contact-confirmation",recipientEmail:a.email,idempotencyKey:`contact-confirm-${s}`,templateData:{name:a.name}}}),d(!0)}catch(i){console.error("Contact form send failed",i),C({title:"Could not send your message",description:"Please try again, or email us directly at [email protected].",variant:"destructive"})}finally{u(!1)}};return e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(b,{title:"Contact More Than Mobility Plymouth | 01752 673367",description:"Visit our Plymouth mobility showroom at 139 Cornwall Street, call 01752 673367 or message us. Free home demos across Plymouth, Devon & Cornwall.",path:"/contact"}),e.jsx(v,{}),e.jsxs("main",{className:"flex-1",children:[e.jsx("section",{className:"hero-gradient text-primary-foreground py-16 md:py-20",children:e.jsxs("div",{className:"container",children:[e.jsx("p",{className:"text-secondary-foreground/90 font-semibold uppercase tracking-widest text-sm mb-3",children:"Plymouth Showroom"}),e.jsx("h1",{className:"font-heading text-3xl md:text-5xl font-bold mb-4 max-w-3xl",children:"Contact More Than Mobility"}),e.jsx("p",{className:"text-lg md:text-xl opacity-90 max-w-3xl",children:"Get in touch for product advice, showroom visits, delivery questions or aftercare support. Our Plymouth City Centre team is here to help."})]})}),e.jsx("section",{className:"py-14 md:py-16",children:e.jsx("div",{className:"container max-w-6xl",children:e.jsxs("div",{className:"grid gap-8 lg:grid-cols-5",children:[e.jsxs("div",{className:"lg:col-span-2 space-y-6",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-primary font-semibold uppercase tracking-widest text-sm mb-3",children:"Get In Touch"}),e.jsx("h2",{className:"font-heading text-2xl font-bold text-foreground mb-4",children:"How to reach us"}),e.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Our friendly team at 139 Cornwall Street is ready to help with product advice, showroom appointments and aftercare enquiries."})]}),e.jsx(m,{className:"border-2 border-primary p-5 transition-all duration-300 hover:border-secondary hover:-translate-y-1",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center shrink-0",children:e.jsx(q,{className:"h-5 w-5 text-primary"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-foreground mb-1",children:"Call us"}
1),e.jsx("a",{href:"tel:01752673367",className:"text-muted-foreground hover:text-primary transition-colors",children:"01752 673367"}),e.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Mon–Fri 9am–5pm, Sat 9am–3pm"})]})]})}),e.jsx(m,{className:"border-2 border-primary p-5 transition-all duration-300 hover:border-secondary hover:-translate-y-1",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center shrink-0",children:e.jsx(k,{className:"h-5 w-5 text-primary"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-foreground mb-1",children:"Visit us"}),e.jsxs("p",{className:"text-muted-foreground",children:["139 Cornwall Street",e.jsx("br",{}),"Plymouth, PL1 1PA"]}),e.jsx(g,{to:"/showrooms",className:"text-sm text-primary hover:text-secondary transition-colors inline-flex items-center gap-1 mt-2",children:"View showroom details →"})]})]})}),e.jsx(m,{className:"border-2 border-primary p-5 transition-all duration-300 hover:border-secondary hover:-translate-y-1",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center shrink-0",children:e.jsx(P,{className:"h-5 w-5 text-primary"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-foreground mb-1",children:"Opening hours"}),e.jsx("p",{className:"text-muted-foreground",children:"Monday – Friday: 9am – 5pm"}),e.jsx("p",{className:"text-muted-foreground",children:"Saturday: 9am – 3pm"}),e.jsx("p",{className:"text-muted-foreground",children:"Sunday: Closed"})]})]})})]}),e.jsx("div",{className:"lg:col-span-3",children:e.jsx(m,{className:"border-2 border-primary p-6 md:p-8",children:y?e.jsxs("div",{className:"text-center py-12",children:[e.jsx("div",{className:"w-16 h-16 rounded-full bg-primary/10 flex items-center justify-center mx-auto mb-4",children:e.jsx(F,{className:"h-8 w-8 text-primary"})}),e.jsx("h2",{className:"font-heading text-2xl font-bold text-foreground mb-3",children:"Thank you for getting in touch"}),e.jsxs("p",{className:"text-muted-foreground mb-6 max-w-md mx-auto",children:["Your message has been sent to our Plymouth team. We've also emailed you a confirmation. If you don't hear back within one working day, please call us on 01752 673367 or email"," ",e.jsx("a",{href:"mailto:[email protected]",className:"text-primary underline hover:text-secondary",children:"[email protected]"}),"."]}),e.jsx(x,{type:"button",variant:"outline",onClick:()=>{d(!1),h({name:"",email:"",phone:"",subject:"",message:""})},className:"border-2 border-primary",children:"Send another message"})]}):e.jsxs(e.Fragment,{children:[e.jsx("h2",{className:"font-heading text-2xl font-bold text-foreground mb-2",children:"Send us a message"}),e.jsx("p",{className:"text-muted-foreground mb-6",children:"Fill in the form below and we will get back to you as soon as we can."}),e.jsxs("form",{onSubmit:f,className:"space-y-5",children:[e.jsxs("div",{className:"grid gap-5 sm:grid-cols-2",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsxs(o,{htmlFor:"name",children:["Full name ",e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsx(c,{id:"name",name:"name",type:"text",placeholder:"Your full name",required:!0,value:a.name,onChange:r})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs(o,{htmlFor:"email",children:["Email address ",e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsx(c,{id:"email",name:"email",type:"email",placeholder:"[email protected]",required:!0,value:a.email,onChange:r})]})]}),e.jsxs("div",{className:"grid gap-5 sm:grid-cols-2",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(o,{htmlFor:"phone",children:"Phone number"}),e.jsx(c,{id:"phone",name:"phone",type:"tel",placeholder:"01752 000000",value:a.phone,onChange:r})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs(o,{htmlFor:"subject",children:["Subject ",e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsxs("select",{id:"subject",name:"subject",required:!0,value:a.subject,onChange:r,className:"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
1ing-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",children:[e.jsx("option",{value:"",children:"Select a subject"}),e.jsx("option",{value:"Product enquiry",children:"Product enquiry"}),e.jsx("option",{value:"Showroom visit",children:"Showroom visit"}),e.jsx("option",{value:"Home demonstration",children:"Home demonstration"}),e.jsx("option",{value:"Delivery question",children:"Delivery question"}),e.jsx("option",{value:"Aftercare / warranty",children:"Aftercare / warranty"}),e.jsx("option",{value:"Rental enquiry",children:"Rental enquiry"}),e.jsx("option",{value:"Insurance question",children:"Insurance question"}),e.jsx("option",{value:"General enquiry",children:"General enquiry"})]})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs(o,{htmlFor:"message",children:["Your message ",e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsx(S,{id:"message",name:"message",placeholder:"Tell us how we can help you...",required:!0,rows:5,value:a.message,onChange:r})]}),e.jsxs(x,{type:"submit",disabled:n,className:"w-full sm:w-auto gap-2",children:[n?e.jsx(M,{className:"h-4 w-4 animate-spin"}):e.jsx(D,{className:"h-4 w-4"}),n?"Sending...":"Send message"]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"By submitting this form, your message will be sent directly to our Plymouth team at [email protected]."})]})]})})})]})})})]}),e.jsx(N,{}),e.jsx(w,{})]})}export{U 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.