1import{h as N,l as v,r as l,j as e,L as s}from"./react-CO5jtP66.js";import{A as y}from"./index-xEDczbpx.js";import{S as F}from"./SEO-BJIAfaID.js";import{b as x}from"./utils-CFYSmUxA.js";import{g as m}from"./blogRegistry-gfIUNSG0.js";import{m as h}from"./motion-5Q1tMHE_.js";import{S as i,a as d,j as o,i as b,a0 as g,x as p,T as R,U as E,ag as L,G as S,w as z}from"./icons-BY9RYoLK.js";function T(){const{category:u}=N();v();const[r,n]=l.useState([]),[f,c]=l.useState(!0),t=u||"All",j=[{id:"All",icon:o},{id:"Spotlight",icon:i},{id:"Events",icon:b},{id:"Lifestyle",icon:R},{id:"Resident Guide",icon:d},{id:"Eats & Shop",icon:E},{id:"Education",icon:L},{id:"Development",icon:S},{id:"History",icon:g}];l.useEffect(()=>{w()},[t]);const w=async()=>{try{c(!0),n(m(t))}catch(a){console.error("Error loading posts:",a),n([])}finally{c(!1)}};return e.jsxs("div",{className:"min-h-screen bg-[#FDFBF7] dark:bg-slate-950 transition-colors duration-500",children:[e.jsx(F,{title:"The LWR Chronicles",description:"Premium community journalism and development insights for Lakewood Ranch, Florida. Explore the latest in lifestyle, real estate, and community growth.",image:"/images/branding/waterside-place.webp"}),e.jsx("section",{className:"pt-32 pb-16 border-b border-amber-200/60 dark:border-slate-800 bg-gradient-to-b from-amber-50/70 via-sky-50/30 to-[#FDFBF7] dark:from-slate-950",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"max-w-3xl",children:[e.jsxs(h.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-amber-100/90 text-amber-900 border border-amber-200/80 mb-6 shadow-xs",children:[e.jsx(i,{className:"h-4 w-4 text-amber-600"}),e.jsx("span",{className:"text-[11px] font-bold uppercase tracking-[0.2em]",children:"Community Editorial & Guides"})]}),e.jsxs("h1",{className:"text-4xl sm:text-6xl md:text-7xl font-black text-slate-900 dark:text-white tracking-tight mb-4 leading-tight font-display",children:["The ",e.jsx("span",{className:"text-sky-600 dark:text-sky-400",children:"LWR Chronicles."})]}),e.jsx("p",{className:"text-base md:text-lg text-slate-600 dark:text-slate-300 font-normal leading-relaxed mb-6",children:"Field guides for choosing neighborhoods, planning weekends, dining, and living well across Lakewood Ranch."}),e.jsxs("div",{className:"flex flex-wrap gap-2.5",children:[e.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full border border-emerald-200/80 bg-emerald-50 px-3.5 py-1 text-xs font-bold uppercase tracking-wider text-emerald-800 dark:bg-emerald-950/40 dark:text-emerald-300",children:[e.jsx(d,{className:"h-3.5 w-3.5"})," Verified Guides"]}),e.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full border border-amber-200/80 bg-white dark:bg-slate-900 px-3.5 py-1 text-xs font-bold uppercase tracking-wider text-slate-700 dark:text-slate-300",children:[e.jsx(o,{className:"h-3.5 w-3.5 text-sky-600"})," ",r.length||m(t).length," Published Articles"]})]})]})})}),e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-16",children:e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-12",children:[e.jsx("div",{className:"lg:col-span-8 space-y-12",children:f?e.jsxs("div",{className:"py-24 text-center",children:[e.jsxs("div",{className:"h-14 w-14 mx-auto relative mb-6",children:[e.jsx("div",{className:"absolute inset-0 rounded-full border-4 border-amber-100"}),e.jsx("div",{className:"absolute inset-0 rounded-full border-4 border-sky-600 border-t-transparent animate-spin"})]}),e.jsx("p",{className:"text-slate-400 font-bold uppercase tracking-wider text-xs animate-pulse",children:"Loading Editorial Records"})]}):r.length>0?r.map(a=>e.jsxs(h.article,{initial:{opacity:0,y:25},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"group relative bg-white dark:bg-slate-900 rounded-[2rem] p-5 pb-8 border border-amber-100 dark:border-slate-800 shadow-sm hover:shadow-md transition-all duration-300",children:[e.jsx(s,{to:`/blog/${a.slug||a.id}`,className:"absolute inset-0 z-30 rounded-[2rem]",title:`Read ${a.title}`}),e.jsxs("div",{className:"relative aspect-[16/9] mb-6 overflow-hidden rounded-2xl border border-amber-100/60 dark:border-slate-800 z-10 bg-amber-50/40",children:[e.jsx("img",{src:a.imageUrl||a.image||x(a.title),alt:a.title,className:"w-full h-full object-cover transition-transform duration-700 group-hover:scale-105",onError:k=>{k.currentTarget.src=x(a.title)},referrerPolicy:"no-referrer"}),e.jsx("div",{className:"absolute top-4 left-4 z-40",children:e.jsx(s,{to:`/blog/category/${a.category}`,className:"inline-block px-3.5 py-1 rounded-full bg-white/95 backdrop-blur-md text-xs font-bold uppercase tracking-wider text-sky-700 border border-amber-200/60 shadow-xs hover:bg-sky-600 hover:text-white transition-all cursor-pointer pointer-events-auto",children:a.category})})]}),e.jsxs("div",{className:"px-3 max-w-3xl relative z-10",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-4 mb-3 text-xs font-medium text-slate-400",children:[e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx(b,{className:"h-3.5 w-3.5 text-sky-600"}),new Date(a.date).toLocaleDateString(void 0,{month:"short",day:"numeric",year:"numeric"})]}),e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx(g,{className:"h-3.5 w-3.5"}),"6 min read"]}),e.jsxs("span",{className:"flex items-center gap-1.5 text-emerald-700 dark:text-emerald-400 font-semibold",children:[e.jsx(d,{className:"h-3.5 w-3.5"}),"Verified"]})]}),e.jsx(s,{to:`/blog/${a.slug||a.id}`,className:"relative z-40 block mb-3",children:e.jsx("h2",{className:"text-2xl sm:text-3xl font-bold text-slate-900 dark:text-white tracking-tight leading-tight transition-colors group-hover:text-sky-600",children:a.title})}
1),e.jsx("p",{className:"text-sm text-slate-600 dark:text-slate-400 leading-relaxed mb-6 line-clamp-3",children:a.excerpt}),e.jsxs(s,{to:`/blog/${a.slug||a.id}`,className:"relative z-40 inline-flex items-center gap-2 text-sky-600 font-bold text-xs uppercase tracking-wider group/btn",children:["Read Article ",e.jsx(p,{className:"h-3.5 w-3.5 group-hover/btn:translate-x-1 transition-transform"})]})]})]},a.id)):e.jsxs("div",{className:"text-center py-24 bg-white dark:bg-slate-900 rounded-[2.5rem] border border-amber-200/60",children:[e.jsx(o,{className:"h-12 w-12 text-amber-300 mx-auto mb-4"}),e.jsx("h3",{className:"text-xl font-bold text-slate-900 dark:text-white mb-2",children:"No content found"}),e.jsx("p",{className:"text-slate-500 text-sm",children:"We are currently updating the community chronicles."})]})}),e.jsx("aside",{className:"lg:col-span-4",children:e.jsxs("div",{className:"sticky top-28 space-y-8",children:[e.jsxs("div",{className:"bg-white dark:bg-slate-900 p-6 rounded-[2rem] border border-amber-100 dark:border-slate-800 shadow-sm relative z-20",children:[e.jsx("h3",{className:"text-lg font-bold text-slate-900 dark:text-white mb-4 tracking-tight",children:"Categories"}),e.jsx("div",{className:"space-y-1.5",children:j.map(a=>e.jsxs(s,{to:a.id==="All"?"/blog":`/blog/category/${a.id}`,className:`w-full flex items-center justify-between p-3 rounded-xl text-xs font-bold uppercase tracking-wider transition-all cursor-pointer relative z-30 ${t===a.id?"bg-sky-600 text-white shadow-xs":"bg-[#FDFBF7] dark:bg-slate-950 border border-amber-100/60 dark:border-slate-800 text-slate-700 dark:text-slate-300 hover:text-sky-600 hover:border-sky-400"}`,children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(a.icon,{className:"h-4 w-4"}),a.id]}),e.jsx(z,{className:`h-3.5 w-3.5 transition-transform ${t===a.id?"rotate-90":""}`})]},a.id))})]}),e.jsxs("div",{className:"bg-gradient-to-br from-sky-600 via-teal-600 to-emerald-600 p-8 rounded-[2rem] text-white relative overflow-hidden shadow-md",children:[e.jsx(i,{className:"absolute top-0 right-0 h-32 w-32 text-white/10 -mr-6 -mt-6"}),e.jsx("h3",{className:"text-xl font-bold mb-2 relative z-10",children:"LWR Weekly Digest"}),e.jsx("p",{className:"text-sky-50 text-xs leading-relaxed mb-6 relative z-10",children:"Follow the next wave of neighborhood, dining, and event intelligence across Lakewood Ranch."}),e.jsxs(s,{to:"/contact",className:"inline-flex items-center gap-2 bg-white text-sky-700 px-6 py-2.5 rounded-xl font-bold text-xs uppercase tracking-wider relative z-10 hover:bg-amber-50 transition-colors shadow-xs",children:["Subscribe Free ",e.jsx(p,{className:"h-3.5 w-3.5"})]})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsx("span",{className:"text-[10px] font-bold uppercase tracking-wider text-slate-400 px-4",children:"Direct Partners"}),e.jsx(y,{placement:"sidebar",className:"rounded-[2rem]"})]})]})})]})})]})}export{T as BlogPage};
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.