PageSourceSearch

https://cesla.com.br/assets/cases._slug-JYyylDSI.js

js cesla.com.br collected 2026-10-09 21:56:33 UTC 7,834 bytes, 1 lines download raw bytes

1import{h as g,r as o,s as b,j as e,L as c}from"./main-PqYkaywL.js";import{S as x}from"./SiteLayout-BnwX3Vkv.js";import{A as m}from"./arrow-left-Dcl3xrt9.js";import{m as f}from"./proxy-BB7Qf30u.js";import{T as d}from"./trophy-CFVxLD_V.js";import{T as u,C as j}from"./target-CNhCMyRL.js";import{C as v}from"./circle-check-BsYgEd5h.js";import{A as N}from"./arrow-right-D1EWatsB.js";import"./Footer-BM1bsbiy.js";import"./cesla-logo-BFl5Yo9z.js";import"./chevron-down-NOB6KRfE.js";import"./createLucideIcon-Dxaekzza.js";import"./youtube-D8GQc42h.js";import"./x-CnGuBL56.js";function P(){const{slug:a}=g({from:"/cases/$slug"}),[s,i]=o.useState(null),[h,p]=o.useState(!1);if(o.useEffect(()=>{b.from("business_cases").select("*").eq("slug",a).eq("is_published",!0).maybeSingle().then(({data:t})=>{t?i(t):p(!0)})},[a]),h)return e.jsx(x,{children:e.jsxs("section",{className:"mx-auto max-w-3xl px-6 py-32 text-center",children:[e.jsx("h1",{className:"text-3xl font-bold",children:"Case não encontrado"}),e.jsxs(c,{to:"/",className:"mt-6 inline-flex items-center gap-2 text-cesla-blue hover:underline",children:[e.jsx(m,{className:"h-4 w-4"})," Voltar para a home"]})]})});if(!s)return e.jsx(x,{children:e.jsx("div",{className:"flex min-h-[60vh] items-center justify-center text-muted-foreground",children:"Carregando case…"})});const l=s.hero_image_layout==="background"&&!!s.hero_image_url;return e.jsxs(x,{children:[e.jsxs("section",{className:"relative overflow-hidden bg-gradient-to-br from-[oklch(0.18_0.10_268)] via-cesla-blue to-[oklch(0.28_0.18_240)] pt-32 pb-24",children:[l&&e.jsxs(e.Fragment,{children:[e.jsx("img",{src:s.hero_image_url,alt:s.company_name,className:"pointer-events-none absolute inset-0 h-full w-full object-cover"}),e.jsx("div",{className:"pointer-events-none absolute inset-0 bg-gradient-to-r from-black/80 via-black/60 to-black/30"}),e.jsx("div",{className:"pointer-events-none absolute inset-0 bg-gradient-to-t from-cesla-blue/70 via-transparent to-transparent"})]}),e.jsx("div",{className:"pointer-events-none absolute -top-32 -right-32 h-96 w-96 rounded-full bg-cesla-cyan/25 blur-[100px]"}),e.jsx("div",{className:"pointer-events-none absolute -bottom-40 -left-20 h-96 w-96 rounded-full bg-cesla-blue/40 blur-[120px]"}),e.jsx("div",{className:"pointer-events-none absolute inset-0 opacity-[0.05]",style:{backgroundImage:"linear-gradient(to right, white 1px, transparent 1px), linear-gradient(to bottom, white 1px, transparent 1px)",backgroundSize:"48px 48px"}}),e.jsxs("div",{className:"relative mx-auto max-w-7xl px-6 lg:px-8",children:[e.jsxs(c,{to:"/",className:"inline-flex items-center gap-2 text-xs font-semibold uppercase tracking-[0.2em] text-white/70 hover:text-white",children:[e.jsx(m,{className:"h-3.5 w-3.5"})," Voltar"]}),e.jsxs(f.div,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.7,ease:[.22,1,.36,1]},className:l?"mt-8 max-w-3xl":"mt-8 grid gap-10 lg:grid-cols-[1.2fr_1fr] lg:items-center",children:[e.jsxs("div",{children:[e.jsxs("span",{className:"inline-flex items-center gap-2 rounded-full border border-white/20 bg-white/10 px-3 py-1 text-[10px] font-semibold uppercase tracking-[0.25em] text-white/90 backdrop-blur",children:[e.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-cesla-green"})," ",s.segment]}),e.jsx("h1",{className:"mt-5 text-3xl font-bold leading-[1.1] tracking-tight text-white md:text-5xl lg:text-6xl",children:s.company_name}),e.jsx("p",{className:"mt-6 max-w-2xl text-base leading-relaxed text-white/80 md:text-lg",children:s.short_description}),s.highlight_result&&e.jsxs("div",{className:"mt-8 inline-flex items-center gap-3 rounded-full border border-cesla-green/40 bg-cesla-green/10 px-5 py-2.5 text-sm font-bold text-cesla-green",children:[e.jsx(d,{className:"h-4 w-4"}),s.highlight_result]})]}),!l&&s.hero_image_url?e.jsx("div",{className:"overflow-hidden rounded-2xl border border-white/20 shadow-2xl",children:e.jsx("img",{src:s.hero_image_url,alt:s.company_name,className:"h-full w-full object-cover"})}):!l&&Array.isArray(s.metrics)&&s.metrics.length>0?e.jsx("div",{className:"grid grid-cols-2 gap-4",children:s.metrics.slice(0,4).map((t,n)=>e.jsxs("div",{className:"rounded-2xl border border-white/15 bg-white/5 p-5 backdrop-blur-md",children:[e.jsxs("div",{className:"flex items-baseline gap-1",children:[e.jsx("span",{className:"text-3xl font-bold text-white md:text-4xl",children:t.value}),t.suffix&&e.jsx("span",{className:"text-lg font-semibold text-cesla-cyan",children:t.suffix})]}),e.jsx("p",{className:"mt-2 text-xs font-medium uppercase tracking-wider text-white/70",children:t.label})]},n))}):null]})]})]}),Array.isArray(s.metrics)&&s.metrics.length>0&&e.jsx("section",{className:"border-b border-border bg-card",children:e.jsx("div",{className:"mx-auto grid max-w-7xl grid-cols-2 gap-6 px-6 py-10 lg:grid-cols-4 lg:px-8",children:s.metrics.map((t,n)=>e.jsxs("div",{className:"text-center",children:[e.jsxs("div",{className:"flex items-baseline justify-center gap-1",children:[e.jsx("span",{className:"text-3xl font-bold text-cesla-blue md:text-4xl",children:t.value}),t.suffix&&e.jsx("span",{className:"text-lg font-semibold text-muted-foreground",children:t.suffix})]}),e.jsx("p",{className:"mt-2 text-xs font-medium uppercase tracking-wider text-muted-foreground",children:t.label})]},n))})}),e.jsxs("section",{className:"mx-auto max-w-5xl px-6 py-20 lg:px-8",children:[s.executive_summary&&e.jsx(r,{icon:u,title:"Resumo executivo",html:s.executive_summary}),s.challenges&&e.jsx(r,{icon:u,title:"Desafios",html:s.challenges}),s.solution&&e.jsx(r,{icon:j,title:"Solução aplicada",html:s.solution}),s.results&&e.jsx(r,{icon:d,title:"Resultados alcançados",html:s.results}),s.full_content&&!s.executive_summary&&!s.challenges&&e.jsx("div",{className:"prose prose-slate max-w-none",dangerouslySetInnerHTML:{__html:s.full_content}}
1),Array.isArray(s.technologies)&&s.technologies.length>0&&e.jsxs("div",{className:"mt-16",children:[e.jsx("h3",{className:"text-xs font-semibold uppercase tracking-[0.3em] text-cesla-blue",children:"Tecnologias aplicadas"}),e.jsx("div",{className:"mt-5 flex flex-wrap gap-2",children:s.technologies.map(t=>e.jsxs("span",{className:"inline-flex items-center gap-2 rounded-full border border-border bg-card px-4 py-2 text-sm font-medium text-foreground",children:[e.jsx(v,{className:"h-3.5 w-3.5 text-cesla-green"}),t]},t))})]})]}),e.jsx("section",{className:"mx-auto max-w-7xl px-6 pb-24 lg:px-8",children:e.jsxs("div",{className:"relative overflow-hidden rounded-3xl bg-gradient-to-br from-cesla-blue via-cesla-blue to-cesla-green/80 p-10 text-center shadow-elegant md:p-16",children:[e.jsx("div",{className:"pointer-events-none absolute -top-24 -right-24 h-72 w-72 rounded-full bg-white/10 blur-3xl"}),e.jsx("h2",{className:"relative text-2xl font-bold text-white md:text-4xl",children:"Pronto para um resultado parecido na sua operação?"}),e.jsxs(c,{to:s.cta_url??"/contato",className:"relative mt-8 inline-flex items-center gap-3 rounded-full bg-white px-7 py-3.5 text-sm font-bold text-cesla-blue shadow-lg transition-all hover:-translate-y-0.5",children:[s.cta_label??"Falar com especialista",e.jsx(N,{className:"h-4 w-4"})]})]})})]})}function r({icon:a,title:s,html:i}){return e.jsxs("div",{className:"mt-12 first:mt-0",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-xl bg-cesla-blue/10 text-cesla-blue ring-1 ring-cesla-blue/15",children:e.jsx(a,{className:"h-5 w-5"})}),e.jsx("h2",{className:"text-2xl font-bold tracking-tight text-foreground",children:s})]}),e.jsx("div",{className:"prose prose-slate mt-5 max-w-none prose-li:text-muted-foreground prose-p:text-muted-foreground prose-strong:text-foreground",dangerouslySetInnerHTML:{__html:i}})]})}export{P 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.