1import{u,z as e,j as p,A as v,G as q,J as j,P as f,H as N,b as g,c as b,F as w}from"./index-Cz62Kmkt.js";import{b as l}from"./index-D86wIIKL.js";function P({post:a,featured:i=!1}){const s=u(a);return e.jsxs("article",{className:`relative overflow-hidden rounded-lg border p-6 transition duration-200 hover:border-qa-accent/50 hover:bg-qa-card-hover sm:p-7 ${i?"border-qa-accent/45 bg-qa-card shadow-2xl shadow-black/20":"border-qa-border bg-qa-card/70"}`,children:[i?e.jsx("div",{className:"absolute inset-x-0 top-0 h-1 bg-qa-accent","aria-hidden":"true"}):null,e.jsx("img",{src:s.src,srcSet:`${s.mobileSrc} 768w, ${s.src} 1672w`,sizes:p,width:"1672",height:"941",loading:"lazy",decoding:"async",alt:`Interface do QA Vault relacionada ao artigo: ${a.title}`,className:"mb-6 aspect-video w-full rounded-lg border border-qa-border object-cover"}),e.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-2 text-xs font-medium text-qa-subtle",children:[e.jsx("span",{className:"text-qa-accent",children:a.category}),e.jsx("span",{"aria-hidden":"true",children:"/"}),e.jsx("span",{children:a.author}),e.jsx("span",{"aria-hidden":"true",children:"/"}),e.jsx("time",{dateTime:a.publishedAt,children:a.publishedAt}),e.jsx("span",{"aria-hidden":"true",children:"/"}),e.jsx("span",{children:a.readingTime})]}),e.jsx("h2",{className:"mt-5 text-2xl font-semibold leading-tight text-qa-text",children:a.title}),e.jsx("p",{className:"mt-4 max-w-3xl text-base leading-7 text-qa-muted",children:a.description}),e.jsxs("a",{href:`/blog/${a.slug}`,className:"mt-6 inline-flex items-center gap-2 text-sm font-semibold text-qa-accent transition hover:text-qa-text",children:["Ler artigo",e.jsx(v,{className:"h-4 w-4","aria-hidden":"true"})]})]})}const h=5;function c(a){return a===1?"/blog":`/blog?pagina=${a}`}function $({initialPage:a}={}){const i=a??Number.parseInt(new URLSearchParams(window.location.search).get("pagina")??"1",10),s=Math.max(1,Math.ceil(l.length/h)),r=Number.isFinite(i)?Math.min(Math.max(i,1),s):1,o=(r-1)*h,x=l.slice(o,o+h),m=c(r);return q.useEffect(()=>{const t=f,n=r===1?"Blog QA Vault | Evidências de teste e validação de sistemas":`Blog QA Vault â Página ${r} de ${s}`;j(n,"Conteúdos práticos sobre evidências de teste, validação de sistemas, registro de problemas e organização de prints, vÃdeos e arquivos.",{canonicalPath:m,jsonLd:{"@context":"https://schema.org","@type":"Blog",name:"Blog QA Vault",url:`${t}${m}`,description:"Conteúdos práticos sobre evidências de teste, validação de sistemas, registro de problemas e organização de prints, vÃdeos e arquivos.",publisher:{"@type":"Organization",name:"QA Vault",url:t,logo:`${t}/logo.png`},blogPost:x.map(d=>({"@type":"BlogPosting",headline:d.title,url:`${t}/blog/${d.slug}`,datePublished:d.publishedAt,author:{"@type":"Organization",name:d.author}}))}})},[m,r,s]),e.jsxs("div",{className:"min-h-screen overflow-hidden bg-background text-foreground",children:[e.jsx(N,{}),e.jsxs("main",{className:"pt-16",children:[e.jsxs("section",{className:"relative border-b border-qa-border px-4 py-12 sm:px-6 sm:py-16 lg:px-8",children:[e.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(180deg,rgba(56,189,248,0.08),rgba(31,35,40,0)_62%)]"}),e.jsxs("div",{className:"relative mx-auto max-w-4xl",children:[e.jsx("h1",{className:"mt-5 max-w-3xl text-3xl font-semibold leading-tight text-qa-text sm:text-5xl",children:"Blog QA Vault"}),e.jsx("p",{className:"mt-6 max-w-3xl text-lg leading-8 text-qa-muted",children:"Conteúdos práticos sobre evidências, validações, registro de problemas e organização de arquivos durante testes de sistemas."}),e.jsx("div",{className:"mt-8 flex flex-wrap gap-3 text-sm text-qa-muted",children:e.jsxs("span",{className:"rounded-lg border border-qa-border bg-qa-card/80 px-3 py-2",children:[l.length," artigos publicados"]})})]})]}),e.jsx("section",{className:"bg-qa-surface/25 px-4 pb-12 pt-8 sm:px-6 sm:pb-16 lg:px-8",children:e.jsxs("div",{className:"mx-auto max-w-4xl",children:[e.jsx("div",{className:"mb-5 flex items-center justify-between gap-4",children:e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-semibold text-qa-text",children:"Artigos recentes"}),e.jsxs("p",{className:"mt-1 text-sm text-qa-subtle",children:["Exibindo ",o+1,"â",o+x.length," de ",l.length," artigos."]})]})}),e.jsx("div",{className:"space-y-6",children:x.map((t,n)=>e.jsx(P,{post:t,featured:r===1&&n===0},t.slug))}),s>
11?e.jsxs("nav",{className:"mt-10 flex flex-wrap items-center justify-center gap-2","aria-label":"Paginação dos artigos",children:[r>1?e.jsxs("a",{href:c(r-1),className:"inline-flex h-10 items-center gap-1 rounded-lg border border-qa-border bg-qa-card px-3 text-sm font-medium text-qa-muted transition hover:border-qa-accent/60 hover:bg-qa-card-hover hover:text-qa-text",children:[e.jsx(g,{className:"h-4 w-4","aria-hidden":"true"}),"Anterior"]}):e.jsxs("span",{className:"inline-flex h-10 cursor-not-allowed items-center gap-1 rounded-lg border border-qa-border/60 px-3 text-sm text-qa-subtle/60",children:[e.jsx(g,{className:"h-4 w-4","aria-hidden":"true"}),"Anterior"]}),Array.from({length:s},(t,n)=>n+1).map(t=>e.jsx("a",{href:c(t),"aria-current":t===r?"page":void 0,"aria-label":`Ir para a página ${t}`,className:`inline-flex h-10 min-w-10 items-center justify-center rounded-lg border px-3 text-sm font-semibold transition ${t===r?"border-qa-accent bg-qa-accent text-qa-bg":"border-qa-border bg-qa-card text-qa-muted hover:border-qa-accent/60 hover:bg-qa-card-hover hover:text-qa-text"}`,children:t},t)),r<s?e.jsxs("a",{href:c(r+1),className:"inline-flex h-10 items-center gap-1 rounded-lg border border-qa-border bg-qa-card px-3 text-sm font-medium text-qa-muted transition hover:border-qa-accent/60 hover:bg-qa-card-hover hover:text-qa-text",children:["Próxima",e.jsx(b,{className:"h-4 w-4","aria-hidden":"true"})]}):e.jsxs("span",{className:"inline-flex h-10 cursor-not-allowed items-center gap-1 rounded-lg border border-qa-border/60 px-3 text-sm text-qa-subtle/60",children:["Próxima",e.jsx(b,{className:"h-4 w-4","aria-hidden":"true"})]})]}):null]})})]}),e.jsx(w,{})]})}export{$ as BlogIndexPage};
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.