1import{j as e,N as f,B as o,L as d}from"./index-BBlr5mjY.js";import j from"./Footer-BcvGzZsu.js";import{I as N}from"./input-LQyS_ux5.js";import{r as m,a3 as b,D as y,C as x,aa as h,J as g}from"./vendor-icons-DdDstFZX.js";import{S as v}from"./SEOHead-Wid-dq_R.js";import{b as w,a as C}from"./blogPosts-4umwHR5u.js";const R=()=>{const[r,l]=m.useState(""),[a,n]=m.useState("All"),t=w.filter(s=>{const u=s.title.toLowerCase().includes(r.toLowerCase())||s.excerpt.toLowerCase().includes(r.toLowerCase()),p=a==="All"||s.category===a;return u&&p}),i=t.filter(s=>s.featured),c=t.filter(s=>!s.featured);return e.jsx(e.Fragment,{children:e.jsxs("main",{className:"min-h-screen",children:[e.jsx(v,{title:"RentalTide Blog | Rental Industry Insights & Guides",description:"Expert insights on rental business management, AI technology, pricing strategies, and growth tips. Stay ahead with RentalTide's rental industry blog.",path:"/blog",keywords:"rental business blog, rental industry insights, rental software guides, equipment rental tips"}),e.jsx(f,{}),e.jsx("section",{className:"relative bg-gradient-to-b from-primary/5 to-background pt-24 pb-16",children:e.jsx("div",{className:"container mx-auto px-4 sm:px-6",children:e.jsxs("div",{className:"text-center max-w-4xl mx-auto",children:[e.jsxs("h1",{className:"text-4xl sm:text-5xl lg:text-6xl font-bold mb-6",children:["RentalTide ",e.jsx("span",{className:"text-gradient-primary",children:"Blog"})]}),e.jsx("p",{className:"text-lg sm:text-xl text-muted-foreground mb-8",children:"Expert insights, industry trends, and practical tips to help you grow your rental business"}),e.jsx("div",{className:"max-w-2xl mx-auto mb-8",children:e.jsxs("div",{className:"relative",children:[e.jsx(b,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-muted-foreground"}),e.jsx(N,{type:"search",placeholder:"Search articles...",className:"pl-10 pr-4 py-6 text-lg",value:r,onChange:s=>l(s.target.value)})]})}),e.jsx("div",{className:"flex flex-wrap justify-center gap-2",children:C.map(s=>e.jsxs(o,{variant:a===s?"default":"outline",size:"sm",onClick:()=>n(s),className:"rounded-full",children:[e.jsx(y,{className:"w-3 h-3 mr-1"}),s]},s))})]})})}),i.length>0&&e.jsx("section",{className:"py-16 bg-secondary/20",children:e.jsxs("div",{className:"container mx-auto px-4 sm:px-6",children:[e.jsx("h2",{className:"text-3xl font-bold mb-8",children:"Featured Articles"}),e.jsx("div",{className:"grid lg:grid-cols-2 gap-8",children:i.map(s=>e.jsx(d,{to:`/blog/${s.slug}`,className:"group block",children:e.jsx("article",{className:"bg-card border border-border rounded-2xl overflow-hidden hover:shadow-xl transition-all duration-300 group-hover:border-primary/30 h-full",children:e.jsxs("div",{className:"p-8",children:[e.jsxs("div",{className:"flex items-center gap-4 text-sm text-muted-foreground mb-4",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(x,{className:"w-4 h-4"}),new Date(s.date).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(h,{className:"w-4 h-4"}),s.readTime]}),e.jsx("span",{className:"px-3 py-1 bg-primary text-primary-foreground text-xs font-medium rounded-full",children:s.category})]}),e.jsx("h3",{className:"text-2xl font-bold mb-3 group-hover:text-primary transition-colors line-clamp-2",children:s.title}),e.jsx("p",{className:"text-muted-foreground leading-relaxed mb-4 line-clamp-3",children:s.excerpt}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("span",{className:"text-sm text-muted-foreground",children:["By ",s.author]}),e.jsx(g,{className:"w-5 h-5 text-primary group-hover:translate-x-1 transition-transform"})]})]})})},s.id))})]})}),e.jsx("section",{className:"py-16",children:e.jsxs("div",{className:"container mx-auto px-4 sm:px-6",children:[c.length>0&&e.jsxs(e.Fragment,{children:[e.jsx("h2",{className:"text-3xl font-bold mb-8",children:a==="All"?"All Articles":`${a} Articles`}),e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:c.map(s=>e.jsx(d,{to:`/blog/${s.slug}`,className:"group block",children:e.jsx("article",{className:"bg-card border border-border rounded-xl overflow-hidden hover:shadow-lg transition-all duration-300 group-hover:border-primary/30 h-full flex flex-col",children:e.jsxs("div",{className:"p-6 flex-1 flex flex-col",children:[e.jsxs("div",{className:"flex items-center gap-4 text-sm text-muted-foreground mb-3",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(x,{className:"w-4 h-4"}),new Date(s.date).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(h,{className:"w-4 h-4"}),s.readTime]}),e.jsx("span",{className:"px-2 py-1 bg-secondary text-xs rounded-full",children:s.category})]}),e.jsx("h3",{className:"text-lg font-bold mb-3 group-hover:text-primary transition-colors line-clamp-2",children:s.title}),e.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed mb-4 line-clamp-3 flex-1",children:s.excerpt}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("span",{className:"text-sm text-muted-foreground",children:["By ",s.author]}),e.jsx(g,{className:"w-4 h-4 text-primary group-hover:translate-x-1 transition-transform"})]})]})})},s.id))})]}),t.length===0&&e.jsxs("div",{className:"text-center py-16",children:[e.jsx("p",{className:"text-xl text-muted-foreground mb-4",children:"No articles found matching your search criteria."}),e.jsx(o,{variant:"outline",onClick:()=>{l(""),n("All")},children:"Clear Filters"})]})]})}),e.jsx(j,{})]})})};export{R 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.