1import{m as o,j as e,L as t}from"./main-Bo0oayNO.js";import{f as n}from"./index-ThM9GGfP.js";import"./country-visa-Cppajoww.js";import{P as l,C as d}from"./PageLayout-BjI6KKxV.js";import"./Header-Ba4WgGVg.js";import"./HomepageSections-4WnTbsUT.js";function j(){const{archives:r,siteTitle:m,totalPosts:i}=o.useLoaderData();return e.jsx(l,{siteTitle:m,children:e.jsxs(d,{size:"narrow",className:"py-12",children:[e.jsxs("div",{className:"mb-8",children:[e.jsx("h1",{className:"text-3xl font-bold text-foreground mb-2 font-heading",children:"Archive"}),e.jsxs("p",{className:"text-foreground-muted",children:[i," posts published"]})]}),r.length===0?e.jsx("div",{className:"text-center py-12",children:e.jsx("p",{className:"text-foreground-muted",children:"No posts yet. Check back later!"})}):e.jsx("div",{className:"space-y-8",children:r.map(a=>e.jsxs("div",{className:"bg-background rounded-theme shadow-xs border border-border p-6",children:[e.jsxs("h2",{className:"text-xl font-semibold text-foreground mb-4 flex items-center font-heading",children:[e.jsx("span",{className:"bg-primary/10 text-primary px-3 py-1 rounded-full text-sm font-medium mr-3",children:a.posts.length}),a.monthName," ",a.year]}),e.jsx("ul",{className:"space-y-3",children:a.posts.map(s=>e.jsxs("li",{className:"flex items-start",children:[e.jsx("time",{dateTime:s.publishedAt.toISOString(),className:"text-sm text-foreground-muted w-20 flex-shrink-0",children:n(s.publishedAt).split(",")[0]}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx(t,{to:"/posts/$slug",params:{slug:s.slug},className:"text-foreground hover:text-primary font-medium truncate block",children:s.title}),e.jsxs("span",{className:"text-sm text-foreground-muted",children:["by"," ",s.author?.username?e.jsx(t,{to:"/author/$username",params:{username:s.author.username},search:{page:void 0},className:"hover:text-primary",children:s.author.displayName||s.author.username}):"Anonymous"]})]})]},s.id))})]},`${a.year}-${a.month}`))}),e.jsx("div",{className:"mt-8",children:e.jsx(t,{to:"/posts",search:{page:void 0,category:void 0,tag:void 0,q:void 0},className:"text-primary hover:text-primary-dark font-medium",children:"â Back to Blog"})})]})})}export{j as component};
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.