1import{j as s,c as x,u as h,a as u,S as g,N as p,L as d,f as c}from"./index-Be_2bHJP.js";import{F as j}from"./Footer-DydoStv_.js";import{u as f,o as r}from"./img-DQxsAtEf.js";import"./useQuery-v4v3CGWS.js";function e({className:t,...o}){return s.jsx("div",{className:x("animate-pulse rounded-md bg-muted",t),...o})}const y=()=>{const{t}=h(),o=u(),{articles:l,isLoading:i}=f(),n=i||l.length===0;return s.jsxs("div",{className:"min-h-screen",children:[s.jsx(g,{title:t("seo.blog.title"),description:t("seo.blog.description"),path:"/blog"}),s.jsx(p,{}),s.jsxs("section",{className:"relative pt-32 pb-24 overflow-hidden",children:[s.jsxs("div",{className:"pointer-events-none absolute inset-0 -z-10",children:[s.jsx("div",{className:"absolute top-40 left-1/4 h-[400px] w-[400px] rounded-full bg-accent/4 blur-[100px]"}),s.jsx("div",{className:"absolute bottom-20 right-1/3 h-[300px] w-[300px] rounded-full bg-primary/3 blur-[100px]"})]}),s.jsxs("div",{className:"container mx-auto px-6",children:[s.jsxs("div",{className:"text-center mb-16",children:[s.jsx("p",{className:"text-sm font-semibold uppercase tracking-widest text-accent mb-3",children:t("blog.badge")}),s.jsx("h1",{className:"font-display text-4xl font-bold sm:text-5xl",children:t("blog.title")}),s.jsx("p",{className:"mt-4 text-muted-foreground max-w-2xl mx-auto",children:t("blog.subtitle")})]}),n?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"glass-card rounded-2xl overflow-hidden max-w-5xl mx-auto mb-12",children:s.jsxs("div",{className:"grid md:grid-cols-2",children:[s.jsx(e,{className:"aspect-[4/3] md:aspect-auto md:h-full w-full rounded-none"}),s.jsxs("div",{className:"p-8 flex flex-col justify-center gap-3",children:[s.jsx(e,{className:"h-3 w-24"}),s.jsx(e,{className:"h-7 w-3/4"}),s.jsx(e,{className:"h-7 w-1/2"}),s.jsx(e,{className:"h-4 w-full mt-2"}),s.jsx(e,{className:"h-4 w-5/6"}),s.jsx(e,{className:"h-4 w-4/6"})]})]})}),s.jsx("div",{className:"grid gap-6 sm:grid-cols-2 lg:grid-cols-3 max-w-5xl mx-auto",children:Array.from({length:6}).map((a,m)=>s.jsxs("div",{className:"glass-card rounded-2xl overflow-hidden",children:[s.jsx(e,{className:"aspect-[4/3] w-full rounded-none"}),s.jsxs("div",{className:"p-6 space-y-3",children:[s.jsx(e,{className:"h-3 w-20"}),s.jsx(e,{className:"h-5 w-5/6"}),s.jsx(e,{className:"h-4 w-full"}),s.jsx(e,{className:"h-4 w-4/6"})]})]},m))})]}):s.jsxs(s.Fragment,{children:[s.jsx(d,{to:o(`/blog/${l[0].slug}`),className:"glass-card group block rounded-2xl overflow-hidden max-w-5xl mx-auto mb-12",children:s.jsxs("div",{className:"grid md:grid-cols-2",children:[s.jsx("div",{className:"aspect-[4/3] md:aspect-auto overflow-hidden",children:s.jsx("img",{src:r(l[0].image,900),alt:l[0].title,width:900,height:675,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500",decoding:"async"})}),s.jsxs("div",{className:"p-8 flex flex-col justify-center",children:[s.jsx("span",{className:"text-xs text-muted-foreground mb-3 block",children:c(l[0].date)}),s.jsx("h2",{className:"font-display text-2xl font-bold mb-3 group-hover:text-accent transition-colors",children:l[0].title}),s.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:l[0].excerpt})]})]})}),s.jsx("div",{className:"grid gap-6 sm:grid-cols-2 lg:grid-cols-3 max-w-5xl mx-auto",children:l.slice(1).map(a=>s.jsxs(d,{to:o(`/blog/${a.slug}`),className:"glass-card group rounded-2xl overflow-hidden",children:[s.jsx("div",{className:"aspect-[4/3] overflow-hidden",children:s.jsx("img",{src:r(a.image,600),alt:a.title,width:600,height:450,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500",loading:"lazy",decoding:"async"})}),s.jsxs("div",{className:"p-6",children:[s.jsx("span",{className:"text-xs text-muted-foreground mb-3 block",children:c(a.date)}),s.jsx("h3",{className:"font-display text-lg font-bold mb-2 group-hover:text-accent transition-colors line-clamp-2",children:a.title}),s.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed line-clamp-3",children:a.excerpt})]})]},a.slug))})]})]})]}),s.jsx(j,{})]})};export{y 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.