PageSourceSearch

https://exampadi-y8f4m.ondigitalocean.app/assets/PastQuestionsHubPage-DoN9a6hz.js

js exampadi-y8f4m.ondigitalocean.app collected 2026-10-03 14:54:32 UTC 7,424 bytes, 6 lines download raw bytes

1import{e as c,j as e,L as l}from"./vendor-react-C-tLJ3C8.js";import{S as f}from"./SEO-DTTO5-fm.js";import{f as j}from"./seo-content-G3STtHJT.js";import{v as N}from"./index-DxoJEjRy.js";import{E as w,e as v}from"./post-utme-CpIJevsb.js";import{u as k}from"./useUniversities-CsHVJIgG.js";import{u as C}from"./useSchoolYearCounts-D4HQG0eY.js";import{r as h}from"./signupPath-evhz0W2Z.js";import{A as n}from"./arrow-right-D85AVfJC.js";import{S as P}from"./search-D_r0mNgO.js";import{G as S}from"./graduation-cap-8KoonlOE.js";import{M as E}from"./map-pin-CdH_1JiY.js";import{F as q}from"./file-text-BMGyW4Qn.js";import"./seo-config-CnV22GPJ.js";import"./vendor-query-4BWL3uTy.js";import"./vendor-motion-Dx4K3zup.js";/**
2 * @license lucide-react v0.378.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const L=N("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);function K(){const g=j(),{data:s,isLoading:d,isError:x}=k(),[m,u]=c.useState(""),[o,y]=c.useState("all"),p=c.useMemo(()=>{const r=s??[],a=m.trim().toLowerCase();return r.filter(t=>o==="all"||t.type===o).filter(t=>{var i;return!a||t.name.toLowerCase().includes(a)||(((i=t.state)==null?void 0:i.toLowerCase().includes(a))??!1)}).slice().sort((t,i)=>(i.questionCount??0)-(t.questionCount??0)||t.name.localeCompare(i.name))},[s,m,o]),b=(s??[]).filter(r=>(r.questionCount??0)>0).length;return e.jsxs("div",{className:"min-h-screen bg-gray-50 dark:bg-dark-bg",children:[e.jsx(f,{meta:g}),e.jsx("div",{className:"max-w-5xl mx-auto px-6 pt-8",children:e.jsxs("nav",{className:"text-xs text-gray-500","aria-label":"Breadcrumb",children:[e.jsx(l,{to:"/",className:"hover:underline",children:"Home"}),e.jsx("span",{className:"mx-2",children:"/"}),e.jsx("span",{className:"text-gray-700 dark:text-gray-300 font-medium",children:"Post-UTME Past Questions"})]})}),e.jsxs("header",{className:"max-w-5xl mx-auto px-6 pt-6 pb-10",children:[e.jsx("h1",{className:"text-4xl sm:text-5xl font-extrabold text-gray-900 dark:text-white leading-tight",children:"Post-UTME practice, by university"}),e.jsxs("p",{className:"mt-4 text-lg text-gray-600 dark:text-gray-400 max-w-3xl",children:["Browse every NUC-recognised university in Nigeria, then pick faculty, department, and level. The first paper type is Post-UTME. Schools with no questions yet stay listed — ",w,' — not a site-wide "still building" card.']}),e.jsx("div",{className:"mt-8 flex flex-wrap gap-3",children:e.jsxs(l,{to:h({path:"secondary"}),className:"inline-flex items-center gap-2 px-6 py-3 bg-primary-700 hover:bg-primary-800 text-white rounded-xl font-semibold",children:["Create a free account",e.jsx(n,{className:"w-4 h-4"})]})})]}),e.jsxs("section",{className:"max-w-5xl mx-auto px-6 pb-16",children:[d&&e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4","aria-busy":"true","aria-label":"Loading universities",children:Array.from({length:6}).map((r,a)=>e.jsxs("div",{className:"p-5 bg-white dark:bg-dark-surface border border-gray-200 dark:border-gray-800 rounded-xl animate-pulse",children:[e.jsx("div",{className:"h-4 w-2/3 bg-gray-200 dark:bg-gray-700 rounded"}),e.jsx("div",{className:"mt-3 h-3 w-1/3 bg-gray-200 dark:bg-gray-700 rounded"})]},a))}),!d&&x&&e.jsxs("div",{className:"p-6 bg-white dark:bg-dark-surface border border-gray-200 dark:border-gray-800 rounded-xl text-center",children:[e.jsx("p",{className:"text-gray-700 dark:text-gray-300 font-medium",children:"We couldn't load the university list just now."}),e.jsxs(l,{to:h({path:"secondary"}),className:"mt-4 inline-flex items-center gap-2 px-5 py-2.5 bg-primary-700 hover:bg-primary-800 text-white rounded-xl font-semibold text-sm",children:["Create a free account",e.jsx(n,{className:"w-4 h-4"})]})]}),!d&&!x&&((s==null?void 0:s.length)??0)>0&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"mb-6 flex flex-col sm:flex-row gap-3 sm:items-center sm:justify-between",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 dark:text-white",children:"Pick your university"}),e.jsxs("p",{className:"text-sm text-gray-500",children:[(s??[]).length," schools · ",b," with practice items"]})]}),e.jsxs("div",{className:"mb-6 flex flex-col sm:flex-row gap-3",children:[e.jsxs("div",{className:"relative flex-1",children:[e.jsx(P,{className:"pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-gray-400"}),e.jsx("input",{type:"search",value:m,onChange:r=>u(r.target.value),placeholder:"Search by university or state",className:"w-full rounded-xl border border-gray-200 dark:border-gray-800 bg-white dark:bg-dark-surface py-2.5 pl-10 pr-3 text-sm"})]}),e.jsx("div",{className:"flex flex-wrap gap-2",children:["all","federal","state","private"].map(r=>e.jsx("button",{type:"button",onClick:()=>y(r),className:`rounded-full border px-3 py-1.5 text-xs font-medium ${o===r?"border-primary-700 bg-primary-700 text-white":"border-gray-300 bg-white text-gray-600 dark:border-gray-700 dark:bg-dark-surface"}`,children:r==="all"?"All":r.charAt(0).toUpperCase()+r.slice(1)},r))})]}),p.length===0?e.jsx("p",{className:"text-sm text-gray-500",children:"No universities matched that search."}):e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:p.map(r=>{const a=r.questionCount??0;return e.jsxs(l,{to:`/past-questions/${r.slug}`,className:"group p-5 bg-white dark:bg-dark-surface border border-gray-200 dark:border-gray-800 rounded-xl hover:border-primary-400 hover:shadow-sm transition",children:[e.jsxs("div",{className:"flex items-start justify-between gap-2",children:[e.jsx("h3",{className:"font-semibold text-gray-900 dark:text-white group-hover:text-primary-700",children:r.name}),e.jsx(n,{className:"w-4 h-4 shrink-0 mt-1 text-gray-300 group-hover:text-primary-700"})]}),e.jsxs("div",{className:"mt-2 flex flex-wrap items-center gap-x-3 gap-y-1 text-xs text-gray-500",children:[e.jsxs("span",{className:"inline-flex items-center gap-1",children:[e.jsx(S,{className:"w-3.5 h-3.5"}),C(r.type)]}),r.state&&e.jsxs("span",{className:"inline-flex items-center gap-1",children:[e.jsx(E,{className:"w-3.5 h-3.5"}),r.state]})]}),e.jsxs("p",{className:"mt-3 text-xs text-gray-500 inline-flex items-center gap-1",children:[e.jsx(q,{className:"w-3.5 h-3.5 text-primary-700"}),v(a)]})]},r.id)})})]})]}),e.jsx("section",{className:"max-w-3xl mx-auto px-6 pb-20",children:e.jsxs("div",{className:"p-5 bg-primary-50 dark:bg-primary-900/20 border border-primary-200 dark:border-primary-800/40 rounded-xl flex items-start gap-4",children:[e.jsx(L,{className:"w-5 h-5 text-primary-700 shrink-0 mt-0.5"}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-lg font-bold text-gray-900 dark:text-white",children:"Don't see questions for your school?"}),e.jsx("p",{className:"mt-2 text-gray-600 dark:text-gray-400 leading-relaxed",children:"Sign in and submit the Post-UTME questions you remember. Every item is reviewed, and approved one
6s earn a reward. Seeded items are marked as ExamPadi practice items."}),e.jsxs(l,{to:"/app/post-utme/submit",className:"mt-3 inline-flex items-center gap-2 text-sm font-semibold text-primary-700 hover:underline",children:["Submit a past question",e.jsx(n,{className:"w-3.5 h-3.5"})]})]})]})})]})}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.