1import{F as n,a2 as o,O as e,L as r,V as d,A as m}from"./index-IBHyG7M_.js";import{S as c}from"./SectionHeading-CjTUwnnv.js";import{S as g}from"./skeleton-0R1CQmu9.js";import{m as x}from"./proxy-Dtno_ZDt.js";import{f as u}from"./format-sbWH3_uq.js";import{C as h}from"./clock-D5veJVIH.js";/** 2 * @license lucide-react v0.462.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const p=n("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]),w=()=>{const{data:a,isLoading:t}=o();if(!t&&(!a||a.length===0))return null;const l=(a||[]).slice(0,3);return e.jsx("section",{className:"home-section bg-[linear-gradient(180deg,rgba(241,247,255,0.84),rgba(249,251,255,0.98))]",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsx(c,{badge:"Blog",title:"Insights & Engineering Deep Dives",description:"Expert perspectives on cloud, DevOps, and AI from our engineering team."}),e.jsx("div",{className:"mt-14 grid md:grid-cols-3 gap-6",children:t?[1,2,3].map(s=>e.jsx(g,{className:"h-72 rounded-2xl"},s)):l.map((s,i)=>e.jsx(x.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:i*.1},children:e.jsxs(r,{to:`/blog/${s.slug}`,className:"home-panel group block h-full overflow-hidden",children:[e.jsx("div",{className:"aspect-video bg-muted overflow-hidden",children:s.featured_image?e.jsx("img",{src:d(s.featured_image),alt:s.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500",loading:"lazy",decoding:"async"}):e.jsx("div",{className:"w-full h-full flex items-center justify-center bg-gradient-to-br from-primary/5 to-muted",children:e.jsx(p,{className:"w-10 h-10 text-muted-foreground/30"})})}),e.jsxs("div",{className:"p-6",children:[e.jsxs("div",{className:"flex items-center gap-3 text-xs text-muted-foreground mb-3",children:[s.published_at&&e.jsx("span",{children:u(new Date(s.published_at),"MMM d, yyyy")}),s.read_time_minutes&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(h,{className:"w-3 h-3"})," ",s.read_time_minutes," min"]})]}),e.jsx("h3",{className:"font-display font-semibold text-foreground group-hover:text-primary transition-colors leading-snug line-clamp-2",children:s.title}),s.excerpt&&e.jsx("p",{className:"text-sm text-muted-foreground mt-2 leading-relaxed line-clamp-2",children:s.excerpt})]})]})},s.slug||i))}),e.jsx("div",{className:"mt-10 text-center",children:e.jsxs(r,{to:"/blog",className:"inline-flex items-center gap-1 text-sm font-medium text-primary hover:underline",children:["View All Posts ",e.jsx(m,{className:"w-3.5 h-3.5"})]})})]})})};export{w 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.