1import{bn as d,bm as n,j as e,d as m,L as l,A as c}from"./index-BOoZFuWa.js";import{S as x}from"./site-footer-C9PU8gbo.js";import"./youtube-CAaGfYE2.js";import"./shield-check-D7xSLGV9.js";function f(){const{post:s}=d.useLoaderData(),a=n.filter(t=>t.slug!==s.slug).slice(0,2);return e.jsxs("div",{className:"min-h-screen bg-gradient-soft",children:[e.jsx(m,{}),e.jsxs("main",{className:"mx-auto max-w-2xl px-5 pt-8 pb-16",children:[e.jsxs(l,{to:"/blog",className:"inline-flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground",children:[e.jsx(c,{className:"size-4"})," All posts"]}),e.jsxs("article",{className:"mt-6",children:[e.jsx("span",{className:"text-[10px] font-semibold tracking-wide uppercase text-primary",children:s.tag}),e.jsx("h1",{className:"mt-2 font-display text-3xl sm:text-4xl font-semibold tracking-tight",children:s.title}),e.jsxs("p",{className:"mt-3 text-xs text-muted-foreground",children:[new Date(s.date).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}),"· ",s.readMinutes," min read · by the TBuddy team"]}),e.jsx("img",{src:s.heroImage,alt:s.heroAlt,width:1536,height:832,fetchPriority:"high",className:"mt-6 w-full aspect-[1200/630] object-cover rounded-3xl shadow-card border border-border/50"}),e.jsx("div",{className:"mt-8 space-y-5 text-[15px] leading-relaxed text-foreground/90",children:s.body.map((t,r)=>t.type==="h2"?e.jsx("h2",{className:"font-display text-xl font-semibold mt-8",children:t.text},r):t.type==="list"?e.jsx("ul",{className:"list-disc pl-5 space-y-2",children:t.items.map((i,o)=>e.jsx("li",{children:i},o))},r):t.type==="quote"?e.jsx("blockquote",{className:"border-l-4 border-primary/40 pl-4 italic text-muted-foreground",children:t.text},r):e.jsx("p",{children:t.text},r))})]}),a.length>0&&e.jsxs("section",{className:"mt-14",children:[e.jsx("h2",{className:"font-display text-lg font-semibold",children:"Keep reading"}),e.jsx("div",{className:"mt-4 grid sm:grid-cols-2 gap-4",children:a.map(t=>e.jsxs(l,{to:"/blog/$slug",params:{slug:t.slug},className:"bg-card rounded-2xl p-5 shadow-soft border border-border/60 hover:border-primary/40 transition",children:[e.jsx("img",{src:t.heroImage,alt:t.heroAlt,width:1536,height:832,loading:"lazy",className:"w-full aspect-[1200/630] object-cover rounded-xl mb-3"}),e.jsx("span",{className:"text-[10px] font-semibold tracking-wide uppercase text-primary",children:t.tag}),e.jsx("p",{className:"mt-2 font-display font-semibold",children:t.title}),e.jsx("p",{className:"mt-1 text-sm text-muted-foreground line-clamp-2",children:t.excerpt})]},t.slug))})]})]}),e.jsx(x,{})]})}export{f 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.