1import{c as v,p as w,r,q as N,R as k,ab as S,u as C,j as e,H as L,A as f,F as A,ac as R,g as _,m as n,L as y,o as B}from"./index-CnQnVpGS.js";import{S as I}from"./SEO-ljdjuLz0.js";import{S as T}from"./SubscribeForm-DuzbZQ2f.js";import{B as D}from"./Breadcrumbs-BLRYl4cO.js";import{S as M}from"./search-CM-jbMWG.js";import{L as E,a as G}from"./list-BoISCGlW.js";import{C as O}from"./calendar-BF9X18zG.js";import{U as P}from"./user-BREziIz9.js";import{C as $}from"./chevron-right-CtpBXQHk.js";import"./circle-check-D-vD40SM.js";/** 2 * @license lucide-react v0.546.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 U=[["path",{d:"M4 11a9 9 0 0 1 9 9",key:"pv89mb"}],["path",{d:"M4 4a16 16 0 0 1 16 16",key:"k0647b"}],["circle",{cx:"5",cy:"19",r:"1",key:"bfqh0e"}]],F=v("rss",U);function Z(){const{category:t}=w(),[c,h]=r.useState("grid"),[i,p]=r.useState(""),[o,u]=r.useState(t||"All"),d=N();k.useEffect(()=>{u(t||"All")},[t]);const g=r.useMemo(()=>S.filter(s=>{const a=s.title.toLowerCase().includes(i.toLowerCase())||s.excerpt.toLowerCase().includes(i.toLowerCase()),l=o==="All"||s.categories.includes(o);return a&&l}),[i,o]),x=r.useMemo(()=>[...g].sort((s,a)=>new Date(a.date).getTime()-new Date(s.date).getTime()),[g]),m=s=>{d(s==="All"?"/blog":`/blog/category/${s}`)},j=C();return e.jsxs("div",{className:"min-h-screen bg-sky-50 pt-24 pb-16",children:[e.jsx(I,{path:j.pathname}),e.jsxs(L,{children:[e.jsx("link",{rel:"alternate",type:"application/rss+xml",title:"ThriveStack Blog RSS",href:"/rss/blog.xml"}),t&&e.jsx("link",{rel:"alternate",type:"application/rss+xml",title:`ThriveStack ${t} RSS`,href:`/rss/${t.toLowerCase()}.xml`})]}),e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-end gap-6 mb-12",children:[e.jsxs("div",{children:[e.jsx(D,{className:"mb-4"}),e.jsx("h1",{className:"text-4xl md:text-5xl font-bold font-display text-slate-900 mb-4",children:t?`${t} Insights`:"Blogs & Insights"}),e.jsx("p",{className:"text-xl text-slate-600 max-w-3xl",children:"Exploring the intersection of Vibe-Coding, AI Agents, and scalable SaaS revenue."}),e.jsx("div",{className:"mt-6",children:e.jsxs("a",{href:"https://cal.com/thrivestack/strategy?duration=45&overlayCalendar=true",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center px-6 py-3 text-base font-bold text-white bg-sky-600 rounded-full hover:bg-sky-700 transition-all shadow-lg hover:shadow-xl transform hover:-translate-y-0.5 duration-200",children:["Book a demo",e.jsx(f,{className:"w-4 h-4 ml-2"})]})})]}),e.jsx("div",{className:"flex items-center gap-3",children:e.jsxs("a",{href:t?`/rss/${t.toLowerCase()}.xml`:"/rss/blog.xml",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 px-4 py-2 bg-orange-50 text-orange-600 rounded-full text-sm font-medium hover:bg-orange-100 transition-colors border border-orange-200",children:[e.jsx(F,{className:"w-4 h-4"}),"RSS Feed"]})})]}),e.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-start md:items-center gap-4 mb-8 bg-white/50 p-4 rounded-2xl border border-sky-100 backdrop-blur-sm",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 w-full md:w-auto",children:[e.jsxs("div",{className:"relative w-full sm:w-64",children:[e.jsx(M,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-slate-400"}),e.jsx("input",{type:"text",placeholder:"Search blogs...",value:i,onChange:s=>p(s.target.value),className:"w-full pl-10 pr-4 py-2 rounded-xl border border-sky-200 bg-white text-slate-900 focus:outline-none focus:ring-2 focus:ring-sky-500 placeholder-slate-400"})]}),e.jsxs("div",{className:"relative w-full sm:w-48",children:[e.jsx(A,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-slate-400"}),e.jsxs("select",{value:o,onChange:s=>m(s.target.value),className:"w-full pl-10 pr-8 py-2 rounded-xl border border-sky-200 bg-white text-slate-900 focus:outline-none focus:ring-2 focus:ring-sky-500 appearance-none cursor-pointer",children:[e.jsx("option",{value:"All",children:"All Categories"}),R.map(s=>e.jsx("option",{value:s,children:s},s))]})]})]}),e.jsxs("div",{className:"flex items-center gap-2 bg-white border border-sky-200 rounded-xl p-1",children:[e.jsx("button",{onClick:()=>h("grid"),className:`p-1.5 rounded-lg transition-colors ${c==="grid"?"bg-sky-100 text-sky-900":"text-slate-500 hover:text-slate-700"}`,title:"Grid view",children:e.jsx(E,{className:"h-5 w-5"})}),e.jsx("button",{onClick:()=>h("list"),className:`p-1.5 rounded-lg transition-colors ${c==="list"?"bg-sky-100 text-sky-900":"text-slate-500 hover:text-slate-700"}`,title:"List view",children:e.jsx(G,{className:"h-5 w-5"})})]})]}),e.jsx(_,{mode:"wait",children:x.length===0?e.jsxs(n.div,{initial:{opacity:0,y:20}
6,animate:{opacity:1,y:0},exit:{opacity:0,y:-20},className:"text-center py-20 bg-white rounded-2xl border border-sky-100 shadow-sm",children:[e.jsx("p",{className:"text-slate-500 text-lg",children:"No blog posts found matching your criteria."}),e.jsx("button",{onClick:()=>{p(""),m("All")},className:"mt-4 text-sky-600 font-medium hover:underline",children:"Clear all filters"})]}):c==="grid"?e.jsx(n.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:x.map((s,a)=>e.jsxs(n.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:a*.05},className:"group bg-white rounded-2xl border border-sky-100 overflow-hidden hover:shadow-xl hover:shadow-sky-500/10 transition-all duration-300 flex flex-col",children:[e.jsxs(y,{to:s.path,className:"block relative aspect-video overflow-hidden border-b border-sky-50",children:[s.image?e.jsx("div",{className:"w-full h-full transform group-hover:scale-105 transition-transform duration-500",dangerouslySetInnerHTML:{__html:s.image}}):e.jsx("div",{className:"w-full h-full bg-sky-100 flex items-center justify-center",children:e.jsx(B,{className:"w-12 h-12 text-sky-300"})}),e.jsx("div",{className:"absolute inset-0 bg-white/20 opacity-0 group-hover:opacity-100 transition-opacity transition-all duration-300 pointer-events-none"})]}),e.jsxs("div",{className:"p-6 flex-1 flex flex-col",children:[e.jsx("div",{className:"flex flex-wrap gap-2 mb-4",children:s.categories.map(l=>e.jsx("button",{onClick:b=>{b.preventDefault(),b.stopPropagation(),m(l)},className:"px-2.5 py-0.5 rounded-full bg-sky-50 text-sky-700 text-xs font-semibold hover:bg-sky-100 transition-colors",children:l},l))}),e.jsx(y,{to:s.path,className:"block mb-3",children:e.jsx("h3",{className:"text-xl font-bold text-slate-900 group-hover:text-sky-600 transition-colors leading-tight",children:s.title})}),e.jsx("p",{className:"text-slate-600 text-sm mb-6 line-clamp-2",children:s.excerpt}),e.jsxs("div",{className:"mt-auto pt-6 border-t border-slate-50 flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-8 h-8 rounded-full bg-sky-100 flex items-center justify-center text-sky-600 text-xs font-bold ring-2 ring-white",children:s.author.charAt(0)}),e.jsxs("div",{className:"text-xs",children:[e.jsx("div",{className:"font-bold text-slate-900",children:s.author}),e.jsx("div",{className:"text-slate-500",children:new Date(s.date).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})})]})]}),e.jsx(f,{className:"w-5 h-5 text-sky-400 transform group-hover:translate-x-1 transition-transform"})]})]})]},s.id))},"grid-view"):e.jsx(n.div,{initial:{opacity:0}
6,animate:{opacity:1},exit:{opacity:0},className:"bg-white rounded-2xl border border-sky-100 overflow-hidden shadow-sm",children:e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-left border-collapse",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"bg-sky-50/50 border-b border-sky-100",children:[e.jsx("th",{className:"py-4 px-6 font-bold text-sky-800 text-xs uppercase tracking-widest",children:"Date"}),e.jsx("th",{className:"py-4 px-6 font-bold text-sky-800 text-xs uppercase tracking-widest",children:"Post"}),e.jsx("th",{className:"py-4 px-6 font-bold text-sky-800 text-xs uppercase tracking-widest",children:"Categories"}),e.jsx("th",{className:"py-4 px-6"})]})}),e.jsx("tbody",{children:x.map(s=>e.jsxs("tr",{onClick:()=>d(s.path),className:"group border-b border-sky-50 last:border-0 hover:bg-sky-50/30 transition-colors cursor-pointer",children:[e.jsx("td",{className:"py-6 px-6 whitespace-nowrap",children:e.jsxs("div",{className:"flex items-center gap-2 text-slate-500 text-sm",children:[e.jsx(O,{className:"w-3 h-3 text-sky-400"}),new Date(s.date).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})]})}),e.jsx("td",{className:"py-6 px-6",children:e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-lg bg-sky-100 flex-shrink-0 overflow-hidden border border-sky-200",children:e.jsx("div",{className:"w-full h-full flex items-center justify-center p-1",dangerouslySetInnerHTML:{__html:s.image||""}})}),e.jsxs("div",{children:[e.jsx("div",{className:"font-bold text-slate-900 group-hover:text-sky-600 transition-colors mb-1",children:s.title}),e.jsxs("div",{className:"text-xs text-slate-500 flex items-center gap-2",children:[e.jsx(P,{className:"w-3 h-3"}),s.author]})]})]})}),e.jsx("td",{className:"py-6 px-6",children:e.jsx("div",{className:"flex flex-wrap gap-1",children:s.categories.map(a=>e.jsx("span",{className:"px-2 py-0.5 rounded-full bg-slate-100 text-slate-600 text-[10px] font-bold uppercase tracking-tight",children:a},a))})}),e.jsx("td",{className:"py-6 px-6 text-right",children:e.jsx($,{className:"h-5 w-5 text-slate-300 group-hover:text-sky-500 group-hover:translate-x-1 transition-all"})})]},s.id))})]})})},"list-view")}),e.jsxs("div",{className:"mt-20 bg-slate-900 rounded-[3rem] p-8 md:p-16 text-center overflow-hidden relative border border-white/10 shadow-2xl",children:[e.jsxs("div",{className:"absolute top-0 left-0 w-full h-full overflow-hidden opacity-20",children:[e.jsx("div",{className:"absolute top-[-10%] left-[-10%] w-[40%] h-[40%] bg-blue-500 rounded-full blur-[120px]"}),e.jsx("div",{className:"absolute bottom-[-10%] right-[-10%] w-[40%] h-[40%] bg-purple-500 rounded-full blur-[120px]"})]}),e.jsxs("div",{className:"relative z-10 max-w-2xl mx-auto",children:[e.jsx("span",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-white/10 text-white text-xs font-bold uppercase tracking-widest mb-6 backdrop-blur-md border border-white/10",children:"Stay Informed"}),e.jsx("h2",{className:"text-3xl md:text-5xl font-bold font-display text-white mb-6",children:"Master the Growth Vibe"}),e.jsx("p",{className:"text-slate-400 text-lg mb-10 leading-relaxed",children:"Join founders and RevOps leaders receiving weekly insights on AI GTM, Vibe-Coding, and autonomous revenue."}),e.jsx(T,{hideLabel:!0}),e.jsx("p",{className:"mt-8 text-slate-500 text-xs",children:"No spam. Just value. Unsubscribe anytime."})]})]})]})]})}export{Z 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.