1import{t as e}from"./jsx-runtime-DUAcabCT.js";import{t}from"./link-DIm7adAP.js";import{t as n}from"./useServerFn-DCFyXzlP.js";import{n as r,t as i}from"./BlogCover-BPvW7J7B.js";import{S as a,d as o,f as s}from"./index-oNYICs00.js";var c=e();function l(){let e=n(o),{data:l}=r(s(()=>e())),u=l.posts;return(0,c.jsx)(a,{children:(0,c.jsxs)(`section`,{className:`mx-auto max-w-6xl px-4 py-16 sm:px-6 md:py-20`,children:[(0,c.jsx)(`div`,{className:`text-xs font-semibold uppercase tracking-[0.18em] text-primary`,children:`Articles`}),(0,c.jsx)(`h1`,{className:`mt-3 text-4xl font-semibold tracking-tight text-foreground sm:text-5xl`,children:`Clinical writing from our practice`}),(0,c.jsx)(`p`,{className:`mt-4 max-w-2xl text-base text-muted-foreground`,children:` 2`}),u.length===0?(0,c.jsx)(`p`,{className:`mt-12 text-sm text-muted-foreground`,children:`No articles published yet.`}):(0,c.jsx)(`ul`,{className:`mt-12 grid gap-6 sm:grid-cols-2 lg:grid-cols-3`,children:u.map(e=>(0,c.jsx)(`li`,{className:`group overflow-hidden rounded-2xl border border-border bg-card transition hover:shadow-lg`,children:(0,c.jsxs)(t,{to:`/blog/$slug`,params:{slug:e.slug},className:`block h-full`,children:[(0,c.jsx)(i,{src:e.cover_url,alt:e.title,category:e.category,className:`aspect-[16/10] w-full object-cover transition group-hover:scale-[1.03]`}),(0,c.jsxs)(`div`,{className:`p-5`,children:[e.category&&(0,c.jsx)(`div`,{className:`text-[10px] font-semibold uppercase tracking-wider text-accent`,children:e.category}),(0,c.jsx)(`h2`,{className:`mt-1 text-lg font-semibold leading-snug text-foreground group-hover:text-primary`,children:e.title}),e.excerpt&&(0,c.jsx)(`p`,{className:`mt-2 line-clamp-3 text-sm text-muted-foreground`,children:e.excerpt}),e.published_at&&(0,c.jsx)(`div`,{className:`mt-3 text-xs text-muted-foreground`,children:new Date(e.published_at).toLocaleDateString(`en-GB`,{year:`numeric`,month:`short`,day:`2-digit`,timeZone:`UTC`})})]})]})},e.slug))})]})})}export{l 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.