1import{r as d,j as e,L as l}from"./app-29MSDRAv.js";import{G as x}from"./GuestLayout-wEd1tfLg.js";import{A as c}from"./Underline-B7nxilzJ.js";import{U as m,C as u}from"./user-CQbuENFq.js";import"./index-Cq-KkRDB.js";const p=t=>t||"https://images.unsplash.com/photo-1531482615713-2afd69097998?q=80&w=2940&auto=format&fit=crop";function v({articles:t}){const[s,i]=d.useState("Semua"),o=["Semua",...new Set(t.data.map(a=>a.category))],r=s==="Semua"?t.data:t.data.filter(a=>a.category===s);return e.jsx(x,{children:e.jsxs("div",{className:"min-h-screen bg-white font-sans text-slate-900 pb-20",children:[e.jsx("header",{className:"pt-20 pb-12 px-4 border-b border-slate-100 bg-slate-50/50",children:e.jsxs("div",{className:"max-w-7xl mx-auto text-center",children:[e.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-slate-900 tracking-tight mb-4",children:"Indeks Berita Kampus"}),e.jsx("p",{className:"text-slate-500 max-w-2xl mx-auto text-lg",children:"Arsip lengkap informasi terkini seputar kegiatan akademik, kemahasiswaan, dan riset di Universitas Cendekia Abditama."})]})}),e.jsx("div",{className:"max-w-7xl mx-auto px-4 mt-16 mb-8 flex flex-wrap gap-4 text-sm font-medium border-b md:border-none pb-2 md:pb-0 overflow-x-auto",children:o.map(a=>e.jsx("button",{onClick:()=>i(a),className:`uppercase tracking-wider transition-colors duration-200 whitespace-nowrap ${s===a?"text-primary font-bold border-b-2 border-primary md:border-none":"text-slate-400 hover:text-slate-900"}`,children:a},a))}),e.jsxs("div",{className:"max-w-7xl mx-auto px-4",children:[r.length>0?e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:r.map(a=>e.jsxs(l,{href:`/news/${a.slug}`,className:"group flex flex-col h-full bg-white rounded-xl border border-slate-100 hover:shadow-xl hover:border-slate-200 transition-all duration-300 overflow-hidden",children:[e.jsxs("div",{className:"relative h-52 w-full overflow-hidden bg-slate-100",children:[e.jsx("img",{src:p(a.image),alt:a.title,className:"w-full h-full object-cover transition-transform duration-700 group-hover:scale-105"}),e.jsx("div",{className:"absolute top-4 left-4 bg-white/95 backdrop-blur shadow-sm px-3 py-1 rounded text-xs font-bold text-slate-700 border border-slate-200/50 flex items-center gap-1.5",children:a.category})]}),e.jsxs("div",{className:"flex-1 flex flex-col p-6",children:[e.jsx("h3",{className:"text-lg font-bold text-slate-900 leading-snug mb-3 flex-1",children:e.jsx(c,{title:a.title,className:"decoration-primary"})}),e.jsxs("div",{className:"mt-4 pt-4 border-t border-slate-100 flex items-center justify-between text-xs text-slate-500",children:[e.jsxs("span",{className:"flex items-center hover:text-slate-800 transition-colors",children:[e.jsx(m,{className:"w-3 h-3 mr-1.5"})," ",a.author]}),e.jsxs("span",{className:"flex items-center",children:[e.jsx(u,{className:"w-3 h-3 mr-1.5"})," ",a.date]})]})]})]},a.id))}):e.jsx("div",{className:"py-20 text-center text-slate-500 text-lg",children:"Tidak ada artikel di kategori ini."}),t.links.length>3&&e.jsx("div",{className:"mt-12 flex justify-center",children:e.jsx("nav",{className:"flex space-x-2","aria-label":"Pagination",children:t.links.map((a,n)=>e.jsx(l,{href:a.url||"#",dangerouslySetInnerHTML:{__html:a.label},className:`relative inline-flex items-center px-4 py-2 text-sm font-medium border border-gray-300 leading-5 rounded-md transition duration-150 ease-in-out 2 ${a.active?"bg-primary text-white border-primary":"bg-white text-gray-700 hover:text-gray-500 focus:outline-none focus:border-blue-300 focus:shadow-outline-blue active:bg-gray-100 active:text-gray-700"} 3 ${a.url?"":"opacity-50 cursor-not-allowed"} 4 `},n))})})]}),e.jsx("div",{className:"max-w-7xl mx-auto px-4 mt-24",children:e.jsxs("div",{className:"bg-slate-900 rounded-2xl p-12 text-center text-white overflow-hidden relative",children:[e.jsxs("div",{className:"relative z-10",children:[e.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Tidak menemu
4kan yang Anda cari?"}),e.jsx("p",{className:"text-slate-300 mb-8",children:"Coba gunakan fitur pencarian atau lihat arsip tahunan kami."}),e.jsxs("div",{className:"flex justify-center gap-4",children:[e.jsx("button",{className:"bg-primary hover:bg-primary/90 text-white px-6 py-3 rounded-full font-bold transition-colors",children:"Pencarian Lanjut"}),e.jsx("button",{className:"bg-transparent border border-slate-600 hover:bg-slate-800 text-white px-6 py-3 rounded-full font-bold transition-colors",children:"Arsip Tahunan"})]})]}),e.jsxs("div",{className:"absolute top-0 left-0 w-full h-full opacity-30 pointer-events-none",children:[e.jsx("div",{className:"absolute top-[-50%] left-[-10%] w-[500px] h-[500px] bg-primary rounded-full blur-3xl opacity-20"}),e.jsx("div",{className:"absolute bottom-[-50%] right-[-10%] w-[500px] h-[500px] bg-orange-600 rounded-full blur-3xl opacity-20"})]})]})})]})})}export{v 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.