module.exports=[93730,a=>{"use strict";var b=a.i(73356),c=a.i(44770),d=a.i(1244);function e(){let[a,e]=(0,c.useState)([]),[f,g]=(0,c.useState)(!0);return(0,c.useEffect)(()=>{fetch("https://api.hadith.gading.dev/books").then(a=>a.json()).then(a=>{e(a.data),g(!1)})},[]),(0,b.jsxs)("main",{className:"min-h-screen bg-background pb-20 px-6 transition-colors duration-500 font-sans",children:[(0,b.jsxs)("nav",{className:"py-8 flex items-center gap-4",children:[(0,b.jsx)(d.default,{href:"/",className:"w-10 h-10 rounded-full bg-purple-500/10 flex items-center justify-center text-purple-600 dark:text-purple-400 hover:scale-110 transition-transform",children:(0,b.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:(0,b.jsx)("path",{d:"m15 18-6-6 6-6"})})}),(0,b.jsx)("h1",{className:"text-2xl font-black text-slate-800 dark:text-white tracking-tighter uppercase",children:"Kitab Hadits"})]}),(0,b.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:f?[1,2,3,4,5,6].map(a=>(0,b.jsx)("div",{className:"h-24 bg-slate-100 dark:bg-slate-800/50 animate-pulse rounded-[2rem]"},a)):a.map(a=>(0,b.jsxs)(d.default,{href:`/hadist/${a.id}`,className:"group p-6 bg-card rounded-[2.5rem] border border-purple-500/5 hover:border-purple-500/20 shadow-sm flex items-center justify-between transition-all active:scale-95",children:[(0,b.jsxs)("div",{className:"flex items-center gap-5",children:[(0,b.jsx)("div",{className:"w-12 h-12 bg-purple-500/10 text-purple-600 dark:text-purple-400 rounded-2xl flex items-center justify-center font-black text-sm group-hover:rotate-6 transition-transform",children:a.id.charAt(0).toUpperCase()}),(0,b.jsxs)("div",{children:[(0,b.jsx)("h2",{className:"font-black text-slate-800 dark:text-slate-100 uppercase tracking-tight leading-none mb-1",children:a.name}),(0,b.jsxs)("p",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-widest",children:[a.available," Hadits"]})]})]}),(0,b.jsx)("div",{className:"w-8 h-8 rounded-full bg-slate-100 dark:bg-slate-800 flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity",children:(0,b.jsx)("span",{className:"text-purple-500",children:"→"})})]},a.id))})]})}a.s(["default",()=>e])}];

//# sourceMappingURL=my-quran-app_app_hadist_page_tsx_14709f1c._.js.map