PageSourceSearch

https://foundafrica.tech/assets/contact-Bz17E3as.js

js foundafrica.tech collected 2026-10-09 22:02:25 UTC 4,823 bytes, 1 lines download raw bytes

1import{r as e,t}from"./jsx-runtime-DGeXAQPT.js";import{t as n}from"./react-vt4WmSOl.js";import{t as r}from"./useServerFn-C7j6Xz84.js";import{n as i}from"./index-Dc81CVBA.js";var a=e(n()),o=t();function s(){let e=r(i),[t,n]=(0,a.useState)(!1),[s,c]=(0,a.useState)(!1),[l,u]=(0,a.useState)(null);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(`section`,{className:`container-page pt-16 pb-12 md:pt-24`,children:[(0,o.jsx)(`p`,{className:`eyebrow`,children:`Contact`}),(0,o.jsxs)(`h1`,{className:`display-xl mt-5 max-w-3xl`,children:[`Let's build the next `,(0,o.jsx)(`span`,{className:`italic text-clay`,children:`digital corridor`}),` together.`]}),(0,o.jsx)(`p`,{className:`mt-6 max-w-2xl text-lg text-muted-foreground`,children:`For partnerships, sponsorships, media or general enquiries — our team replies within two business days.`})]}),(0,o.jsxs)(`section`,{className:`container-page grid gap-10 pb-20 md:grid-cols-12`,children:[(0,o.jsxs)(`div`,{className:`md:col-span-5 space-y-8`,children:[(0,o.jsxs)(`div`,{children:[(0,o.jsx)(`p`,{className:`eyebrow`,children:`General`}),(0,o.jsx)(`p`,{className:`mt-2 font-display text-xl`,children:`[email protected]`}),(0,o.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Partnerships, sponsorships & press`})]}),(0,o.jsxs)(`div`,{children:[(0,o.jsx)(`p`,{className:`eyebrow`,children:`Founder's office`}),(0,o.jsx)(`p`,{className:`mt-2 font-display text-xl`,children:`[email protected]`}),(0,o.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Strategic and board enquiries`})]}),(0,o.jsxs)(`div`,{children:[(0,o.jsx)(`p`,{className:`eyebrow`,children:`Headquarters`}),(0,o.jsxs)(`p`,{className:`mt-2 text-base`,children:[`40 Awolowo Road, Bodija`,(0,o.jsx)(`br`,{}),`Ibadan, Oyo State`,(0,o.jsx)(`br`,{}),`Nigeria`]})]}),(0,o.jsxs)(`div`,{children:[(0,o.jsx)(`p`,{className:`eyebrow`,children:`Registration`}),(0,o.jsx)(`p`,{className:`mt-2 text-base`,children:`FOUND Africa Technology Empowerment Foundation · RC 7347268`}),(0,o.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`CPN registered · NDPC compliant`})]})]}),(0,o.jsxs)(`form`,{id:`contact-form`,className:`md:col-span-7 grid gap-4 rounded-lg border border-border bg-card p-6 md:p-8`,onSubmit:e=>e.preventDefault(),children:[s&&(0,o.jsx)(`div`,{className:`rounded-md border border-green-200 bg-green-50 px-4 py-3 text-sm text-green-700`,children:`Thanks — your message has been sent. We'll be in touch soon.`}),l&&(0,o.jsx)(`div`,{className:`rounded-md border border-red-200 bg-red-50 px-4 py-3 text-sm text-red-700`,children:l}),(0,o.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,o.jsxs)(`label`,{className:`block`,children:[(0,o.jsx)(`span`,{className:`eyebrow`,children:`Name`}),(0,o.jsx)(`input`,{required:!0,name:`name`,className:`mt-2 h-11 w-full rounded-md border border-input bg-paper px-3 text-sm`})]}),(0,o.jsxs)(`label`,{className:`block`,children:[(0,o.jsx)(`span`,{className:`eyebrow`,children:`Organisation`}),(0,o.jsx)(`input`,{name:`org`,className:`mt-2 h-11 w-full rounded-md border border-input bg-paper px-3 text-sm`})]})]}),(0,o.jsxs)(`label`,{className:`block`,children:[(0,o.jsx)(`span`,{className:`eyebrow`,children:`Email`}),(0,o.jsx)(`input`,{required:!0,type:`email`,name:`email`,className:`mt-2 h-11 w-full rounded-md border border-input bg-paper px-3 text-sm`})]}),(0,o.jsxs)(`label`,{className:`block`,children:[(0,o.jsx)(`span`,{className:`eyebrow`,children:`Topic`}),(0,o.jsxs)(`select`,{name:`topic`,className:`mt-2 h-11 w-full rounded-md border border-input bg-paper px-3 text-sm`,children:[(0,o.jsx)(`option`,{children:`Partnership`}),(0,o.jsx)(`option`,{children:`Donation / Sponsorship`}),(0,o.jsx)(`option`,{children:`Press & media`}),(0,o.jsx)(`option`,{children:`General enquiry`})]})]}),(0,o.jsxs)(`label`,{className:`block`,children:[(0,o.jsx)(`span`,{className:`eyebrow`,children:`Message`}),(0,o.jsx)(`textarea`,{required:!0,rows:5,name:`message`,className:`mt-2 w-full rounded-md border border-input bg-paper p-3 text-sm`})]}),(0,o.jsx)(`button`,{type:`button`,disabled:t||s,onClick:async()=>{let r=document.getElementById(`contact-form`);if(!(!r||t||s)){n(!0),u(null);try{await e({data:{kind:`contact`,name:r.elements.namedItem(`name`).value,email:r.elements.namedItem(`email`).value,organisation:r.elements.namedItem(`org`)?.value||void 0,topic:r.elements.namedItem(`topic`)?.value||void 0,message:r.elements.namedItem(`message`).value}}),c(!0),r.reset()}catch(e){u(e instanceof Error?e.message:`Something went wrong. Please try again.`)}finally{n(!1)}}},className:`mt-2 inline-flex h-11 items-center justify-center rounded-md bg-clay px-6 text-sm font-medium text-clay-foreground disabled:opacity-60`,children:t?`Sending…`:s?`Sent`:`Send message`})]})]})]})}export{s 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.