PageSourceSearch

https://europeisti.eu/assets/Contatti-wrW--JcX.js

js europeisti.eu collected 2026-10-07 04:03:26 UTC 7,937 bytes, 1 lines download raw bytes

1import{r as a,j as e,m as n,M as h,C as g,b as j}from"./index-CixH2rCb.js";import{I as d}from"./input-BDmvKBVI.js";import{T as y}from"./textarea-Dep4C-WY.js";import{B as u}from"./button-CsGIYR1M.js";import{M as N}from"./map-pin-AUnKFU4b.js";import{S as v}from"./send-DOB0I0WX.js";import{I as w,F as k,T as I}from"./twitter-B5fLNSoA.js";function M(){const[t,s]=a.useState({name:"",email:"",subject:"",message:""}),[l,c]=a.useState(!1),[b,m]=a.useState(!1),[x,p]=a.useState("");a.useEffect(()=>{const i=new URLSearchParams(window.location.search).get("subject");i&&s(o=>({...o,subject:i}))},[]);const f=async r=>{var o;r.preventDefault(),p(""),c(!0);const i=await j.functions.invoke("sendContactEmail",t);c(!1),(o=i.data)!=null&&o.error?p("Errore durante l'invio. Riprova o scrivici direttamente a [email protected]."):(m(!0),s({name:"",email:"",subject:"",message:""}))};return e.jsxs("div",{children:[e.jsx("section",{className:"pt-32 pb-20 bg-primary text-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-6 text-center",children:e.jsxs(n.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8},children:[e.jsx("p",{className:"text-secondary text-[11px] tracking-[0.35em] font-body font-semibold mb-4",children:"SCRIVICI"}),e.jsx("h1",{className:"font-heading text-4xl sm:text-5xl md:text-6xl tracking-wide",children:"Contatti"}),e.jsx("div",{className:"w-16 h-px bg-secondary mx-auto mt-6"})]})})}),e.jsx("section",{className:"py-20 bg-background",children:e.jsx("div",{className:"max-w-5xl mx-auto px-6",children:e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-5 gap-16",children:[e.jsx("div",{className:"lg:col-span-2",children:e.jsxs(n.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[e.jsx("h2",{className:"font-heading text-2xl text-foreground mb-6",children:"Entra in contatto"}),e.jsx("p",{className:"text-muted-foreground font-body text-sm leading-relaxed mb-10",children:"Hai domande, proposte o vuoi unirti a Europeisti.eu? Scrivici e ti risponderemo il prima possibile."}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-primary/5 flex items-center justify-center flex-shrink-0",children:e.jsx(h,{className:"w-4 h-4 text-primary"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-[11px] tracking-[0.2em] font-body font-semibold text-foreground mb-1",children:"EMAIL"}),e.jsx("p",{className:"text-muted-foreground font-body text-sm",children:"[email protected]"})]})]}),e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-primary/5 flex items-center justify-center flex-shrink-0",children:e.jsx(N,{className:"w-4 h-4 text-primary"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-[11px] tracking-[0.2em] font-body font-semibold text-foreground mb-1",children:"SEDE"}),e.jsx("p",{className:"text-muted-foreground font-body text-sm",children:"Via Gregoriana 12, 00187 Roma, Italia"})]})]})]})]})}),e.jsx("div",{className:"lg:col-span-3",children:e.jsx(n.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.1},children:b?e.jsxs("div",{className:"text-center py-16",children:[e.jsx("div",{className:"w-16 h-16 mx-auto rounded-full bg-primary/5 flex items-center justify-center mb-6",children:e.jsx(g,{className:"w-8 h-8 text-primary"})}),e.jsx("h3",{className:"font-heading text-2xl text-foreground mb-3",children:"Messaggio inviato"}),e.jsx("p",{className:"text-muted-foreground font-body text-sm",children:"Grazie per averci contattato. Ti risponderemo al più presto."}),e.jsx(u,{onClick:()=>m(!1),variant:"outline",className:"mt-6 text-[11px] tracking-[0.15em] font-body",children:"INVIA UN ALTRO MESSAGGIO"})]}):e.jsxs("form",{onSubmit:f,className:"space-y-6",children:[e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-[11px] tracking-[0.15em] font-body font-semibold text-foreground mb-2 block",children:"NOME *"}),e.jsx(d,{value:t.name,onChange:r=>s({...t,name:r.target.value}),required:!0,className:"font-body border-border focus:border-primary rounded-sm",placeholder:"Il tuo nome"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[11px] tracking-[0.15em] font-body font-semibold text-foreground mb-2 block",children:"EMAIL *"}),e.jsx(d,{type:"email",value:t.email,onChange:r=>s({...t,email:r.target.value}),required:!0,className:"font-body border-border focus:border-primary rounded-sm",placeholder:"La tua email"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[11px] tracking-[0.15em] font-body font-semibold text-foreground mb-2 block",children:"OGGETTO"}),e.jsx(d,{value:t.subject,onChange:r=>s({...t,subject:r.target.value}),className:"font-body border-border focus:border-primary rounded-sm",placeholder:"Oggetto del messaggio"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[11px] tracking-[0.15em] font-body font-semibold text-foreground mb-2 block",children:"MESSAGGIO *"}),e.jsx(y,{value:t.message,onChange:r=>s({...t,message:r.target.value}),required:!0,rows:6,className:"font-body border-border focus:border-primary rounded-sm resize-none",placeholder:"Scrivi il tuo messaggio..."})]}),x&&e.jsx("p",{className:"text-destructive text-xs font-body",children:x}),e.jsx(u,{type:"submit",disabled:l,className:"bg-primary hover:bg-primary/90 text-primary-foreground text-[11px] tracking-[0.2em] font-body font-semibold px-8 py-3 rounded-sm",children:l?e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-4 h-4 border-2 border-white/30 border-t-white rounded-full animate-spin"}),"INVIO IN CORSO..."]}):e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx(v,{className:"w-3.5 h-3.5"}),"INVIA MESSAGGIO"]})})]})})})]})})}),e.jsx("section",{className:"py-16 bg-muted",children:e.jsx("div",{className:"max-w-3xl mx-auto px-6 text-center",children:e.jsxs(n.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8},children:[e.jsx("p",{className:"text-secondary text-[11px] tracking-[0.35em] font-body font-semibold mb-4",children:"RESTA AGGIORNATO"}),e.jsx("h2",{className:"font-heading text-3xl sm:text-4xl text-foreground mb-4",children:"Seguici sui social"}),e.jsx("div",{className:"w-16 h-px bg-secondary mx-auto mb-10"}),e.jsx("div",{className:"mb-10",children:e.jsx("img",{src:"https://media.base44.com/images/public/69bf0d311ba3f8de24539a4e/c1bc68694_fck_ptn.jpg",alt:"FCK PTN FCK TRMP - Europeisti.eu sticker",className:"w-48 mx-auto rounded-sm shadow-md"})}),e.jsxs("div",{className:"flex flex-wrap justify-center gap-4",children:[e.jsxs("a",{href:"https://www.instagram.com/europeisti.eu",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 border border-border bg-card px-6 py-3 rounded-sm text-[11px] tracking-[0.2em] font-body font-semibold text-foreground hover:border-primary hover:text-primary transition-all",children:[e.jsx(w,{className:"w-5 h-5"}),"INSTAGRAM"]}),e.jsxs("a",{href:"https://www.facebook.com/share/1GXhkgAdw8/",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 border border-border bg-card px-6 py-3 rounded-sm text-[11px] tracking-[0.2em] font-body font-semibold text-foreground hover:border-primary hover:text-primary transition-all",children:[e.jsx(k,{className:"w-5 h-5"}),"FACEBOOK"]}),e.jsxs("a",{href:"https://x.com/europeisti_eu",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 border border-border bg-card px-6 py-3 rounded-sm text-[11px] tracking-[0.2em] font-body font-semibold text-foreground hover:border-primary hover:text-primary transition-all",children:[e.jsx(I,{className:"w-5 h-5"}),"X / TWITTER"]})]})]})})})]})}export{M 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.