PageSourceSearch

https://www.worldspaceweek.org/assets/Coordinators-CucIKkGb.js

js worldspaceweek.org collected 2026-10-02 03:27:01 UTC 10,672 bytes, 1 lines download raw bytes

1import{aq as N,ar as W,r as c,j as e,G as h,U as p,m as j,L as F,d as A,J as E}from"./index-I0VlBWiI.js";import{N as R,F as z}from"./Footer-C0gkdNSg.js";import{P as M}from"./ParticlesBackground-CS2kkP3s.js";import{S as _}from"./search-DYCEvdYH.js";import"./index-D9iIC5Ax.js";import"./chevron-up-BzoisNU0.js";N.registerLocale(W);const U={turkiye:"Turkey","korea, republic of":"South Korea","syrian arab republic":"Syria","hong kong, china":"Hong Kong",macedonia:"North Macedonia",russia:"Russian Federation",reunion:"Reunion"},$=a=>{const l=a.trim(),u=U[l.toLowerCase()]||l,d=N.getAlpha2Code(u,"en");return(d==null?void 0:d.toUpperCase())||""},I={kosovo:"/assets/Flag_of_Kosovo.svg",syria:"/assets/Flag-Syria.webp","syrian arab republic":"/assets/Flag-Syria.webp",congo:"/assets/Flag-Republic-of-the-Congo.webp","republic of the congo":"/assets/Flag-Republic-of-the-Congo.webp","congo (congo-brazzaville)":"/assets/Flag-Republic-of-the-Congo.webp","congo-brazzaville":"/assets/Flag-Republic-of-the-Congo.webp"},O=a=>{const l=I[a.trim().toLowerCase()];if(l)return l;const i=$(a);return i?`https://flagsapi.com/${i}/flat/64.png`:""},K=()=>{const[a,l]=c.useState(0),[i,u]=c.useState(""),[d,v]=c.useState([]),[g,f]=c.useState(!0);c.useEffect(()=>{const t=()=>{l(window.scrollY)};return window.addEventListener("scroll",t,{passive:!0}),()=>window.removeEventListener("scroll",t)},[]),c.useEffect(()=>{(async()=>{var n;const o="https://d1tw4i991fao8q.cloudfront.net";f(!0);try{let x=1,m=1;const w=[];do{const S=`${o}/get-all-coordinators?page=${x}&limit=100&sortBy=country&sortOrder=asc`,y=await fetch(S),s=await y.json();if(!y.ok)throw new Error((s==null?void 0:s.message)||"Failed to fetch coordinators");const L=Array.isArray(s==null?void 0:s.coordinators)?s.coordinators:[];w.push(...L),m=Number(((n=s==null?void 0:s.pagination)==null?void 0:n.totalPages)||1),x+=1}while(x<=m);v(w)}catch(r){console.error("Error loading coordinators:",r),E.error((r==null?void 0:r.message)||"Could not load coordinators")}finally{f(!1)}})()},[]);const k=a*.3,C=Math.max(0,1-a*.001),b=c.useMemo(()=>{const t=i.trim().toLowerCase(),o=new Map;return d.forEach(n=>{const r=(n.country||"").trim();if(!r)return;const x=r.toLowerCase(),m=o.get(x);m?m.count+=1:o.set(x,{country:r,count:1})}),Array.from(o.values()).filter(n=>n.country.toLowerCase().includes(t)).sort((n,r)=>n.country.localeCompare(r.country))},[d,i]);return e.jsxs("div",{className:"min-h-screen bg-ink-800",children:[e.jsx(R,{}),e.jsxs("section",{className:"relative py-32 bg-gradient-to-br from-ink-800 via-ink-900 to-ink-950 overflow-hidden",children:[e.jsxs("div",{className:"absolute inset-0",children:[e.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-ink-800 via-ink-900 to-ink-950",style:{transform:`translateY(${k}px)`}}),e.jsx(M,{scrollY:a,count:200}),e.jsx("div",{className:"absolute top-20 left-10 w-32 h-32 bg-brand/10 rounded-full blur-xl animate-pulse"}),e.jsx("div",{className:"absolute bottom-32 right-20 w-40 h-40 bg-brand-dark/10 rounded-full blur-2xl animate-pulse delay-1000"})]}),e.jsxs("div",{className:"relative z-10 max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center",style:{opacity:C,transform:`translateY(${a*.1}px)`},children:[e.jsxs("div",{className:"inline-flex items-center gap-3 bg-ink-900 border border-brand/30 rounded-full px-6 py-3 mb-8 hover:border-brand/50 transition-colors duration-500 group",children:[e.jsx(h,{className:"w-5 h-5 text-brand group-hover:rotate-12 transition-transform duration-500"}),e.jsx("span",{className:"text-white text-lg font-medium",children:"WSW Coordinators"}),e.jsx(p,{className:"w-5 h-5 text-brand group-hover:-rotate-12 transition-transform duration-500"})]}),e.jsx("h1",{className:"text-4xl sm:text-5xl md:text-6xl lg:text-7xl font-bold text-white mb-8 leading-tight",children:e.jsx("span",{className:"block text-brand",children:"WSW Coordinators"})}),e.jsx("p",{className:"text-lg sm:text-xl md:text-2xl text-gray-300 max-w-4xl mx-auto leading-relaxed",children:"Select a country to view all National, and WSW coordinators."})]})]}),e.jsx("section",{className:"py-16 bg-white",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center mb-10",children:[e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-gray-900 mb-4",children:"Explore World Space Week Around the World"}),e.jsx("div",{className:"w-16 h-1 bg-gradient-to-r from-brand to-brand-dark mx-auto"})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-5 mb-8",children:[e.jsxs("div",{className:"flex items-start gap-4 p-6 rounded-2xl border border-gray-100 shadow-sm hover:border-brand/20 transition-colors",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-brand flex items-center justify-center shrink-0",children:e.jsx(p,{className:"w-5 h-5 text-white"})}),e.jsx("p",{className:"text-gray-600 text-sm sm:text-base leading-relaxed",children:"Connect with World Space Week Coordinators who help bring celebrations to life in their communities. These volunteers make it easier for you to take part and share space with others."})]}),e.jsxs("div",{className:"flex items-start gap-4 p-6 rounded-2xl border border-gray-100 shadow-sm hover:border-brand/20 transition-colors",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-brand flex items-center justify-center shrink-0",children:e.jsx(h,{className:"w-5 h-5 text-white"})}),e.jsx("p",{className:"text-gray-600 text-sm sm:text-base leading-relaxed",children:"Select your region to see who coordinates there and reach out to learn how you can organize your own World Space Week activities."})]})]}),e.jsxs("div",{className:"flex items-start gap-3 bg-brand/5 border border-brand/15 rounded-xl px-5 py-4",children:[e.jsx(j,{className:"w-4 h-4 text-brand shrink-0 mt-0.5"}),e.jsx("p",{className:"text-gray-500 text-xs sm:text-sm leading-relaxed",children:"Flags and region names are used for geographical reference only. World Space Week Association is a non-political organization and does not engage in or endorse any policy or political position."})]})]})}),e.jsx("section",{className:"py-8 bg-white border-t border-gray-100",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsx("div",{className:"max-w-2xl mx-auto",children:e.jsxs("div",{className:"relative",children:[e.jsx(_,{className:"absolute left-4 top-1/2 transform -translate-y-1/2 text-gray-800 w-5 h-5"}),e.jsx("input",{type:"text",placeholder:"Search by country...",value:i,onChange:t=>u(t.target.value),className:"w-full pl-12 pr-4 py-4 border border-gray-800 rounded-xl focus:outline-none focus:ring-2 focus:ring-brand focus:border-transparent text-lg bg-white text-gray-900 placeholder:text-gray-400"})]})})})}),e.jsx("section",{className:"py-24 bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[g&&e.jsx("p",{className:"text-center text-gray-600 text-lg",children:"Loading countries..."}),!g&&b.length===0&&e.jsx("p",{className:"text-center text-gray-600 text-lg",children:"No coordinator countries found."}),!g&&b.length>0&&e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-6",children:b.map(t=>{const o=O(t.country);return e.jsxs(F,{to:`/about-wsw/coordinators/${encodeURIComponent(t.country)}`,className:"bg-white rounded-2xl p-6 hover:border-brand/40 transition-colors duration-300 group border border-gray-100 flex items-center gap-4",children:[e.jsx("div",{className:"w-16 h-16 rounded-full bg-gray-100 flex items-center justify-center overflow-hidden",children:o?e.jsx("img",{src:o,alt:`${t.country} flag`,loading:"lazy",decoding:"async",className:"w-full h-full object-cover rounded-full group-hover:scale-110 transition-transform duration-300"}):e.jsx(h,{className:"w-7 h-7 text-gray-500"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-bold text-brand-dark leading-tight",children:A(t.country)}),e.jsxs("p",{className:"text-sm text-gray-600",children:[t.count," coordinator",t.count>1?"s":""]})]})]},t.country.toLowerCase())})})]})}),e.jsxs("section",{className:"py-24 bg-gradient-to-b from-ink-950 to-ink-900 relative",children:[e.jsxs("div",{className:"absolute inset-0 overflow-hidden",children:[e.jsx("div",{className:"absolute top-10 left-10 w-64 h-64 bg-brand/5 rounded-full blur-3xl"}),e.jsx("div",{className:"absolute bottom-10 right-10 w-80 h-80 bg-brand-dark/5 rounded-full blur-3xl"})]}),e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center relative z-10",children:[e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-white mb-8",children:"Become a National Coordinator"}),e.jsx("p",{className:"text-xl text-gray-300 mb-12 max-w-3xl mx-auto leading-relaxed",children:"Join our global network of space education advocates and help organize World Space Week events in your country."}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 mb-12",children:[e.jsxs("div",{className:"bg-ink-900 border border-brand/20 rounded-2xl p-6",children:[e.jsx("div",{className:"bg-brand w-12 h-12 rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx(p,{className:"w-6 h-6 text-white"})}),e.jsx("h3",{className:"text-xl font-bold text-white mb-3",children:"Lead Events"}),e.jsx("p",{className:"text-gray-300",children:"Coordinate and promote World Space Week activities in your country"})]}),e.jsxs("div",{className:"bg-ink-900 border border-brand-dark/20 rounded-2xl p-6",children:[e.jsx("div",{className:"bg-brand-dark w-12 h-12 rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx(h,{className:"w-6 h-6 text-white"})}),e.jsx("h3",{className:"text-xl font-bold text-white mb-3",children:"Global Network"}),e.jsx("p",{className:"text-gray-300",children:"Connect with coordinators worldwide and share best practices"})]}),e.jsxs("div",{className:"bg-ink-900 border border-brand/20 rounded-2xl p-6",children:[e.jsx("div",{className:"bg-brand w-12 h-12 rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx(j,{className:"w-6 h-6 text-white"})}),e.jsx("h3",{className:"text-xl font-bold text-white mb-3",children:"Local Impact"}),e.jsx("p",{className:"text-gray-300",children:"Make a difference in space education within your community"})]})]}),e.jsx("a",{href:"https://docs.google.com/forms/d/e/1FAIpQLSehdT9uTIpavOMGJ_25_PRhJMGZUCXjkfNk00ZfgbzxZRwktQ/viewform",target:"_blank",rel:"noopener noreferrer",className:"bg-brand hover:bg-brand-dark text-white px-8 py-4 rounded-xl font-semibold text-lg transition-colors duration-300 inline-block",children:"Apply to Become a Coordinator"})]})]}),e.jsx(z,{})]})};export{K 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.