PageSourceSearch

https://getautomate.io/assets/blog-2E6CTsKT.js

js getautomate.io collected 2026-10-01 23:43:48 UTC 2,468 bytes, 1 lines download raw bytes

1import{T as p,U as h,V as b,W as f,X as j,j as e,L as v}from"./index-BEZaEVW0.js";import{A as c}from"./ArticleCard-CCw7rfeO.js";import{u as d}from"./use-section-animation-CF9WLsQf.js";import{m as y}from"./proxy-dp7bQzSU.js";import"./clock-BrGmBbdD.js";function V(){const{tag:m}=p.useSearch(),x=h({from:"/blog"}),a=d(),s=d(),g=b(),t=m||"All",n=r=>{x({search:r==="All"?{}:{tag:r}})},i=t==="All"?f:j(t),o=i[0],l=i.slice(1);return e.jsxs("div",{children:[e.jsx("section",{ref:a.ref,className:"pt-32 md:pt-40 pb-12",children:e.jsxs("div",{className:"container-page text-center",children:[e.jsxs(y.div,{initial:{opacity:0,y:20},animate:a.isInView?{opacity:1,y:0}:{},transition:{duration:.6},children:[e.jsxs("h1",{className:"type-h1 mb-4",children:["The Automate ",e.jsx("span",{className:"text-gradient-brand",children:"Blog"})]}),e.jsx("p",{className:"text-lg text-muted-foreground max-w-2xl mx-auto",children:"Practical advice for running and growing a mobile valeting or detailing business. Written by the team behind Automate."})]}),e.jsxs("div",{className:"flex flex-wrap justify-center gap-2 mt-8",children:[e.jsx("button",{onClick:()=>n("All"),className:`px-4 py-2 rounded-full text-sm font-medium transition-all duration-300 border ${t==="All"?"bg-primary text-primary-foreground border-primary":"bg-surface-1 border-border/60 text-muted-foreground hover:text-foreground hover:border-foreground
1/30"}`,children:"All"}),g.map(r=>e.jsx("button",{onClick:()=>n(r),className:`px-4 py-2 rounded-full text-sm font-medium transition-all duration-300 border ${t===r?"bg-primary text-primary-foreground border-primary":"bg-surface-1 border-border/60 text-muted-foreground hover:text-foreground hover:border-foreground/30"}`,children:r},r))]})]})}),o&&e.jsx("section",{className:"pb-8 md:pb-12",children:e.jsx("div",{className:"container-page max-w-5xl",children:e.jsx(c,{article:o,variant:"hero",isInView:a.isInView})})}),l.length>0&&e.jsx("section",{ref:s.ref,className:"pb-20 md:pb-28",children:e.jsx("div",{className:"container-page max-w-5xl space-y-8",children:l.map((r,u)=>e.jsx(c,{article:r,index:u,variant:"hero",isInView:s.isInView},r.slug))})}),i.length===0&&e.jsx("section",{className:"pb-20",children:e.jsxs("div",{className:"container-page text-center text-muted-foreground",children:["No articles with this tag yet. Check back soon."," ",e.jsx(v,{to:"/blog",className:"text-primary hover:underline",children:"See all articles"})]})})]})}export{V as component};

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.