PageSourceSearch

https://ping.kids/assets/ForSchoolsPage-yqzYe-b6.js

js ping.kids collected 2026-09-24 14:24:24 UTC 17,350 bytes, 2 lines download raw bytes

1import{r as o,j as e,t as L}from"./index-BnJqOdh6.js";import{P as ee}from"./PageShell-syYRUfZ2.js";import{A as se}from"./AppBadges-CabR98au.js";import{c as re,u as te,L as $}from"./Footer-8Cv5VoXf.js";import{R as l,a as m,b as x}from"./Reveal-BH4SbWgO.js";import{M as ae,C as p}from"./MountCascade-_W3kHxA9.js";import{S as le,s as ne}from"./client-Ci5CVyVv.js";import{A as F}from"./arrow-right-jRN6Ny4B.js";import{U as S}from"./users-DkkLp4v3.js";import{L as oe}from"./lock-BxCcMqm6.js";import{S as ie}from"./sparkles-BVhXiZeP.js";import{C as ce}from"./chevron-down-BM-90PLP.js";const de=[["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M18 5v16",key:"1ethyx"}],["path",{d:"m4 6 7.106-3.79a2 2 0 0 1 1.788 0L20 6",key:"zywc2d"}],["path",{d:"m6 11-3.52 2.147a1 1 0 0 0-.48.854V19a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5a1 1 0 0 0-.48-.853L18 11",key:"1d4ql0"}],["path",{d:"M6 5v16",key:"1sn0nx"}],["circle",{cx:"12",cy:"9",r:"2",key:"1092wv"}]],u=re("school",de),h=({className:s})=>e.jsx("div",{"aria-hidden":!0,className:`pointer-events-none absolute rounded-full blur-3xl op
1acity-40 ${s??""}`}),P="early-access",q=()=>{document.getElementById(P)?.scrollIntoView({behavior:"smooth",block:"start"})},z={name:"",email:"",role:"",organisation:"",country:"",region:"",size:"",priorities:[],notes:""},c="w-full px-4 py-3 rounded-xl bg-background border border-border text-foreground text-sm focus:outline-none focus:ring-2 focus:ring-ping-purple/30 transition";function we(){const{t:s}=te("for-schools"),M=s("problem.items",{returnObjects:!0}),R=s("assess.paras",{returnObjects:!0}),E=s("how.steps",{returnObjects:!0}),A=s("control.rows",{returnObjects:!0}),B=s("control.notes",{returnObjects:!0}),D=s("sides.groups",{returnObjects:!0}),T=s("safety.paras",{returnObjects:!0}),_=s("privacy.items",{returnObjects:!0}),U=s("cost.paras",{returnObjects:!0}),V=s("shape.paras",{returnObjects:!0}),H=s("faq.items",{returnObjects:!0}),Y=s("form.roleOptions",{returnObjects:!0}),G=s("form.countryOptions",{returnObjects:!0}),J=s("form.sizeOptions",{returnObjects:!0}),K=s("form.priorityOptions",{returnObjects:!0}),Q=[u,S,ie],W=[u,S,oe],j=o.useId(),f=o.useId(),N=o.useId(),y=o.useId(),v=o.useId(),w=o.useId(),k=o.useId(),I=o.useId(),[a,n]=o.useState(z),[g,O]=o.useState(!1),X=r=>{n(t=>({...t,priorities:t.priorities.includes(r)?t.priorities.filter(d=>d!==r):[...t.priorities,r]}))},Z=async r=>{if(r.preventDefault(),g)return;O(!0);const[t,...d]=a.name.trim().split(" "),b=[`${s("form.fields.organisation")}: ${a.organisation}`,`${s("form.fields.country")}: ${a.country}`,a.region?`${s("form.fields.region")}: ${a.region}`:null,`${s("form.fields.size")}: ${a.size}`,a.priorities.length?`${s("form.fields.priorities")}: ${a.priorities.join("; ")}`:null,"",a.notes].filter(i=>i!==null);try{const{data:i,error:C}=await ne.functions.invoke("send-contact-email",{body:{firstName:t||a.name.trim(),lastName:d.join(" ")||"—",email:a.email.trim(),role:`Ping for schools — ${a.role}`,message:b.join(`
2`)}});if(C||i&&i.error)throw new Error(C?.message||i?.error||"Failed to send");L.success(s("form.success")),n(z)}catch(i){console.error(i),L.error(s("form.error"))}finally{O(!1)}};return e.jsxs(ee,{children:[e.jsxs("section",{className:"relative overflow-hidden bg-ping-light-purple py-24 md:py-32",children:[e.jsx(h,{className:"bg-ping-purple w-[500px] h-[500px] -top-40 -left-40"}),e.jsx(h,{className:"bg-white w-[400px] h-[400px] -bottom-40 -right-20 opacity-50"}),e.jsx("div",{className:"container mx-auto px-4 relative",children:e.jsxs(ae,{as:"div",className:"max-w-3xl mx-auto text-center",children:[e.jsx(p,{as:"p",className:"inline-flex items-center gap-2 rounded-full bg-background/80 border border-ping-purple/30 px-4 py-1.5 text-xs font-semibold text-ping-purple mb-6",children:s("hero.pill")}),e.jsx(p,{as:"h1",className:"text-4xl md:text-5xl font-bold mb-5 leading-tight",children:s("hero.h1")}),e.jsx(p,{as:"p",className:"text-xl font-semibold text-foreground/80 mb-5",children:s("hero.subhead")}),e.jsx(p,{as:"p",className:"text-base text-muted-foreground",children:s("hero.intro")}),e.jsxs(p,{as:"div",className:"mt-9 flex flex-wrap gap-3 justify-center",children:[e.jsxs("button",{type:"button",onClick:q,className:"inline-flex items-center gap-2 rounded-full bg-ping-purple text-white px-6 py-3 text-sm font-semibold hover:bg-ping-dark-purple transition-colors",children:[s("hero.ctaPrimary"),e.jsx(F,{className:"w-4 h-4"})]}),e.jsx($,{to:"safety",className:"inline-flex items-center gap-2 rounded-full border border-ping-purple bg-background/60 text-ping-purple px-6 py-3 text-sm font-semibold hover:bg-background transition-colors",children:s("hero.ctaSecondary")})]})]})})]}),e.jsx("section",{className:"py-20 md:py-28 bg-background",children:e.jsxs("div",{className:"container mx-auto px-4 max-w-5xl",children:[e.jsxs(l,{className:"max-w-3xl mb-10",children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:s("problem.h2")}),e.jsx("p",{className:"text-base text-muted-foreground",children:s("problem.intro")})]}),e.jsx(m,{className:"grid md:grid-cols-3 gap-5",children:M.map((r,t)=>e.jsx(x,{children:e.jsxs("article",{className:"h-full rounded-2xl border bg-background p-6 shadow-sm transition-all duration-300 hover:-translate-y-1 hover:shadow-md",children:[e.jsx("h3",{className:"font-semibold text-foreground mb-2",children:r.title}),e.jsx("p",{className:"text-sm text-muted-foreground",children:r.body})]})},t))})]})}),e.jsxs("section",{className:"relative overflow-hidden py-20 md:py-28 bg-ping-light-purple/40",children:[e.jsx(h,{className:"bg-ping-purple w-[400px] h-[400px] -top-20 -right-40 opacity-20"}),e.jsx("div",{className:"container mx-auto px-4 max-w-3xl relative",children:e.jsxs(l,{children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6",children:s("assess.h2")}),e.jsx("div",{className:"space-y-5",children:R.map((r,t)=>
2e.jsx("p",{className:"text-base text-foreground/80 leading-relaxed",children:r},t))})]})})]}),e.jsx("section",{className:"py-20 md:py-28 bg-background",children:e.jsxs("div",{className:"container mx-auto px-4 max-w-5xl",children:[e.jsx(l,{as:"h2",className:"text-3xl md:text-4xl font-bold mb-10",children:s("how.h2")}),e.jsx(m,{className:"grid sm:grid-cols-2 gap-5",children:E.map((r,t)=>e.jsx(x,{children:e.jsxs("article",{className:"h-full rounded-2xl border bg-background p-6 shadow-sm",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[e.jsx("div",{className:"w-9 h-9 rounded-xl bg-ping-light-purple flex items-center justify-center text-ping-purple font-bold shrink-0",children:t+1}),e.jsx("h3",{className:"font-semibold text-foreground",children:r.title})]}),e.jsx("p",{className:"text-sm text-muted-foreground",children:r.body})]})},t))})]})}),e.jsx("section",{className:"py-20 md:py-28 bg-ping-light-purple/40",children:e.jsxs("div",{className:"container mx-auto px-4 max-w-4xl",children:[e.jsxs(l,{className:"mb-8",children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:s("control.h2")}),e.jsx("p",{className:"text-base text-muted-foreground",children:s("control.intro")})]}),e.jsx(m,{className:"grid gap-4 mb-10",children:A.map((r,t)=>{const d=W[t]??u;return e.jsx(x,{children:e.jsxs("article",{className:"rounded-2xl border bg-background p-6 shadow-sm sm:flex sm:items-start sm:gap-5",children:[e.jsxs("div",{className:"flex items-center gap-3 sm:w-52 sm:shrink-0 mb-3 sm:mb-0",children:[e.jsx("div",{className:"w-9 h-9 rounded-xl bg-ping-light-purple flex items-center justify-center shrink-0",children:e.jsx(d,{className:"w-4.5 h-4.5 text-ping-purple"})}),e.jsx("h3",{className:"font-bold text-foreground",children:r.who})]}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:[e.jsxs("span",{className:"sr-only",children:[s("control.canHeader"),": "]}),r.can]})]})},t)})}),e.jsxs(l,{children:[e.jsx("p",{className:"text-base text-foreground/80 mb-5",children:s("control.outro")}),e.jsx("div",{className:"space-y-5",children:B.map((r,t)=>e.jsxs("p",{className:"text-base text-foreground/80 leading-relaxed",children:[e.jsx("strong",{className:"font-semibold text-foreground",children:r.title})," ",r.body]},t))})]})]})}),e.jsx("section",{className:"py-20 md:py-28 bg-background",children:e.jsxs("div",{className:"container mx-auto px-4 max-w-5xl",children:[e.jsx(l,{as:"h2",className:"text-3xl md:text-4xl font-bold mb-10",children:s("sides.h2")}),e.jsx(m,{className:"grid md:grid-cols-3 gap-5",children:D.map((r,t)=>{const d=Q[t]??u;return e.jsx(x,{children:e.jsxs("article",{className:"h-full rounded-2xl border-2 border-ping-purple/25 bg-ping-light-purple/40 p-7",children:[e.jsx(d,{className:"w-7 h-7 text-ping-purple mb-4"}),e.jsx("h3",{className:"font-bold text-lg mb-4 text-foreground",children:r.title}),e.jsx("ul",{className:"space-y-3",children:r.items.map((b,i)=>e.jsxs("li",{className:"text-sm text-foreground/80 leading-relaxed flex gap-2",children:[e.jsx("span",{"aria-hidden":!0,className:"text-ping-purple",children:"•"}),e.jsx("span",{children:b})]},i))})]})},t)})})]})}),e.jsx("section",{className:"py-20 md:py-28 bg-ping-light-purple/40",children:e.jsx("div",{className:"container mx-auto px-4 max-w-3xl",children:e.jsxs(l,{children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6",children:s("safety.h2")}),e.jsx("div",{className:"space-y-5",children:T.map((r,t)=>e.jsx("p",{className:"text-base text-foreground/80 leading-relaxed",children:r},t))}),e.jsx("p",{className:"mt-8 text-lg font-bold text-ping-purple",children:s("safety.highlight")})]})})}),e.jsx("section",{className:"py-20 md:py-28 bg-background",children:e.jsxs("div",{className:"container mx-auto px-4 max-w-4xl",children:[e.jsxs(l,{className:"max-w-3xl mb-10",children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:s("privacy.h2")}),e.jsx("p",{className:"text-base text-muted-foreground",children:s("privacy.intro")})]}),e.jsx(m,{className:"grid sm:grid-cols-2 gap-5",children:_.map((r,t)=>e.jsx(x,{children:e.jsxs("article",{className:"h-full rounded-2xl border bg-background p-6 shadow-sm",children:[e.jsx("h3",{className:"font-semibold text-foreground mb-2",children:r.title}),e.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:r.body})]})},t))})]})}),e.jsx("section",{className:"py-20 md:py-28 bg-ping-light-purple/40",children:e.jsxs("div",{className:"container mx-auto px-4 max-w-3xl space-y-14",children:[e.jsxs(l,{children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6",children:s("cost.h2")}),e.jsx("div",{className:"space-y-5",children:U.map((r,t)=>
2e.jsx("p",{className:"text-base text-foreground/80 leading-relaxed",children:r},t))})]}),e.jsxs(l,{children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6",children:s("shape.h2")}),e.jsx("div",{className:"space-y-5",children:V.map((r,t)=>e.jsx("p",{className:"text-base text-foreground/80 leading-relaxed",children:r},t))})]})]})}),e.jsx("section",{className:"py-20 md:py-28 bg-background",children:e.jsxs("div",{className:"container mx-auto px-4 max-w-3xl",children:[e.jsx(l,{as:"h2",className:"text-3xl md:text-4xl font-bold mb-10",children:s("faq.h2")}),e.jsx(l,{className:"rounded-2xl border bg-background shadow-sm divide-y",children:H.map((r,t)=>e.jsxs("details",{className:"group px-5 md:px-6",children:[e.jsxs("summary",{className:"flex items-center justify-between gap-4 cursor-pointer list-none py-4 font-sans font-semibold text-base text-foreground [&::-webkit-details-marker]:hidden",children:[e.jsx("span",{children:r.q}),e.jsx(ce,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200 group-open:rotate-180"})]}),e.jsx("div",{className:"text-sm text-muted-foreground pb-6 leading-relaxed",children:r.a})]},t))})]})}),e.jsx("section",{id:P,className:"py-20 md:py-28 bg-ping-light-purple/40 scroll-mt-24",children:e.jsxs("div",{className:"container mx-auto px-4 max-w-3xl",children:[e.jsxs(l,{className:"mb-10",children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:s("form.h2")}),e.jsx("p",{className:"text-base text-foreground/80 mb-3",children:s("form.intro")}),e.jsx("p",{className:"text-base text-muted-foreground",children:s("form.extra")})]}),e.jsx(l,{children:e.jsxs("form",{onSubmit:Z,className:"rounded-2xl bg-background border border-border p-6 md:p-8 space-y-5",children:[e.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:j,className:"text-sm font-medium mb-1.5 block",children:s("form.fields.name")}),e.jsx("input",{id:j,required:!0,type:"text",maxLength:100,value:a.name,onChange:r=>n({...a,name:r.target.value}),className:c})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:f,className:"text-sm font-medium mb-1.5 block",children:s("form.fields.email")}),e.jsx("input",{id:f,required:!0,type:"email",maxLength:255,value:a.email,onChange:r=>n({...a,email:r.target.value}),className:c})]})]}),e.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:N,className:"text-sm font-medium mb-1.5 block",children:s("form.fields.role")}),e.jsxs("select",{id:N,required:!0,value:a.role,onChange:r=>n({...a,role:r.target.value}),className:`${c} appearance-none`,children:[e.jsx("option",{value:"",disabled:!0,children:"—"}),Y.map(r=>e.jsx("option",{value:r,children:r},r))]})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:y,className:"text-sm font-medium mb-1.5 block",children:s("form.fields.organisation")}),e.jsx("input",{id:y,required:!0,type:"text",maxLength:150,value:a.organisation,onChange:r=>n({...a,organisation:r.target.value}),className:c})]})]}),e.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:v,className:"text-sm font-medium mb-1.5 block",children:s("form.fields.country")}),e.jsxs("select",{id:v,required:!0,value:a.country,onChange:r=>n({...a,country:r.target.value}),className:`${c} appearance-none`,children:[e.jsx("option",{value:"",disabled:!0,children:"—"}),G.map(r=>e.jsx("option",{value:r,children:r},r))]})]}),e.jsxs("div",{children:[e.jsxs("label",{htmlFor:w,className:"text-sm font-medium mb-1.5 block",children:[s("form.fields.region")," ",e.jsxs("span",{className:"text-muted-foreground font-normal",children:["(",s("form.optional"),")"]})]}),e.jsx("input",{id:w,type:"text",maxLength:100,value:a.region,onChange:r=>n({...a,region:r.target.value}),className:c})]})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:k,className:"text-sm font-medium mb-1.5 block",children:s("form.fields.size")}),e.jsxs("select",{id:k,required:!0,value:a.size,onChange:r=>n({...a,size:r.target.value}),className:`${c} appearance-none`,children:[e.jsx("option",{value:"",disabled:!0,children:"—"}),J.map(r=>e.jsx("option",{value:r,children:r},r))]})]}),e.jsxs("fieldset",{children:[e.jsxs("legend",{className:"text-sm font-medium mb-2",children:[s("form.fields.priorities")," ",e.jsxs("span",{className:"text-muted-foreground font-normal",children:["(",s("form.optional"),")"]})]}),e.jsx("div",{className:"grid sm:grid-cols-2 gap-2",children:K.map(r=>e.jsxs("label",{className:"flex items-start gap-2.5 rounded-xl border border-border px-4 py-3 text-sm text-foreground
2/85 cursor-pointer hover:border-ping-purple/40 transition-colors",children:[e.jsx("input",{type:"checkbox",checked:a.priorities.includes(r),onChange:()=>X(r),className:"mt-0.5 accent-ping-purple"}),e.jsx("span",{children:r})]},r))})]}),e.jsxs("div",{children:[e.jsxs("label",{htmlFor:I,className:"text-sm font-medium mb-1.5 block",children:[s("form.fields.notes")," ",e.jsxs("span",{className:"text-muted-foreground font-normal",children:["(",s("form.optional"),")"]})]}),e.jsx("textarea",{id:I,rows:5,maxLength:4e3,value:a.notes,onChange:r=>n({...a,notes:r.target.value}),className:`${c} resize-none`})]}),e.jsxs("button",{type:"submit",disabled:g,className:"inline-flex items-center gap-2 px-7 py-3.5 rounded-full bg-ping-purple text-white font-semibold text-sm hover:bg-ping-dark-purple transition-colors w-full justify-center sm:w-auto disabled:opacity-60 disabled:cursor-not-allowed",children:[s(g?"form.sending":"form.submit"),e.jsx(le,{className:"w-4 h-4"})]}),e.jsxs("p",{className:"text-xs text-muted-foreground leading-relaxed",children:[s("form.privacyLine")," ",e.jsx($,{to:"privacy",className:"underline hover:text-ping-purple",children:s("form.privacyLinkLabel")})]})]})})]})}),e.jsxs("section",{className:"relative overflow-hidden py-24 md:py-32 bg-ping-light-purple",children:[e.jsx(h,{className:"bg-ping-purple w-[450px] h-[450px] -top-32 -left-32"}),e.jsx(h,{className:"bg-white w-[400px] h-[400px] -bottom-32 -right-32 opacity-50"}),e.jsx("div",{className:"container mx-auto px-4 relative",children:e.jsxs(l,{className:"max-w-2xl mx-auto text-center",children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:s("closing.h2")}),e.jsx("p",{className:"text-lg text-muted-foreground mb-8",children:s("closing.body")}),e.jsxs("button",{type:"button",onClick:q,className:"inline-flex items-center gap-2 rounded-full bg-ping-purple text-white px-7 py-3.5 text-sm font-semibold hover:bg-ping-dark-purple transition-colors",children:[s("closing.cta"),e.jsx(F,{className:"w-4 h-4"})]}),e.jsx("div",{className:"flex justify-center mt-10",children:e.jsx(se,{})})]})})]})]})}export{we as F};

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.