1import{j as e}from"./vendor-three-Bmn2g83e.js";import{r as a,H as h,L as i}from"./vendor-react-kRHgybFd.js";import{i as p}from"./main-D9e5nRIT.js";import{r as x,f as u,bg as b,U as g,a9 as f,d as j}from"./vendor-misc-DSUDoLcJ.js";const w={regional:"Regional",national:"National",international:"International",custom:"Custom"},d={regional:"bg-blue-500/20 text-blue-300 border-blue-500/30",national:"bg-purple-500/20 text-purple-300 border-purple-500/30",international:"bg-amber-500/20 text-amber-300 border-amber-500/30",custom:"bg-green-500/20 text-green-300 border-green-500/30"};function L(){const[t,s]=a.useState([]),[o,n]=a.useState(!0),[l,m]=a.useState("");a.useEffect(()=>{p.get("/api/schools/conferences").then(r=>s(r.data||[])).catch(()=>s([])).finally(()=>n(!1))},[]);const c=t.filter(r=>r.name.toLowerCase().includes(l.toLowerCase())||(r.region||"").toLowerCase().includes(l.toLowerCase()));return e.jsxs(e.Fragment,{children:[e.jsxs(h,{children:[e.jsx("title",{children:"School Conferences | ScholarNet AI"}),e.jsx("meta",{name:"description",content:"Explore academic conferences on ScholarNet AI â compete with schools in your region and rise to the top of the leaderboard."})]}),e.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-slate-900 via-purple-900/20 to-slate-900",children:[e.jsxs("div",{className:"relative overflow-hidden pt-16 pb-12 px-4",children:[e.jsxs("div",{className:"absolute inset-0 pointer-events-none",children:[e.jsx("div",{className:"absolute top-20 left-1/4 w-96 h-96 bg-purple-600/10 rounded-full blur-3xl"}),e.jsx("div",{className:"absolute bottom-0 right-1/4 w-64 h-64 bg-blue-600/10 rounded-full blur-3xl"})]}),e.jsxs("div",{className:"relative max-w-4xl mx-auto text-center",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 bg-purple-500/10 border border-purple-500/20 rounded-full px-4 py-1.5 text-purple-300 text-sm mb-6",children:[e.jsx(x,{className:"w-4 h-4"}),"Academic Conferences"]}),e.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-white mb-4",children:"Compete Within Your Conference"}),e.jsx("p",{className:"text-lg text-white/60 max-w-2xl mx-auto",children:"School
1conferences group institutions by region and affiliation so students can compete on a level playing field. Find your school's conference or browse them all."})]})]}),e.jsx("div",{className:"max-w-4xl mx-auto px-4 mb-8",children:e.jsxs("div",{className:"relative",children:[e.jsx(u,{className:"absolute left-4 top-1/2 -translate-y-1/2 w-5 h-5 text-white/60"}),e.jsx("input",{type:"text",placeholder:"Search by name or region...",value:l,onChange:r=>m(r.target.value),className:"w-full pl-12 pr-4 py-3 bg-slate-700/40 border border-white/25 rounded-xl text-white placeholder-white/50 focus:outline-none focus:border-purple-500/50 focus:bg-white/8 transition-all"})]})}),e.jsxs("div",{className:"max-w-4xl mx-auto px-4 pb-16",children:[o?e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx("div",{className:"animate-spin rounded-full h-10 w-10 border-b-2 border-purple-500"})}):c.length===0?e.jsxs("div",{className:"text-center py-20 text-white/60",children:[e.jsx(x,{className:"w-12 h-12 mx-auto mb-3 opacity-30"}),e.jsx("p",{className:"text-lg",children:l?"No conferences match your search.":"No conferences yet."}),!l&&e.jsx("p",{className:"text-sm mt-2",children:"Conferences will appear here once schools are grouped together."})]}):e.jsx("div",{className:"grid gap-4",children:c.map(r=>e.jsx(N,{conf:r},r.id))}),e.jsxs("div",{className:"mt-12 bg-gradient-to-r from-purple-500/10 to-blue-500/10 border border-purple-500/20 rounded-2xl p-8 text-center",children:[e.jsx("h2",{className:"text-xl font-bold text-white mb-2",children:"Is your school missing?"}),e.jsx("p",{className:"text-white/50 text-sm mb-4",children:"Register your school and join the competition â or reach out about starting a new conference."}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 justify-center",children:[e.jsx(i,{to:"/schools/register",className:"px-5 py-2.5 bg-purple-600 hover:bg-purple-500 text-white rounded-lg font-medium transition-colors text-sm",children:"Register Your School"}),e.jsx(i,{to:"/schools/partner",className:"px-5 py-2.5 bg-slate-700/40 hover:bg-slate-700/60 text-white/80 border border-white/25 rounded-lg font-medium transition-colors text-sm",children:"Become a Partner"})]})]})]})]})]})}function N({conf:t}){const s=t.Schools||t.schools||[],o=d[t.type]||d.custom,n=w[t.type]||t.type;return e.jsxs(i,{to:`/conferences/${t.slug}`,className:"group block bg-white/3 hover:bg-white/6 border border-white/8 hover:border-purple-500/30 rounded-2xl p-6 transition-all duration-200",children:[e.jsxs("div",{className:"flex items-start justify-between gap-4",children:[e.jsxs("div",{className:"flex items-start gap-4 min-w-0",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl flex-shrink-0 flex items-center justify-center text-white font-bold text-lg",style:{backgroundColor:t.colorPrimary?`${t.colorPrimary}33`:"#6d28d933",border:`1.5px solid ${t.colorPrimary||"#6d28d9"}55`},children:t.logoUrl?e.jsx("img",{src:t.logoUrl,alt:t.name,className:"w-8 h-8 object-contain"}):t.name.charAt(0).toUpperCase()}),e.jsxs("div",{className:"min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2 flex-wrap mb-1",children:[e.jsx("h2",{className:"text-lg font-bold text-white group-hover:text-purple-300 transition-colors",children:t.name}),e.jsx("span",{className:`text-xs px-2 py-0.5 rounded-full border font-medium ${o}`,children:n})]}),t.region&&e.jsxs("p",{className:"text-white/60 text-sm flex items-center gap-1 mb-2",children:[e.jsx(b,{className:"w-3 h-3"}),t.region]}),t.description&&e.jsx("p",{className:"text-white/50 text-sm line-clamp-2",children:t.description})]})]}),e.jsxs("div",{className:"flex-shrink-0 flex flex-col items-end gap-2",children:[e.jsxs("div",{className:"flex items-center gap-1.5 text-white/50 text-sm",children:[e.jsx(g,{className:"w-4 h-4"}),e.jsxs("span",{children:[s.length," school",s.length!==1?"s":""]})]}),e.jsx(f,{className:"w-5 h-5 text-white/50 group-hover:text-purple-400 transition-colors"})]})]}),s.length>0&&e.jsxs("div",{className:"mt-4 pt-4 border-t border-white/20 flex items-center gap-2 flex-wrap",children:[e.jsx(j,{className:"w-3.5 h-3.5 text-amber-400/60 flex-shrink-0"}),e.jsxs("div",{className:"flex gap-2 flex-wrap",children:[s.slice(0,5).map(l
1=>e.jsx("span",{className:"text-xs text-white/60 bg-slate-700/40 rounded-full px-2.5 py-0.5",children:l.name},l.id)),s.length>5&&e.jsxs("span",{className:"text-xs text-white/60",children:["+",s.length-5," more"]})]})]})]})}export{L 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.