1import{r as n,j as e,G as g,P as u,L as h,h as f,s as p}from"./index-DocTL6Xp.js";import{b as r}from"./blogPosts-A8dJnEaP.js";const a={bg:"#FAF9F5",surface:"#FFFFFF",ink:"#1A1A1A",inkMuted:"#6B6B68",accent:"#C96442",border:"#E8E5DD",borderStrong:"#D8D3C5"};function y(){const[o,d]=n.useState(r);return n.useEffect(()=>{document.title="Articles | GoExpired";const s="Practical guides and insights for domain investors. Learn how to find, evaluate, and flip expired domain auctions.";let i=document.querySelector('meta[name="description"]');i||(i=document.createElement("meta"),i.setAttribute("name","description"),document.head.appendChild(i)),i.setAttribute("content",s)},[]),n.useEffect(()=>{let s=!1;return(async()=>{const{data:l}=await p.from("blog_posts").select("slug, title, description, hero_url, hero_alt, reading_time, published_at").eq("status","published").order("published_at",{ascending:!1});if(s||!(l!=null&&l.length))return;const c=new Set(r.map(t=>t.slug)),m=l.filter(t=>!c.has(t.slug)).map(t=>({slug:t.slug,title:t.title,description:t.description,date:(t.published_at||new Date().toISOString()).slice(0,10),readingTime:t.reading_time||"5 min read",hero:t.hero_url||r[0].hero,heroAlt:t.hero_alt||t.title}));d([...r,...m].sort((t,x)=>t.date<x.date?1:-1))})(),()=>{s=!0}},[]),e.jsxs("div",{style:{backgroundColor:a.bg,color:a.ink,fontFamily:"'Inter', system-ui, sans-serif"},className:"min-h-screen flex flex-col",children:[e.jsx(g,{activeLink:"resources"}),e.jsxs("main",{children:[e.jsx(u,{title:"Blog | GoExpired",description:"Articles and guides for domain investors: flipping strategies, appraisals, auction tactics, and market insights.",path:"/blog"}),e.jsx("section",{className:"max-w-6xl mx-auto w-full px-6 md:px-8 pt-20 md:pt-28 pb-10 md:pb-14",children:e.jsxs("div",{className:"max-w-3xl",children:[e.jsx("h1",{className:"text-5xl leading-[1.05] tracking-tight mb-6 md:text-8xl",style:{fontFamily:"'Cormorant', serif",fontWeight:600,color:a.ink},children:"Articles."}),e.jsx("p",{className:"text-lg md:text-xl leading-relaxed max-w-2xl",style:{color:a.inkMuted,fontFamily:"'Cormorant', serif",fontWeight:500},children:"Practical guides, market notes, and field-tested advice for domain investors."})]})}),e.jsx("section",{className:"max-w-6xl mx-auto w-full px-6 md:px-8 pb-20 flex-grow",children:e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 md:gap-8",children:o.map(s=>e.jsxs(h,{to:`/blog/${s.slug}`,className:"group block rounded-2xl overflow-hidden transition-all duration-200 hover:-translate-y-[2px]",style:{backgroundColor:a.surface,border:`1px solid ${a.border}`},children:[e.jsx("img",{src:s.hero,alt:s.heroAlt,className:"w-full h-48 object-cover",loading:"lazy",width:1536,height:832}),e.jsxs("div",{className:"p-6",children:[e.jsxs("div",{className:"text-xs mb-3",style:{color:a.inkMuted},children:[new Date(s.date).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}),e.jsx("span",{className:"mx-2",children:"·"}),s.readingTime]}),e.jsx("h2",{className:"text-2xl leading-tight tracking-tight mb-3",style:{fontFamily:"'Cormorant', serif",fontWeight:600,color:a.ink},children:s.title}),e.jsx("p",{className:"text-sm leading-relaxed",style:{color:a.inkMuted},children:s.description}),e.jsxs("div",{className:"mt-5 inline-flex items-center gap-1 text-sm font-medium transition-all",style:{color:"#2563EB"},children:["Read article",e.jsx("span",{className:"transition-transform group-hover:translate-x-0.5",children:"â"})]})]})]},s.slug))})})]}),e.jsx(f,{})]})}export{y 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.