1import{p as x,_ as y,u as b}from"./helpers.C6cKbH-7.js";import{_ as v}from"./nuxt-link.COG6dLJE.js";import{f as u,o,g,w,b as k,a as t,t as e,l as a,u as $,c as l,F as h,k as _}from"./entry.BxrKbY13.js";import"./index.DvDH6DOc.js";import"./asyncData.CYi-B-sI.js";const D={class:"px-4 py-4 flex flex-col flex-1"},B={class:"font-semibold text-blue-600 text-sm"},M={class:"font-semibold text-lg mt-2 text-gray-800"},j={class:"text-gray-500 text-sm mt-2 flex-1 line-clamp-3"},J={class:"flex gap-3 items-center mt-6"},S=["src"],F={class:"space-y-0.5"},A={class:"font-medium text-sm"},C={class:"text-xs text-gray-500"},I=u({__name:"PostItem",props:{post:{}},setup(f){const r=["John Doe","Jane Doe","John Smith","Jane Smith","Amanda Doe","Ame Smith","Joe Doe"],c=r[Math.floor(Math.random()*r.length)],i=new Date(Math.floor(Math.random()*(Date.now()-1e9))+1e9),m=Math.floor(Math.random()*10)+1;return(s,p)=>{const d=y,n=v;return o(),g(n,{class:"bg-white flex flex-col rounded-lg overflow-hidden shadow-md hover:shadow-xl transition duration-300",to:`/blog/posts/${s.post.id}`,title:s.post.title},{default:w(()=>[k(d,{src:`https://source.unsplash.com/random?${s.post.tags.join(",")}`,height:"150",width:"100%",class:"h-[150px] w-full object-cover bg-gray-100"},null,8,["src"]),t("div",D,[t("span",B,e(s.post.tags[0]),1),t("h3",M,e(s.post.title),1),t("div",j,e(s.post.body.substr(0,150)),1),t("div",J,[t("img",{loading:"lazy",src:`https://source.unsplash.com/random/40x40/?person&sig=${s.post.id}`,class:"max-w-full rounded-full",width:"40",height:"40"},null,8,S),t("div",F,[t("div",A,e(a(c)),1),t("div",C,e(("postDate"in s?s.postDate:a(x))(a(i)))+" · "+e(m)+" mins read ",1)])])])]),_:1},8,["to","title"])}}}),L={class:"p-4 xl:p-0"},N=t("div",{class:"text-center py-10 md:max-w-xl md:mx-auto"},[t("h1",{class:"text-3xl mb-3 mt-2 font-semibold tracking-normal text-gray-800"}," Blog "),t("h2",{class:"text-lg mb-8 font-normal text-gray-600 dark:text-gray-400"}," Out latest articles and news from the team and community members about the project. ")],-1),P={key:0,class:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-6"},z={key:1},U={key:2,class:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-6"},R=u({__name:"index",setup(f){const{data:r,pending:c,error:i}=b("https://dummyjson.com/posts","$FGr7S1UjUC");return $({title:"Blog"}),(m,s)=>{var d;const p=I;return o(),l("div",L,[N,a(c)?(o(),l("div",P,[(o(),l(h,null,_(12,n=>t("div",{key:n,class:"bg-gray-200 h-56 animate-pulse rounded-lg"})),64))])):a(i)?(o(),l("div",z,e(a(i)),1)):(o(),l("div",U,[(o(!0),l(h,null,_((d=a(r))==null?void 0:d.posts,n=>(o(),g(p,{key:n.id,post:n},null,8,["post"]))),128))]))])}}});export{R 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.