1import{r as t,j as e}from"./index-o_jHDkf9.js";import{A}from"./arrow-down-CVQ5Cr15.js";import{A as C}from"./arrow-left--lopMw7l.js";import{A as E}from"./arrow-up-right-BXWvsPEo.js";import{H as $}from"./heart-B4RRIg7G.js";import{P as F}from"./palette-iBzDEQ-g.js";import{S as U}from"./smile-DCwSkcu6.js";import{W as G}from"./wrench-pGwrBExS.js";import{C as M}from"./check-DC1dZjjy.js";import{R as P}from"./refresh-cw-C7kfpWFU.js";import"./createLucideIcon-B86Xit_Z.js";const a={paper:"#F7F6F4",ink:"#292825",rose:"#904767",pink:"#F1CEE0",line:"#DDD5D7"},L="bonjour-buildathon-submission-2026-09-19",R=[{title:"Most Fun",project:"Air Chord",creator:"Cindy",id:"9b0ebf94-994f-4062-a587-cfba0a4ce9f0",href:"https://cccindyyang.zo.space/air-chord"},{title:"Most Aesthetic",project:"Josie",creator:"",id:"22d36cb6-4604-4e5a-bde2-590b1116869c",href:"https://josie.zo.space/muse"},{title:"Most Useful",project:"Pawner",creator:"Naomi Zhu",id:"3c7c8cbc-c734-4b38-8ff7-3fbdb9abd141",href:"https://nzhu.zo.space/app"},{title:"Honorable Mention",project:"Sirena",creator:"",id:"",href:""}],W=[{title:"Most Aesthetic",description:"Beautiful design, thoughtful details, and a look you love.",icon:F},{title:"Most Fun",description:"Something playful, surprising, or genuinely delightful to use.",icon:U},{title:"Most Useful",description:"A useful project that solves a real problem.",icon:G}],I={name:"",project_url:"",description:""};function q({entry:i,own:r}){const f=R.find(o=>o.id===i.id),[n,v]=t.useState(!1),p=i.description.length>240;let d="",g="";try{const o=new URL(i.project_url);["http:","https:"].includes(o.protocol)&&!o.username&&!o.password&&(d=o.toString(),g=o.hostname.replace(/^www\./,""))}catch{}return e.jsxs("article",{className:"bs-project","data-submission-id":i.id,children:[f&&e.jsx("span",{className:"bs-award-badge",children:f.title}),e.jsxs("div",{className:"bs-project-top",children:[e.jsx("span",{className:"bs-project-label",children:"Made by"}),r&&e.jsx("span",{className:"bs-own",children:"Your project"})]}),e.jsx("h3",{children:i.name}),e.jsx("p",{className:"bs-project-description",id:`description-${i.id}`,children:p&&!n?`${i.description.slice(0,240).trimEnd()}â¦`:i.description}),p&&e.jsx("button",{type:"button",className:"bs-read-more","aria-expanded":n,"aria-controls":`description-${i.id}`,onClick:()=>v(o=>!o),children:n?"Show less":"Read more"}),d&&e.jsxs("a",{className:"bs-project-link",href:d,target:"_blank",rel:"noopener noreferrer nofollow ugc",title:d,children:[e.jsxs("span",{children:[e.jsx("span",{className:"bs-open-label",children:"Open project"}),e.jsx("span",{className:"bs-project-host",children:g})]}),e.jsx(E,{size:20,"aria-hidden":"true"})]})]})}function D({receiptId:i}){const[r,f]=t.useState([]),[n,v]=t.useState(!1),[p,d]=t.useState(!1),[g,o]=t.useState(0),N=t.useRef("");return t.useEffect(()=>{let l=!1,w=!1,k=null;const b=async()=>{if(l||w||document.hidden)return;w=!0,k=new AbortController;const y=k,S=window.setTimeout(()=>y.abort(),15e3);try{const T={Accept:"application/json"};N.current&&(T["If-None-Match"]=N.current);const s=await fetch("/api/bonjour-submissions",{headers:T,cache:"no-store",signal:y.signal});if(s.status!==304){if(!s.ok)throw new Error("unavailable");const m=await s.json();if(!Array.isArray(m?.submissions)||!m.submissions.every(h=>h&&typeof h=="object"&&["id","name","project_url","description","created_at"].every(x=>typeof h[x]=="string")))throw new Error("invalid-response");if(l)return;f(m.submissions),N.current=s.headers.get("ETag")||""}l||(v(!0),d(!1))}catch{l||d(!0)}finally{window.clearTimeout(S),w=!1}};b();const z=window.setInterval(()=>{b()},5e3),j=()=>{b()};return document.addEventListener("visibilitychange",j),window.addEventListener("online",j),()=>{l=!0,window.clearInterval(z),k?.abort(),document.removeEventListener("visibilitychange",j),window.removeEventListener("online",j)}},[i,g]),e.jsxs("section",{className:"bs-live",id:"live-submissions","aria-labelledby":"live-submissions-title",children:[e.jsxs("div",{className:"bs-live-heading",children:[e.jsxs("div",{children:[e.jsxs("p",{className:"bs-eyebrow",children:[e.jsx("span",{className:`bs-live-d
1ot${p?" bs-live-paused":""}`,"aria-hidden":"true"}),p?"Reconnecting":n?"Live · updates every 5 seconds":"Connecting to live submissions"]}),e.jsx("h2",{id:"live-submissions-title",children:"Look what weâre making."}),e.jsx("p",{className:"bs-live-intro",children:"Everyoneâs projects, all in one place. Newest first."})]}),e.jsxs("div",{className:"bs-live-controls",children:[e.jsx("span",{className:"bs-count",role:"status","aria-live":"polite",children:n?`${r.length} ${r.length===1?"project":"projects"} shared`:"Loading entriesâ¦"}),e.jsxs("button",{type:"button",className:"bs-secondary",onClick:()=>o(l=>l+1),children:[e.jsx(P,{size:13,"aria-hidden":"true"})," Refresh"]})]})]}),p&&e.jsxs("p",{className:"bs-alert",role:"status",children:["The live connection is taking a moment. ",n?"Saved projects are still shown. ":"","Weâll retry automatically."]}),!n&&!p&&e.jsx("div",{className:"bs-live-empty",role:"status",children:"Loading everyoneâs projectsâ¦"}),n&&!r.length&&e.jsxs("div",{className:"bs-live-empty",children:[e.jsx($,{size:25,strokeWidth:1.3,"aria-hidden":"true"}),e.jsx("h3",{children:"Your project could be the first."}),e.jsx("p",{children:"As people submit, their projects will appear here automatically."}),e.jsxs("a",{className:"bs-secondary",href:"#bonjour-entry",children:["Submit your project ",e.jsx(E,{size:14,"aria-hidden":"true"})]})]}),r.length>0&&e.jsx("div",{className:"bs-projects",children:r.map(l=>e.jsx(q,{entry:l,own:l.id===i},l.id))})]})}function O(){try{const i=JSON.parse(localStorage.getItem(L)||"null");if(i&&i.fields&&["name","project_url","description"].every(r=>typeof i.fields[r]=="string"))return{fields:i.fields,receipt:typeof i.receipt?.id=="string"&&typeof i.receipt?.created_at=="string"?i.receipt:null,pending:typeof i.pending?.request_id=="string"&&typeof i.pending?.fingerprint=="string"?i.pending:null}}catch{}return{fields:I,receipt:null,pending:null}}function re(){const[i]=t.useState(O),[r,f]=t.useState(i.fields),[n,v]=t.useState(i.receipt),[p,d]=t.useState(!1),[g,o]=t.useState(""),[N,l]=t.useState(!1),[w,k]=t.useState(""),b=t.useRef(i.pending),z=t.useRef(!1),j=t.useRef(null),y=s=>{try{localStorage.setItem(L,JSON.stringify(s)),l(!1)}catch{l(!0)}};t.useEffect(()=>{y({fields:r,receipt:n,pending:b.current})},[r,n]),t.useEffect(()=>{n&&j.current?.focus()},[n]);const S=(s,m)=>{f(h=>({...h,[s]:m})),o("")},T=async s=>{if(s.preventDefault(),z.current)return;o("");const m=r.name.trim(),h=r.description.trim();let x=r.project_url.trim();if(!m){o("Please enter your name.");return}if(h.length<10){o("Please tell us a little more about your project, at least 10 characters.");return}try{/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(x)||(x=`https://${x}`);const c=new URL(x);if(!["https:","http:"].includes(c.protocol)||!c.hostname.includes(".")||c.username||c.password)throw new Error("invalid");x=c.toString()}catch{o("Please paste a valid project URL, like https://your-project.zo.space.");return}const B={name:m,project_url:x,description:h},_=JSON.stringify(B);b.current?.fingerprint!==_&&(b.current={fingerprint:_,request_id:crypto.randomUUID()}),y({fields:r,receipt:null,pending:b.current}),z.current=!0,d(!0);try{const c=await fetch("/api/bonjour-submissions",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({...B,request_id:b.current.request_id,website:w}),signal:AbortSignal.timeout(2e4)}),u=await c.json().catch(()=>null);if(!c.ok||u?.ok!==!0||typeof u.id!="string"||typeof u.created_at!="string")throw new Error(typeof u?.error=="string"?u.error:"We could not confirm your submission. Please try again.");f(B),v({id:u.id,created_at:u.created_at}),y({fields:B,receipt:{id:u.id,created_at:u.created_at},pending:b.current})}catch(c){o(c instanceof Error&&!["AbortError","TimeoutError","TypeError"].includes(c.name)?c.message:"We could not confirm your submission. Your draft is still here. Please retry; the same entry will not be saved twice.")}finally{z.current=!1,d(!1)}};return e.jsxs("main",{className:"bs-page",style:{backgroundColor:a.paper,color:a.ink},children:[e.jsx("style",{children:` 2 @font-face{font-family:BonjourSubmitTitle;src:url('/fonts/Advercase-Regular.woff2') format('woff2');font-weight:400;font-display:swap} 3 @font-face{font-family:BonjourSubmitText;src:url('/fonts/MonoLisaText-0.woff2') format('woff2');font-weight:100 900;font-display:swap;
3unicode-range:U+20-7F} 4 .bs-page{min-height:100svh;padding:0 36px 32px;font-family:BonjourSubmitText,sans-serif;font-synthesis:none;background-image:radial-gradient(ellipse at 5% 40%,#f2d3e05c,transparent 55%)} 5 .bs-page *{box-sizing:border-box} 6 .bs-wrap{max-width:1160px;margin:auto} 7 .bs-header{min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid ${a.line}} 8 .bs-hosts{display:flex;align-items:center;gap:20px}.bs-partner{font:27px/1.1 BonjourSubmitTitle,Georgia,serif}.bs-times{color:${a.rose}}.bs-logo{width:86px;height:auto} 9 .bs-back,.bs-secondary{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:9px 16px;border:1px solid ${a.line};border-radius:100px;font-size:11px;color:#66555e;text-decoration:none;background:#ffffff75} 10 .bs-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:64px;padding-top:34px;align-items:start} 11 .bs-eyebrow{font-size:10px;letter-spacing:.13em;text-transform:uppercase;color:${a.rose};display:flex;gap:8px;align-items:center;margin:0 0 16px} 12 .bs-title{font:400 clamp(44px,5vw,64px)/1.02 BonjourSubmitTitle,Georgia,serif;letter-spacing:-.045em;margin:0 0 16px}.bs-title span{display:block;color:${a.rose}} 13 .bs-deck{font-size:13px;line-height:1.7;max-width:415px;color:#655c5b;margin:0 0 23px} 14 .bs-prizes-heading{font-size:11px;letter-spacing:.07em;color:#75465b;margin:0 0 6px;text-transform:uppercase} 15 .bs-prizes{list-style:none;padding:0;margin:0} 16 .bs-prize{display:grid;grid-template-columns:34px minmax(0,1fr);gap:12px;padding:14px 0;border-bottom:1px solid ${a.line}} 17 .bs-prize:last-child{border-bottom:0}.bs-prize-icon{color:${a.rose};padding-top:3px}.bs-prize h3{font:400 25px/1.15 BonjourSubmitTitle,Georgia,serif;letter-spacing:-.02em;margin:0 0 4px}.bs-prize p{font-size:12px;line-height:1.6;color:#6b6261;margin:0} 18 .bs-eligibility{margin:18px 0 0;padding:14px 16px;border-left:2px solid #be84a0;background:#f0dce55e;font-size:11px;line-height:1.7;color:#75465b}.bs-eligibility p{margin:0}.bs-eligibility p+p{margin-top:5px} 19 .bs-form-panel{border:1px solid #e0cfd6;background:linear-gradient(145deg,#fffdfd,#f6e8ef);border-radius:24px;padding:26px} 20 .bs-form-title{font:400 32px/1.1 BonjourSubmitTitle,Georgia,serif;letter-spacing:-.025em;margin:0 0 7px}.bs-form-intro{margin:0 0 22px;color:#72616a;font-size:12px;line-height:1.7} 21 .bs-form-panel fieldset{border:0;padding:0;margin:0;min-width:0}.bs-field{display:block;margin-bottom:17px}.bs-label{display:block;font-size:12px;margin-bottom:7px;font-weight:550;color:#473c41} 22 .bs-input{width:100%;min-width:0;min-height:46px;display:block;border:1px solid #d7c7cd;border-radius:11px;background:#fffdfd;padding:11px 13px;color:#292825;font:13px/1.5 BonjourSubmitText,sans-serif;transition:border-color .15s,box-shadow .15s} 23 .bs-input::placeholder{color:#97848c}.bs-input:focus{outline:none;border-color:${a.rose};box-shadow:0 0 0 3px #90476718}.bs-input:disabled{opacity:.7}.bs-description{resize:vertical;min-height:123px;max-height:350px} 24 .bs-hint{display:block;margin-top:7px;color:#7b6b73;font-size:10px;line-height:1.6}.bs-counter{text-align:right;margin-top:5px;color:#8b747f;font-size:10px}.bs-button{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:46px;width:100%;padding:12px 20px;border:0;border-radius:100px;background:linear-gradient(165deg,#494440,#292825);box-shadow:inset 0 1px 0 #ffffff24,0 3px 8px #29282510;color:white;font:12px BonjourSubmitText,sans-serif;cursor:pointer}.bs-button:disabled{opacity:.6;cursor:wait} 25 .bs-page a:focus-visible,.bs-page button:focus-visible{outline:3px solid ${a.rose};outline-offset:4px}.bs-privacy{font-size:10px;line-height:1.6;color:#7b6b73;text-align:center;margin:12px 0 0}.bs-alert{border:1px solid #cdb28b;background:#fff4dd;color:#70501d;border-radius:11px;padding:12px;font-size:12px;line-height:1.6;margin-bottom:15px} 26 .bs-honeypot{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.bs-success-icon{display:grid;place-items:center;width:48px;height:48px;background:${a.pink};color:${a.rose};border-radius:50%;margin-bottom:18px}.bs-success h2{outline:none}.bs-receipt{font-size:10px;letter-spacing:.07em;color:#904767;margin:16px 0}.bs-summary{border-top:1px solid ${a.line};padding-top:18px;margin:20px 0}.bs-summary p{font-size:12px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;color:#655c5b}.bs-summary a{display:block;overflow-wrap:anywhere;color:${a.rose};font-size:12px;line-height:1.7}.bs-success .bs-secondary{width:100%} 27 .bs-nav{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.bs-nav-live{background:#f2dce7;border-color:#dbb9ca;color:#75465b}.bs-success-links{display:grid;gap:8px} 28 .bs-live{margin-top:44px;padding-top:28px;border-top:1px solid ${a.line};scroll-margin-top:20px}.bs-form-panel{scroll-margin-top:20px} 29 .bs-live-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:24px}.bs-live-heading h2{font:400 clamp(32px,4vw,44px)/1.1 BonjourSubmitTitle,Georgia,serif;letter-spacing:-.035em;margin:0 0 10px}.bs-live-heading .bs-eyebrow{margin-bottom:12px}.bs-live-intro{font-size:12px;line-height:1.7;color:#72616a;margin:0}
30 .bs-live-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#658477;box-shadow:0 0 0 4px #65847716;flex-shrink:0}.bs-live-paused{background:#a38760;box-shadow:0 0 0 4px #a3876016}.bs-live-controls{display:flex;align-items:center;flex-wrap:wrap;gap:14px;flex-shrink:0}.bs-count{color:#75465b;font-size:11px}.bs-live-controls button{font-family:inherit;cursor:pointer} 31 .bs-projects{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.bs-project{min-width:0;display:flex;flex-direction:column;align-items:flex-start;padding:24px;border:1px solid #dfcfd6;border-radius:22px;background:linear-gradient(145deg,#fffdfd,#f6eaf0)} 32 .bs-project-top{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.bs-project-label{font-size:9px;letter-spacing:.13em;text-transform:uppercase;color:#8a6375}.bs-own{font-size:9px;color:#75465b;padding:5px 8px;border-radius:100px;background:#efd1e0}.bs-project h3{font:400 30px/1.15 BonjourSubmitTitle,Georgia,serif;letter-spacing:-.02em;margin:0 0 14px;overflow-wrap:anywhere} 33 .bs-project-description{font-size:12px;line-height:1.75;margin:0 0 16px;color:#655c5b;white-space:pre-wrap;overflow-wrap:anywhere}.bs-read-more{min-height:36px;padding:0 0 12px;border:0;background:none;color:${a.rose};font:11px BonjourSubmitText,sans-serif;text-decoration:underline;text-underline-offset:3px;cursor:pointer} 34 .bs-project-link{display:flex;width:100%;align-items:center;justify-content:space-between;gap:14px;min-height:58px;margin-top:auto;padding-top:16px;border-top:1px solid #e3d6dc;text-decoration:none;color:#75465b}.bs-project-link>span{min-width:0}.bs-project-link>svg{flex-shrink:0}.bs-open-label{display:block;font-size:12px}.bs-project-host{display:block;font-size:10px;color:#88727d;margin-top:5px;overflow-wrap:anywhere} 35 .bs-live-empty{display:flex;flex-direction:column;align-items:center;text-align:center;padding:36px 24px;border:1px solid #e0cfd6;border-radius:22px;background:#f5e8ee70;color:#75465b;font-size:12px;line-height:1.7}.bs-live-empty h3{font:400 30px/1.15 BonjourSubmitTitle,Georgia,serif;letter-spacing:-.02em;margin:15px 0 8px}.bs-live-empty p{margin:0 0 18px;max-width:440px} 36 .bs-winners{padding:26px 0 24px;border-bottom:1px solid ${a.line}} 37 .bs-winners h2{font:400 34px/1.1 BonjourSubmitTitle,Georgia,serif;letter-spacing:-.03em;margin:0 0 16px} 38 .bs-winners-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px} 39 .bs-winner{min-width:0;padding:19px;border:1px solid #dfbccc;border-radius:18px;background:linear-gradient(145deg,#fff9fc,#f1d9e5);display:flex;flex-direction:column;align-items:flex-start} 40 .bs-award-badge{display:inline-block;border-radius:100px;background:#ecd0df;color:#75405a;padding:6px 10px;font-size:10px;line-height:1.4;margin-bottom:12px} 41 .bs-winner h3{font:400 29px/1.15 BonjourSubmitTitle,Georgia,serif;letter-spacing:-.025em;margin:0 0 6px;overflow-wrap:anywhere} 42 .bs-winner p{font-size:11px;color:#78606c;margin:0 0 12px} 43 .bs-winner a{margin-top:auto;font-size:10px;min-height:36px;padding:8px 12px} 44 @media(max-width:1000px){.bs-winners-grid{grid-template-columns:repeat(2,minmax(0,1fr))}} 45 @media(max-width:480px){.bs-winners-grid{grid-template-columns:1fr}.bs-winners h2{font-size:30px}} 46 @media(max-width:1000px){.bs-grid{gap:30px}.bs-form-panel{padding:22px}.bs-title{font-size:52px}.bs-projects{grid-template-columns:repeat(2,minmax(0,1fr))}} 47 @media(max-width:760px){.bs-page{padding:0 20px 30px}.bs-header{min-height:70px;flex-wrap:wrap;padding:12px 0;gap:10px}.bs-hosts{gap:14px}.bs-partner{font-size:24px}.bs-logo{width:74px}.bs-back{font-size:10px;padding:7px 12px;min-height:38px}.bs-grid{grid-template-columns:1fr;gap:23px;padding-top:24px}.bs-title{font-size:45px}.bs-title span{display:inline;margin-left:.15em}.bs-deck{margin-bottom:16px}.bs-prize{padding:10px 0}.bs-prize h3{font-size:23px}.bs-eligibility{margin-top:12px}.bs-form-panel{padding:22px}.bs-input{font-size:16px}.bs-form-title{font-size:30px}.bs-description{min-height:132px}.bs-nav{gap:6px}.bs-live{margin-top:30px;padding-top:24px}.bs-live-heading{align-items:flex-start;flex-direction:column;gap:16px}
47.bs-live-controls{width:100%;justify-content:space-between}.bs-projects{grid-template-columns:1fr}.bs-project{padding:22px}.bs-live-empty{padding:28px 18px}} 48 @media(prefers-reduced-motion:reduce){.bs-page *{transition:none!important}} 49 `}),e.jsxs("div",{className:"bs-wrap",children:[e.jsxs("header",{className:"bs-header",children:[e.jsxs("div",{className:"bs-hosts","aria-label":"Bonjour Girls and Zo Computer",children:[e.jsx("span",{className:"bs-partner",children:"Bonjour Girls"}),e.jsx("span",{className:"bs-times","aria-hidden":"true",children:"Ã"}),e.jsx("img",{className:"bs-logo",src:"/brand/zo-wordmark.svg",alt:"Zo Computer",width:"86",height:"36"})]}),e.jsxs("nav",{className:"bs-nav","aria-label":"Buildathon navigation",children:[e.jsxs("a",{className:"bs-back bs-nav-live",href:"#live-submissions",children:["Live submissions ",e.jsx(A,{size:14,"aria-hidden":"true"})]}),e.jsxs("a",{className:"bs-back",href:"/bonjour",children:[e.jsx(C,{size:14,"aria-hidden":"true"})," Buildathon guide"]})]})]}),e.jsxs("section",{className:"bs-winners","aria-labelledby":"buildathon-winners-title",children:[e.jsx("h2",{id:"buildathon-winners-title",children:"Our buildathon winners"}),e.jsx("div",{className:"bs-winners-grid",children:R.map(s=>e.jsxs("article",{className:"bs-winner",children:[e.jsx("span",{className:"bs-award-badge",children:s.title}),e.jsx("h3",{children:s.project}),s.creator&&e.jsxs("p",{children:["By ",s.creator]}),s.href&&e.jsxs("a",{className:"bs-secondary",href:s.href,target:"_blank",rel:"noopener noreferrer",children:["Open project ",e.jsx(E,{size:13,"aria-hidden":"true"})]})]},s.title))})]}),e.jsxs("div",{className:"bs-grid",children:[e.jsxs("section",{"aria-labelledby":"submission-title",children:[e.jsxs("p",{className:"bs-eyebrow",children:[e.jsx($,{size:13,"aria-hidden":"true"})," Bonjour Girls à Zo buildathon"]}),e.jsxs("h1",{id:"submission-title",className:"bs-title",children:["Show us",e.jsx("span",{children:"what you made."})]}),e.jsx("p",{className:"bs-deck",children:"Paste your project link and tell us what it does. Hereâs what you can compete for:"}),e.jsx("h2",{className:"bs-prizes-heading",children:"Three prizes · $600 total"}),e.jsx("ul",{className:"bs-prizes",children:W.map(s=>{const m=s.icon;return e.jsxs("li",{className:"bs-prize",children:[e.jsx("span",{className:"bs-prize-icon",children:e.jsx(m,{size:23,strokeWidth:1.4,"aria-hidden":"true"})}),e.jsxs("div",{children:[e.jsx("h3",{children:s.title}),e.jsx("p",{children:s.description})]})]},s.title)})}),e.jsxs("div",{className:"bs-eligibility",children:[e.jsxs("p",{children:["You must subscribe to ",e.jsx("strong",{children:"Zo Basic"})," & show Anthea to enter the buildathon for prizes."]}),e.jsx("p",{children:"Everyone who enters will receive something :)"})]})]}),e.jsx("section",{className:"bs-form-panel",id:"bonjour-entry","aria-labelledby":n?"submission-success":"submission-form-title",children:n?e.jsxs("div",{className:"bs-success",children:[e.jsx("div",{className:"bs-success-icon",children:e.jsx(M,{size:24,"aria-hidden":"true"})}),e.jsx("h2",{className:"bs-form-title",id:"submission-success",tabIndex:-1,ref:j,children:"Your project is submitted!"}),e.jsx("p",{className:"bs-form-intro",children:"Your project is saved and will appear in the live submissions below. Thanks for sharing what you made."}),e.jsxs("p",{className:"bs-receipt",children:["Receipt: ",n.id.slice(0,8).toUpperCase()]}),e.jsxs("div",{className:"bs-summary",children:[e.jsx("p",{children:e.jsx("strong",{children:r.name})}),e.jsx("a",{href:/^https?:\/\//i.test(r.project_url)?r.project_url:void 0,target:"_blank",rel:"noopener noreferrer",children:r.project_url}),e.jsx("p",{children:r.description})]}),e.jsxs("p",{className:"bs-form-intro",children:["You must subscribe to ",e.jsx("strong",{children:"Zo Basic"})," and show Anthea to enter the buildathon for prizes. Need to change your submission? Find Anthea."]}),e.jsxs("div",{className:"bs-success-links",children:[e.jsxs("a",{className:"bs-secondary bs-nav-live",href:"#live-submissions",children:["See everyoneâs projects ",e.jsx(A,{size:14,"aria-hidden":"true"})]}),e.jsxs("a",{className:"bs-secondary",href:"/bonjour",children:[e.jsx(C,{size:14,"aria-hidden":"true"})," Back to the buildathon"]})]})]}):e.jsxs("form",{onSubmit:T,"aria-busy":p,children:[e.jsx("h2",{id:"submission-form-title",className:"bs-form-title",children:"Submit your project"}),e.jsx("p",{className:"bs-form-intro",children:"Three fields. The
49n back to building."}),N&&e.jsx("div",{className:"bs-alert",role:"status",children:"This device canât save your draft. Keep this tab open until you submit."}),g&&e.jsx("div",{className:"bs-alert",role:"alert",children:g}),e.jsxs("fieldset",{disabled:p,children:[e.jsxs("label",{className:"bs-field",htmlFor:"bonjour-name",children:[e.jsx("span",{className:"bs-label",children:"Your name"}),e.jsx("input",{className:"bs-input",id:"bonjour-name",name:"name",autoComplete:"name",required:!0,maxLength:100,value:r.name,onChange:s=>S("name",s.target.value),placeholder:"So we know who made it"})]}),e.jsxs("label",{className:"bs-field",htmlFor:"bonjour-url",children:[e.jsx("span",{className:"bs-label",children:"Project URL"}),e.jsx("input",{className:"bs-input",id:"bonjour-url",name:"project_url",inputMode:"url",autoCapitalize:"none",spellCheck:!1,required:!0,maxLength:2048,value:r.project_url,onChange:s=>S("project_url",s.target.value),placeholder:"https://your-project.zo.space","aria-describedby":"bonjour-url-help"}),e.jsx("span",{className:"bs-hint",id:"bonjour-url-help",children:"Make sure Anthea can open it. Publish your project or enable link sharing."})]}),e.jsxs("label",{className:"bs-field",htmlFor:"bonjour-description",children:[e.jsx("span",{className:"bs-label",children:"Tell us what you made"}),e.jsx("textarea",{className:"bs-input bs-description",id:"bonjour-description",name:"description",required:!0,minLength:10,maxLength:1500,value:r.description,onChange:s=>S("description",s.target.value),placeholder:"What does it do? Who is it for? What should we try?"}),e.jsxs("span",{className:"bs-counter",children:[r.description.length," / 1,500"]})]}),e.jsx("div",{className:"bs-honeypot","aria-hidden":"true",children:e.jsxs("label",{children:["Leave this empty",e.jsx("input",{name:"website",value:w,onChange:s=>k(s.target.value),tabIndex:-1,autoComplete:"off"})]})}),e.jsxs("button",{className:"bs-button",type:"submit",disabled:p,children:[p?"Saving your projectâ¦":"Submit my project",e.jsx(E,{size:16,"aria-hidden":"true"})]})]}),e.jsx("p",{className:"bs-privacy",children:"By submitting, your name, project URL, and description will appear publicly in the live submissions below."})]})})]}),e.jsx(D,{receiptId:n?.id})]})]})}export{re 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.