PageSourceSearch

https://sabhia.ai/assets/pagina-programatica-BlgGLD4K.js

js sabhia.ai collected 2026-10-05 12:32:49 UTC 6,697 bytes, 1 lines download raw bytes

1import{j as e}from"./vendor-motion-CPxq9Xvn.js";import{r as b}from"./vendor-i18n-CO3kK2bH.js";import{az as p,u,s as j,a as i,S as f,A as c,C as N}from"./index-CFAvyuXu.js";import{O as v}from"./organic-lead-magnet-C6nxPUW5.js";import{C as y}from"./circle-question-mark-CHWMaDUy.js";import"./vendor-react-CQmBMThG.js";function I(){const[,d]=p("/publicar-livro/:slug"),l=d?.slug||"",{data:t,isLoading:m,isError:x}=u({queryKey:[`/api/organico/pagina/${l}`],queryFn:async()=>{const s=await fetch(`/api/organico/pagina/${encodeURIComponent(l)}`);if(!s.ok)throw new Error("not found");return s.json()},enabled:!!l,staleTime:300*1e3});b.useEffect(()=>{l&&j()},[l]);const n=`/criar-livro?utm_source=seo_organico&utm_medium=matriz&utm_campaign=${encodeURIComponent(l)}`;if(m)return e.jsx("div",{className:"min-h-screen bg-[#050505] flex items-center justify-center",children:e.jsx("div",{className:"h-10 w-10 animate-spin rounded-full border-2 border-emerald-400 border-t-transparent"})});if(x||!t)return e.jsxs("div",{className:"min-h-screen bg-[#050505] flex flex-col items-center justify-center text-center px-6",children:[e.jsx("h1",{className:"text-2xl font-bold text-white mb-3",children:"Página não encontrada"}),e.jsx(i,{href:"/",className:"text-emerald-400 hover:underline",children:"Voltar para a SÁBHIA Books"})]});const a=t.content||{},h=a.heroTitle||t.title,g=a.heroSubtitle||"Crie seu livro completo com inteligência artificial em até 24 horas e publique na Amazon e na Loja Sábhia.",o=a.ctaLabel||"Criar meu livro agora";return e.jsxs("div",{className:"min-h-screen bg-[#050505] text-white",children:[e.jsxs("section",{className:"relative overflow-hidden px-6 pt-20 pb-16 md:pt-28 md:pb-24",children:[e.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-emerald-950/40 via-transparent to-transparent pointer-events-none"}),e.jsxs("div",{className:"relative mx-auto max-w-4xl text-center",children:[e.jsxs("div",{className:"mb-4 inline-flex items-center gap-2 rounded-full border border-emerald-500/30 bg-emerald-500/10 px-4 py-1.5 text-sm text-emerald-300",children:[e.jsx(f,{className:"h-4 w-4"})," SÁBHIA Books — livros com IA"]}),e.jsx("h1",{className:"text-3xl md:text-5xl font-extrabold leading-tight mb-5","data-testid":"text-hero-title",children:h}),e.jsx("p",{className:"text-lg text-gray-300 max-w-2xl mx-auto mb-8",children:g}),e.jsxs("a",{href:n,className:"inline-flex items-center gap-2 rounded-xl bg-emerald-500 px-8 py-4 text-lg font-bold text-black hover:bg-emerald-400 transition","data-testid":"button-cta-hero",children:[o," ",e.jsx(c,{className:"h-5 w-5"})]})]})]}),e.jsxs("div",{className:"mx-auto max-w-4xl px-6 pb-20 space-y-14",children:[Array.isArray(a.pains)&&a.pains.length>0&&e.jsxs("section",{children:[e.jsx("h2",{className:"text-2xl font-bold mb-5",children:"Isso parece familiar?"}),e.jsx("ul",{className:"grid gap-3 sm:grid-cols-2",children:a.pains.map((s,r)=>e.jsx("li",{className:"rounded-xl border border-white/10 bg-white/5 p-4 text-gray-300",children:s},r))})]}),a.body&&e.jsx("section",{className:"prose prose-invert max-w-none prose-p:text-gray-300",dangerouslySetInnerHTML:{__html:a.body}}),Array.isArray(a.benefits)&&a.benefits.length>0&&e.jsxs("section",{children:[e.jsx("h2",{className:"text-2xl font-bold mb-5",children:"Por que criar seu livro na SÁBHIA"}),e.jsx("ul",{className:"space-y-3",children:a.benefits.map((s,r)=>e.jsxs("li",{className:"flex items-start gap-3 text-gray-200",children:[e.jsx(N,{className:"mt-0.5 h-5 w-5 shrink-0 text-emerald-400"})," ",s]},r))})]}),Array.isArray(a.steps)&&a.steps.length>0&&e.jsxs("section",{children:[e.jsx("h2",{className:"text-2xl font-bold mb-5",children:"Como funciona"}),e.jsx("div",{className:"grid gap-4 md:grid-cols-3",children:a.steps.map((s,r)=>e.jsxs("div",{className:"rounded-xl border border-white/10 bg-white/5 p-5",children:[e.jsx("div",{className:"mb-2 text-emerald-400 font-bold",children:s.title}),e.jsx("p",{className:"text-sm text-gray-300",children:s.text})]},r))})]}),t.leadMagnetEnabled&&e.jsx(v,{sourceSlug:t.slug}),t.socialProof.length>0&&e.jsxs("section",{children:[e.jsx("h2",{className:"text-2xl font-bold mb-2",children:"Livros criados na SÁBHIA e à venda agora"}),e.jsx("p",{className:"text-gray-400 mb-5 text-sm",children:"Autores reais que começaram exatamente onde você está."}),e.jsx("div",{className:"grid grid-cols-3 gap-4 sm:grid-cols-6",children:t.socialProof.map(s=>e.jsx(i,{href:`/loja/livro/${s.slug}`,className:"group block",children:e.jsx("img",{src:s.coverUrl,alt:s.title,loading:"lazy",className:"aspect-[2/3] w-full rounded-lg object-cover shadow-lg transition group-hover:scale-105"})},s.slug))})]}),Array.isArray(a.faq)&&a.faq.length>0&&e.jsxs("section",{children:[e.jsx("h2",{className:"text-2xl font-bold mb-5",children:"Perguntas frequentes"}),e.jsx("div",{className:"space-y-4",children:a.faq.map((s,r)=>e.jsxs("div",{className:"rounded-xl border border-white/10 bg-white/5 p-5",children:[e.jsxs("div",{className:"flex items-start gap-2 font-semibold mb-2",children:[e.jsx(y,{className:"mt-0.5 h-5 w-5 shrink-0 text-cyan-400"})," ",s.q]}),e.jsx("p",{className:"text-gray-300 text-sm pl-7",children:s.a})]},r))})]}),e.jsxs("section",{className:"rounded-2xl border border-emerald-500/30 bg-gradient-to-r from-emerald-950/60 to-cyan-950/40 p-8 text-center",children:[e.jsx("h2",{className:"text-2xl font-bold mb-3",children:"Seu livro pode estar pronto amanhã"}),e.jsx("p",{className:"text-gray-300 mb-6",children:"Conte suas ideias em uma conversa — a IA escreve com você, do primeiro capítulo à capa."}),e.jsxs("a",{href:n,className:"inline-flex items-center gap-2 rounded-xl bg-emerald-500 px-8 py-4 text-lg font-bold text-black hover:bg-emerald-400 transition","data-testid":"button-cta-final",children:[o," ",e.jsx(c,{className:"h-5 w-5"})]})]}),(t.siblings.length>0||t.blogPosts.length>0)&&e.jsxs("section",{className:"border-t border-white/10 pt-10",children:[t.siblings.length>0&&e.jsxs("div",{className:"mb-8",children:[e.jsx("h2",{className:"text-lg font-bold mb-4 text-gray-200",children:"Veja também"}),e.jsx("ul",{className:"grid gap-2 sm:grid-cols-2",children:t.siblings.map(s=>e.jsx("li",{children:e.jsx(i,{href:`/publicar-livro/${s.slug}`,className:"text-emerald-400 hover:underline text-sm",children:s.title})},s.slug))})]}),t.blogPosts.length>0&&e.jsxs("div",{children:[e.jsx("h2",{className:"text-lg font-bold mb-4 text-gray-200",children:"Do nosso blog"}),e.jsx("ul",{className:"grid gap-2 sm:grid-cols-2",children:t.blogPosts.map(s=>e.jsx("li",{children:e.jsx(i,{href:`/blog/${s.slug}`,className:"text-cyan-400 hover:underline text-sm",children:s.title})},s.slug))})]})]})]})]})}export{I 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.