import{b as g,e as y,u as t,o as a,f as r,h as s,t as n,i as f,j as l,F as h,r as k}from"./entry.5c8819da.js";const v={key:0,class:"py-8 lg:py-16"},w={class:"flex flex-col items-center justify-center max-w-4xl px-4 mx-auto text-center gap-y-8 sm:px-6 lg:px-8"},b={key:0,class:"font-semibold text-gray-400"},j={key:1,class:"text-5xl font-bold text-gray-900 dark:text-white"},B={key:2,class:"max-w-5xl font-medium text-gray-700 dark:text-gray-200"},D={key:3,class:"flex flex-wrap items-center justify-center gap-4"},C=["href"],L={class:"w-12 h-12 rounded-full"},N=["src","alt"],V={class:"flex flex-col items-start justify-center"},F={class:"text-gray-900 dark:text-white"},S={class:"text-sm text-gray-400"},H=g({__name:"ArticleHero",setup(A){const{page:e}=y(),p=(c,i)=>new Date(i).toLocaleDateString(c,{year:"numeric",month:"long",day:"numeric"});return(c,i)=>{var d,u,_,x,m;return t(e)?(a(),r("div",v,[s("div",w,[(d=t(e))!=null&&d.date?(a(),r("div",b,[s("time",null,n(p("en",t(e).date)),1),f(" - "+n(t(e).category),1)])):l("",!0),(u=t(e))!=null&&u.title?(a(),r("h1",j,n(t(e).title),1)):l("",!0),(_=t(e))!=null&&_.description?(a(),r("p",B,n(t(e).description),1)):l("",!0),(m=(x=t(e))==null?void 0:x.authors)!=null&&m.length?(a(),r("ul",D,[(a(!0),r(h,null,k(t(e).authors,o=>(a(),r("li",{key:o.name,class:"group"},[s("a",{href:o.link,alt:"twitter account",class:"flex p-2 transition-colors duration-300 rounded-md gap-x-2 group-hover:bg-gray-100 dark:group-hover:bg-gray-700"},[s("div",L,[s("img",{src:o.avatarUrl,alt:o.name,class:"border-2 border-gray-500 rounded-full"},null,8,N)]),s("div",V,[s("span",F,n(o.name),1),s("span",S,n(`@${o.link.split("/").pop()}`),1)])],8,C)]))),128))])):l("",!0)])])):l("",!0)}}});export{H as default};
