import{d as V,O as T,f as k,w as g,a as c,u as o,h as q,b as e,t as i,e as u,l as f,o as s,c as n,j as l,F as p,r as b,M as A,i as h,m as _,A as H}from"./app-xf5yGDx6.js";import{s as z}from"./index-BJNNTCfO.js";import{_ as $}from"./SiteLayout.vue_vue_type_script_setup_true_lang-DBQNVqDT.js";import{c as S}from"./createLucideIcon-BnSiGd6Q.js";import{C as E,B as F}from"./calendar-days-DrML09Fb.js";import{C as W}from"./check-xnOaEVbm.js";import{S as O,B as M,C as y,D as R,L as Y,T as J}from"./terminal-DJbTcpnp.js";import"./index-Cirk58wY.js";const K=S("ExternalLinkIcon",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);const G=S("MapPinIcon",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]),Q={class:"relative flex flex-col"},U={class:"relative overflow-hidden rounded-3xl border border-black/10 bg-white/70 p-8 ring-1 ring-black/10 backdrop-blur-xl sm:p-12 dark:border-white/10 dark:bg-white/5 dark:ring-white/10"},X={class:"relative grid gap-10 lg:grid-cols-12 lg:items-center"},Z={class:"lg:col-span-8"},ee={class:"bg-[linear-gradient(135deg,#6366f1,#06b6d4)] bg-clip-text text-sm font-medium tracking-wide text-transparent"},te={class:"mt-3 text-4xl font-semibold tracking-tight sm:text-6xl"},re={class:"mt-5 max-w-2xl text-base leading-relaxed text-foreground/70 sm:text-lg"},se={class:"mt-7 flex flex-col gap-3 sm:flex-row sm:items-center"},ie={class:"lg:col-span-4"},ne={class:"relative mx-auto max-w-[18rem]"},ae={class:"relative overflow-hidden rounded-[2rem] border border-black/10 bg-white/70 ring-1 ring-black/10 dark:border-white/10 dark:bg-white/5 dark:ring-white/10"},le={class:"aspect-[4/5] bg-[linear-gradient(135deg,rgba(99,102,241,0.10),rgba(34,211,238,0.08))]"},oe=["src"],de={class:"p-4"},ce={class:"text-sm font-medium tracking-tight"},ge={class:"mt-1 text-xs text-foreground/60"},ue={class:"order-4 mt-6 grid gap-6 lg:grid-cols-12"},fe={class:"lg:col-span-7"},pe={class:"flex items-end justify-between"},be={class:"mt-4 grid gap-4 sm:grid-cols-2"},he={class:"relative"},xe={class:"flex items-start justify-between gap-3"},_e={class:"font-medium tracking-tight"},me={class:"mt-2 line-clamp-2 text-sm text-foreground/65"},ke={class:"mt-4 flex flex-wrap gap-2"},ve=["innerHTML"],we={class:"lg:col-span-5"},ye={class:"flex items-end justify-between"},je={class:"mt-4 space-y-3"},Le={key:0,class:"mb-4 overflow-hidden rounded-xl border border-black/10 bg-white/60 ring-1 ring-black/10 dark:border-white/10 dark:bg-white/5 dark:ring-white/10"},Ce=["src","alt"],De={class:"flex items-start justify-between gap-3"},Me={class:"font-medium tracking-tight"},Se={class:"text-xs text-foreground/60"},Pe={class:"mt-2 line-clamp-2 text-sm text-foreground/65"},Be={class:"mt-3 flex items-center gap-2 text-xs text-foreground/55"},Ie={key:0,class:"rounded-full bg-[linear-gradient(135deg,rgba(99,102,241,0.16),rgba(34,211,238,0.12))] px-2 py-1 ring-1 ring-black/10 dark:ring-white/10"},Ne={class:"opacity-80"},Ve={class:"order-3 mt-12"},Te={class:"relative mt-4"},qe={class:"grid gap-4"},Ae={class:"flex flex-col items-center"},He={key:0,class:"absolute left-0 top-0 h-full w-1 bg-[linear-gradient(180deg,rgba(99,102,241,0.95),rgba(6,182,212,0.75))]"},ze={class:"flex items-start gap-4"},$e={key:0,class:"relative z-10 h-14 w-14 shrink-0 overflow-hidden rounded-xl border border-black/10 bg-white/60 ring-1 ring-black/10 dark:border-white/10 dark:bg-white/5 dark:ring-white/10"},Ee=["src","alt"],Fe={class:"min-w-0 flex-1"},We={class:"flex flex-wrap items-center justify-between gap-3"},Oe={class:"min-w-0"},Re={class:"flex flex-wrap items-center gap-2"},Ye={class:"text-sm font-medium tracking-tight"},Je=["href"],Ke={key:1},Ge={key:0,class:"inline-flex items-center rounded-full bg-[linear-gradient(135deg,rgba(99,102,241,0.16),rgba(6,182,212,0.12))] px-2.5 py-1 text-xs text-foreground/90 ring-1 ring-black/10 dark:ring-white/10"},Qe={class:"mt-3 flex flex-wrap items-center gap-2"},Ue={key:0,class:"inline-flex items-center gap-2 rounded-full bg-black/5 px-2.5 py-1 text-xs text-foreground/80 ring-1 ring-black/10 dark:bg-white/5 dark:ring-white/10"},Xe={class:"font-mono"},Ze={key:1,class:"inline-flex items-center gap-2 rounded-full bg-black/5 px-2.5 py-1 text-xs text-foreground/80 ring-1 ring-black/10 dark:bg-white/5 dark:ring-white/10"},et={class:"font-mono"},tt={key:2,class:"inline-flex items-center gap-2 rounded-full bg-[linear-gradient(135deg,rgba(99,102,241,0.12),rgba(34,211,238,0.10))] px-2.5 py-1 text-xs text-foreground/80 ring-1 ring-black/10 dark:ring-white/10"},rt={class:"font-mono"},st={key:0,class:"mt-3 text-sm text-foreground/70"},it={key:1,class:"mt-3"},nt={class:"mt-2 space-y-2"},at={class:"leading-relaxed"},lt={class:"order-5 mt-12"},ot={class:"flex items-end justify-between"},dt={class:"mt-4 grid gap-3"},ct={class:"flex items-center gap-2"},gt={class:"rounded-full bg-[linear-gradient(135deg,rgba(99,102,241,0.14),rgba(34,211,238,0.10))] px-2.5 py-1 text-xs text-foreground/80 ring-1 ring-black/10 dark:ring-white/10"},ut={class:"font-medium tracking-tight"},ft={key:0,class:"mt-2 text-sm text-foreground/65"},pt={class:"flex items-center justify-between gap-3 sm:flex-col sm:items-end"},bt={class:"text-xs text-foreground/55"},ht=["href"],Lt=V({__name:"Home",props:{featuredProjects:{},latestPosts:{},recentActivity:{},experience:{}},setup(m){const P=H(),x=_(()=>P.props.settings?.profile??{}),{resolvedAppearance:B}=T(),j=_(()=>x.value.full_name??"Your Name"),L=_(()=>x.value.headline??"Full‑stack Developer"),I=_(()=>x.value.bio??"I build premium web products with Laravel, Vue, and a design-first mindset."),C=_(()=>{const t=B.value==="dark"?x.value.portrait_dark_path:x.value.portrait_light_path;return t?`/storage/${t}`:null});function v(a){if(a)return a.startsWith("http")||a.startsWith("/storage/")?a:`/storage/${a}`}function w(a){if(!a)return"—";const t=new Date(a);return Number.isNaN(t.getTime())?"—":t.toLocaleDateString(void 0,{year:"numeric",month:"short"})}function N(a){const t=a.toLowerCase();return t.includes("laravel")?O:t.includes("vue")?M:t.includes("react")?M:t.includes("javascript")||t.includes("js")?y:t.includes("typescript")||t.includes("ts")?y:t.includes("php")?y:t.includes("mysql")?R:t.includes("tailwind")?Y:J}function D(a){const t=a.toLowerCase();let r=null;if(t.includes("laravel")?r="siLaravel":t.includes("vue")?r="siVuedotjs":t.includes("react")?r="siReact":t.includes("javascript")||t==="js"||t.includes(" js")?r="siJavascript":t.includes("typescript")||t==="ts"?r="siTypescript":t.includes("php")?r="siPhp":t.includes("mysql")?r="siMysql":t.includes("tailwind")?r="siTailwindcss":t.includes("inertia")&&(r="siInertia"),!r)return null;const d=z[r];return d?.svg?d.svg.replace("(s(),k($,null,{default:g(()=>[c(o(q),{title:"Home"},{default:g(()=>[...t[0]||(t[0]=[e("link",{rel:"preconnect",href:"https://rsms.me/"},null,-1),e("link",{rel:"stylesheet",href:"https://rsms.me/inter/inter.css"},null,-1)])]),_:1}),e("section",Q,[e("div",U,[t[6]||(t[6]=e("div",{class:"pointer-events-none absolute inset-0 bg-[radial-gradient(circle_at_20%_10%,rgba(99,102,241,0.22),transparent_40%),radial-gradient(circle_at_80%_20%,rgba(34,211,238,0.14),transparent_35%),radial-gradient(circle_at_40%_90%,rgba(236,72,153,0.06),transparent_42%)]"},null,-1)),e("div",X,[e("div",Z,[e("p",ee,i(L.value),1),e("h1",te,[u(i(j.value)+" — I build products with ",1),t[1]||(t[1]=e("span",{class:"bg-[linear-gradient(135deg,#a5b4fc,#67e8f9)] bg-clip-text text-transparent"}," taste, speed, and depth ",-1)),t[2]||(t[2]=u(" . ",-1))]),e("p",re,i(I.value),1),e("div",se,[c(o(f),{href:"/projects",class:"glass-button justify-center px-5"},{default:g(()=>[...t[3]||(t[3]=[u(" View projects ",-1)])]),_:1}),c(o(f),{href:"/blog",class:"site-nav-link justify-center px-5"},{default:g(()=>[...t[4]||(t[4]=[u(" Read the blog ",-1)])]),_:1})])]),e("div",ie,[e("div",ne,[t[5]||(t[5]=e("div",{class:"absolute -inset-6 rounded-[2rem] bg-[radial-gradient(circle_at_center,rgba(99,102,241,0.18),transparent_60%)] blur-2xl"},null,-1)),e("div",ae,[e("div",le,[C.value?(s(),n("img",{key:0,src:C.value,alt:"Portrait",class:"h-full w-full object-cover"},null,8,oe)):l("",!0)]),e("div",de,[e("div",ce,i(j.value),1),e("div",ge,i(L.value),1)])])])])])]),t[20]||(t[20]=e("div",{class:"order-2 mt-8 h-px bg-[linear-gradient(to_right,rgba(99,102,241,0.32),rgba(34,211,238,0.22))] opacity-60"},null,-1)),e("div",ue,[e("div",fe,[e("div",pe,[t[8]||(t[8]=e("h2",{class:"bg-[linear-gradient(135deg,#6366f1,#06b6d4)] bg-clip-text text-2xl font-semibold tracking-tight text-transparent"}," Featured projects ",-1)),c(o(f),{href:"/projects",class:"text-sm text-foreground/60 hover:text-foreground"},{default:g(()=>[...t[7]||(t[7]=[u(" See all ",-1)])]),_:1})]),e("div",be,[(s(!0),n(p,null,b(m.featuredProjects,r=>(s(),k(o(f),{key:r.id,class:"group relative overflow-hidden rounded-2xl border border-black/10 bg-white/70 p-5 ring-1 ring-black/10 backdrop-blur-xl transition hover:bg-white/80 dark:border-white/10 dark:bg-white/5 dark:ring-white/10 dark:hover:bg-white/8",href:`/projects/${r.slug}`},{default:g(()=>[t[10]||(t[10]=e("div",{class:"absolute inset-0 opacity-0 transition-opacity duration-300 group-hover:opacity-100"},[e("div",{class:"absolute -inset-20 bg-[radial-gradient(circle_at_center,rgba(99,102,241,0.16),transparent_60%)] blur-3xl"})],-1)),e("div",he,[e("div",xe,[e("h3",_e,i(r.title),1),t[9]||(t[9]=e("span",{class:"text-xs text-foreground/60"}," → ",-1))]),e("p",me,i(r.description),1),e("div",ke,[(s(!0),n(p,null,b((r.tech_stack??[]).slice(0,4),d=>(s(),n("span",{key:d,class:"inline-flex items-center justify-center gap-2 rounded-full bg-white/80 px-2.5 py-1.5 text-xs font-semibold text-foreground/80 ring-1 ring-black/10 dark:bg-white/5 dark:text-foreground/90 dark:ring-white/10"},[D(d)?(s(),n("span",{key:0,class:"inline-flex h-4 w-4 flex-shrink-0 items-center justify-center text-foreground/80",innerHTML:D(d)},null,8,ve)):(s(),k(A(N(d)),{key:1,class:"h-4 w-4 flex-shrink-0 opacity-80"})),u(" "+i(d),1)]))),128))])])]),_:2},1032,["href"]))),128))])]),e("div",we,[e("div",ye,[t[12]||(t[12]=e("h2",{class:"bg-[linear-gradient(135deg,#6366f1,#06b6d4)] bg-clip-text text-2xl font-semibold tracking-tight text-transparent"}," Latest posts ",-1)),c(o(f),{href:"/blog",class:"text-sm text-foreground/60 hover:text-foreground"},{default:g(()=>[...t[11]||(t[11]=[u(" See all ",-1)])]),_:1})]),e("div",je,[(s(!0),n(p,null,b(m.latestPosts,r=>(s(),k(o(f),{key:r.id,class:"group relative block rounded-2xl border border-black/10 bg-white/70 p-5 ring-1 ring-black/10 backdrop-blur-xl transition hover:bg-white/80 dark:border-white/10 dark:bg-white/5 dark:ring-white/10 dark:hover:bg-white/8",href:`/blog/${r.slug}`},{default:g(()=>[t[14]||(t[14]=e("div",{class:"absolute inset-0 opacity-0 transition-opacity duration-300 group-hover:opacity-100"},[e("div",{class:"absolute -inset-20 bg-[radial-gradient(circle_at_center,rgba(99,102,241,0.20),rgba(34,211,238,0.12),transparent_62%)] blur-3xl"})],-1)),v(r.cover_image_path)?(s(),n("div",Le,[e("img",{src:v(r.cover_image_path),alt:r.title,class:"h-32 w-full object-cover",loading:"lazy"},null,8,Ce)])):l("",!0),e("div",De,[e("h3",Me,i(r.title),1),e("span",Se,i(r.reading_time_minutes)+" min ",1)]),e("p",Pe,i(r.excerpt),1),e("div",Be,[r.category?(s(),n("span",Ie,i(r.category.name),1)):l("",!0),t[13]||(t[13]=e("span",{class:"opacity-70"},"·",-1)),e("span",Ne,i(new Date(r.published_at).toLocaleDateString()),1)])]),_:2},1032,["href"]))),128))])])]),e("div",Ve,[t[17]||(t[17]=e("div",{class:"flex items-end justify-between gap-4"},[e("div",null,[e("h2",{class:"bg-[linear-gradient(135deg,#6366f1,#06b6d4)] bg-clip-text text-2xl font-semibold tracking-tight text-transparent"}," Experience "),e("p",{class:"mt-1 text-sm text-foreground/60"}," Where I’ve worked ")])],-1)),e("div",Te,[t[16]||(t[16]=e("div",{class:"pointer-events-none absolute left-[13px] top-2 bottom-2 w-px bg-black/10 dark:bg-white/10"},null,-1)),e("div",qe,[(s(!0),n(p,null,b(m.experience,r=>(s(),n("div",{key:r.id,class:"grid grid-cols-[28px_1fr] gap-4"},[e("div",Ae,[e("div",{class:h(["relative mt-2 h-3 w-3 rounded-full ring-2 ring-black/10 dark:ring-white/10",r.is_current?"bg-[linear-gradient(135deg,#6366f1,#06b6d4)]":"bg-black/10 dark:bg-white/10"])},[e("div",{class:h(["absolute -right-8 top-1/2 h-px w-7 -translate-y-1/2",r.is_current?"bg-[linear-gradient(90deg,#6366f1,#06b6d4)]":"bg-black/10 dark:bg-white/10"])},null,2)],2),r.started_on?(s(),n("div",{key:0,class:h(["mt-3 rounded-full border border-black/10 bg-white/70 px-2 py-1 text-[0.68rem] font-mono text-foreground/55 dark:border-white/10 dark:bg-white/5 dark:text-foreground/60",r.is_current?"text-foreground shadow-[0_0_0_1px_rgba(99,102,241,0.15)]":""])},i(w(r.started_on)),3)):l("",!0)]),e("div",{class:h(["relative overflow-hidden rounded-2xl border border-black/10 bg-white/85 p-6 ring-1 ring-black/10 backdrop-blur-xl dark:border-white/10 dark:bg-white/5 dark:ring-white/10",r.is_current?"shadow-[0_0_0_1px_rgba(99,102,241,0.22),0_18px_60px_rgba(99,102,241,0.10)]":""])},[r.is_current?(s(),n("div",He)):l("",!0),e("div",ze,[r.company_logo_path?(s(),n("div",$e,[e("img",{src:v(r.company_logo_path),alt:r.company,class:"h-full w-full object-contain p-2",loading:"lazy"},null,8,Ee)])):l("",!0),e("div",Fe,[e("div",We,[e("div",Oe,[e("div",Re,[e("div",Ye,[r.company_url?(s(),n("a",{key:0,href:r.company_url,target:"_blank",rel:"noreferrer",class:"inline-flex items-center gap-1 hover:underline"},[u(i(r.company)+" ",1),c(o(K),{class:"h-3.5 w-3.5 opacity-70"})],8,Je)):(s(),n("span",Ke,i(r.company),1))]),r.is_current?(s(),n("span",Ge," Current ")):l("",!0)]),e("div",{class:h(["mt-1 text-base font-semibold",r.is_current?"text-foreground":"text-foreground/70"])},i(r.role),3)])]),e("div",Qe,[r.started_on?(s(),n("span",Ue,[c(o(E),{class:"h-3.5 w-3.5 opacity-70"}),e("span",Xe,i(w(r.started_on))+" → "+i(r.is_current?"Present":w(r.ended_on)),1)])):l("",!0),r.location?(s(),n("span",Ze,[c(o(G),{class:"h-3.5 w-3.5 opacity-70"}),e("span",et,i(r.location),1)])):l("",!0),r.employment_type?(s(),n("span",tt,[c(o(F),{class:"h-3.5 w-3.5 opacity-70"}),e("span",rt,i(r.employment_type),1)])):l("",!0)]),r.summary?(s(),n("p",st,i(r.summary),1)):l("",!0),r.highlights?.length?(s(),n("div",it,[t[15]||(t[15]=e("div",{class:"text-xs text-foreground/55"}," Highlights ",-1)),e("ul",nt,[(s(!0),n(p,null,b(r.highlights.slice(0,3),d=>(s(),n("li",{key:d,class:"flex items-start gap-2 text-sm text-foreground/70"},[c(o(W),{class:h(["mt-0.5 h-4 w-4 flex-shrink-0 text-[linear-gradient(135deg,#6366f1,#06b6d4)]",r.is_current?"text-[#6366f1]":"text-foreground/70"])},null,8,["class"]),e("span",at,i(d),1)]))),128))])])):l("",!0)])])],2)]))),128))])])]),e("div",lt,[e("div",ot,[t[19]||(t[19]=e("h2",{class:"bg-[linear-gradient(135deg,#6366f1,#06b6d4)] bg-clip-text text-2xl font-semibold tracking-tight text-transparent"}," Activity ",-1)),c(o(f),{href:"/activity",class:"text-sm text-foreground/60 hover:text-foreground"},{default:g(()=>[...t[18]||(t[18]=[u(" View timeline ",-1)])]),_:1})]),e("div",dt,[(s(!0),n(p,null,b(m.recentActivity,r=>(s(),n("div",{key:r.id,class:"flex flex-col gap-2 rounded-2xl border border-black/10 bg-white/70 p-5 ring-1 ring-black/10 backdrop-blur-xl sm:flex-row sm:items-start sm:justify-between dark:border-white/10 dark:bg-white/5 dark:ring-white/10"},[e("div",null,[e("div",ct,[e("span",gt,i(r.type),1),e("p",ut,i(r.title),1)]),r.description?(s(),n("p",ft,i(r.description),1)):l("",!0)]),e("div",pt,[e("span",bt,i(new Date(r.happened_at).toLocaleDateString()),1),r.url?(s(),n("a",{key:0,href:r.url,target:"_blank",rel:"noreferrer",class:"text-xs text-foreground/70 hover:text-foreground"}," Open → ",8,ht)):l("",!0)])]))),128))])])])]),_:1}))}});export{Lt as default};