import{a as e,n as t,r as n,t as r}from"./app-G6wC4CCm.js";import{t as i}from"./arrow-right-C0IvZSef.js";import{g as a}from"./ui-D0zPIw82.js";import{r as o}from"./theme-Cl--dRB8.js";import{i as s,t as c}from"./shared-DxO_QzGG.js";var l=r();function u({code:r,title:u,headline:f,accentWord:p,body:m,secondaryCta:h}){o();let g=e(),_=g.props.auth.user,v=d(_,g.url??``,h);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(t,{title:u}),(0,l.jsx)(`main`,{className:`min-h-screen bg-background font-sans text-foreground antialiased overflow-hidden`,children:(0,l.jsxs)(`div`,{className:`relative mx-auto min-h-screen max-w-6xl border-x border-border/60`,children:[(0,l.jsx)(c,{className:`left-0 top-0`}),(0,l.jsx)(c,{className:`left-full top-0`}),(0,l.jsx)(c,{className:`left-0 top-full`}),(0,l.jsx)(c,{className:`left-full top-full`}),(0,l.jsxs)(`div`,{className:`mx-auto flex min-h-screen max-w-2xl flex-col justify-center px-6 py-16 text-center`,children:[(0,l.jsx)(s,{children:(0,l.jsx)(`p`,{"aria-hidden":!0,className:`font-display text-7xl font-medium italic leading-none text-accent sm:text-8xl lg:text-9xl`,children:r})}),(0,l.jsx)(s,{delay:.08,children:(0,l.jsxs)(`h1`,{className:`mt-8 font-display text-3xl font-medium leading-[1.1] tracking-tight text-foreground sm:text-4xl lg:text-5xl`,children:[f,` `,(0,l.jsx)(`em`,{className:`font-display italic text-accent`,children:p}),`.`]})}),(0,l.jsx)(s,{delay:.14,children:(0,l.jsx)(`p`,{className:`mx-auto mt-6 max-w-xl text-base leading-relaxed text-muted-foreground sm:text-lg`,children:m})}),v.length>0&&(0,l.jsx)(s,{delay:.2,children:(0,l.jsx)(`div`,{className:`mt-10 flex flex-wrap items-center justify-center gap-3`,children:v.map(e=>(0,l.jsx)(n,{href:e.href,children:(0,l.jsxs)(a,{size:`lg`,variant:e.primary?`primary`:`secondary`,children:[e.label,e.primary&&(0,l.jsx)(i,{className:`h-4 w-4`})]})},e.href))})})]})]})})]})}function d(e,t,n){if(n===null)return[];let r=t.startsWith(`/admin/`),i=!!e?.is_admin,a;return a=e?r&&i?{label:`Back to admin`,href:`/admin/dashboard`,primary:!0}:{label:`Back to projects`,href:`/projects`,primary:!0}:{label:`Back home`,href:`/`,primary:!0},n?[a,n]:[a]}export{u as t};