1import{r as _,N as m,c as s,a as t,F as l,D as i,E as h,o as a,A as p,t as n,d as b}from"./entry.DMz65KQG.js";import{a as f}from"./axios.Bo0ATomq.js";const y={class:"bg-white py-24 sm:py-32"},v={class:"mx-auto max-w-7xl px-6 lg:px-8"},w=t("div",{class:"mx-auto max-w-2xl text-center"},[t("h2",{class:"text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl"},"From the blog"),t("p",{class:"mt-2 text-lg leading-8 text-gray-600"},"Learn how to grow your business with our expert advice.")],-1),B={class:"mx-auto mt-16 grid max-w-2xl grid-cols-1 gap-x-8 gap-y-20 lg:mx-0 lg:max-w-none lg:grid-cols-3"},k={class:"relative w-full"},$=["href"],L=["src"],U=t("div",{class:"absolute inset-0 rounded-2xl ring-1 ring-inset ring-gray-900/10"},null,-1),E={class:"max-w-xl"},F={class:"mt-8 flex items-center gap-x-4 text-xs"},N=["datetime"],P={class:"group relative"},R={class:"mt-3 text-lg font-semibold leading-6 text-gray-900 group-hover:text-gray-600"},S=["href"],j=t("span",{class:"absolute inset-0"},null,-1),D={class:"mt-5 text-sm leading-6 text-gray-600"},T={__name:"latestPosts",setup(V){const c=_([]),o=h().public.strapiBaseUrl;return console.log("Strapi Base URL:",o),m(async()=>{try{console.log("Strapi Base URL:",o);const r=await f.get(`${o}/api/blogs?populate=*`);c.value=r.data.data}catch(r){console.error("Error fetching blog posts:",r)}}),(r,C)=>(a(),s("div",y,[t("div",v,[w,t("div",B,[(a(!0),s(l,null,i(c.value,e=>(a(),s("article",{key:e.id,class:"flex flex-col items-start justify-between"},[t("div",k,[t("a",{href:`/blog/${e.attributes.slug}`},[t("img",{src:`${p(o)}${e.attributes.mainImg.data.attributes.url}`,class:"aspect-[16/9] w-full rounded-2xl bg-gray-100 object-cover sm:aspect-[2/1] lg:aspect-[3/2]"},null,8,L)],8,$),U]),t("div",E,[t("div",F,[t("time",{datetime:e.attributes.datePublished,class:"text-gray-500"},n(e.attributes.datePublished),9,N)]),t("div",P,[t("h3",R,[t("a",{href:`/blog/${e.attributes.slug}`},[j,b(" "+n(e.attributes.title),1)],8,S)]),t("div",D,[(a(!0),s(l,null,i(e.attributes.content,(d,g)=>(a(),s("div",{key:g},[(a(!0),s(l,null,i(d.children,(u,x)=>(a(),s("p",{key:x},n(u.text),1))),128))]))),128))])])])]))),128))])])]))}};export{T 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.