1import{j as e,L as o}from"./vendor-react-Bvxn0ZWA.js";import{b as p,aJ as h,aK as u,aL as g,i,S as f,b7 as j,b8 as b,B as n,A as d,aN as y,s as N}from"./index-CuYhX9mQ.js";import{S as w}from"./skeleton-D2IgXurf.js";import{S as v}from"./sparkles-Ixph1cCz.js";import{C as k}from"./clock-BVKv9xWf.js";import"./vendor-supabase-Hcsneau6.js";import"./vendor-motion-D7UPHYNS.js";const _="/assets/header-handoff-templates-5Q9DCFgr.png";function R(){const{data:a,isLoading:m}=p({queryKey:["handoff-templates"],queryFn:async()=>{const{data:s,error:t}=await N.from("handoff_templates").select("id, slug, title, subtitle, subcategory_label, icon_initials, category, platform, download_url, preview_image_url").eq("is_published",!0).order("sort_order",{ascending:!0});if(t)throw t;return s??[]}}),c=(a??[]).filter(s=>s.download_url),r=[];for(const s of c){const t=s.platform||"Other";let l=r.find(x=>x.platform===t);l||(l={platform:t,templates:[]},r.push(l)),l.templates.push(s)}return e.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[e.jsx(h,{...u("/handoff-templates")}
1),e.jsx(g,{}),e.jsx("section",{className:"px-4 pt-14 md:pt-20 pb-10 md:pb-12 text-center",children:e.jsxs("div",{className:"container mx-auto max-w-3xl",children:[e.jsx("img",{src:_,alt:"",className:"w-full max-h-[120px] md:max-h-[180px] object-contain mx-auto mb-6",loading:"eager"}),e.jsx(i,{variant:"outline",className:"text-primary border-primary/30 mb-5 px-4 py-1.5",children:"Handoff Templates"}),e.jsx("h1",{className:"text-3xl sm:text-4xl md:text-5xl font-bold tracking-tight mb-5",children:"Free Coverage Handoff Templates"}),e.jsx("p",{className:"text-base sm:text-lg text-muted-foreground leading-relaxed",children:"Ready-to-use documents that keep your team's work moving when someone's away. Browse by the tool your team already uses or by job role, then download the one you need â free."})]})}),e.jsx("section",{className:"px-4 pb-6",children:e.jsx("div",{className:"container mx-auto max-w-5xl grid grid-cols-1 md:grid-cols-3 gap-4",children:[{icon:v,title:"Nothing slips through",body:"Every section a teammate needs to pick up your work â projects, contacts, and open decisions."},{icon:f,title:"No clutter",body:"Just the essentials your stand-in actually needs. Nothing extra to wade through."},{icon:k,title:"Ready in 5 minutes",body:"Open it, fill in your details, and share."}].map(s=>e.jsxs("div",{className:"rounded-2xl border bg-card p-5",children:[e.jsx(s.icon,{className:"h-5 w-5 text-primary mb-2"}),e.jsx("div",{className:"font-semibold mb-1",children:s.title}),e.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:s.body})]},s.title))})}),m?e.jsx("section",{className:"px-4 py-10 md:py-14",children:e.jsx("div",{className:"container mx-auto max-w-6xl",children:e.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-5",children:Array.from({length:3}).map((s,t)=>e.jsx(w,{className:"h-72 rounded-2xl"},t))})})}):r.length===0?e.jsx("section",{className:"px-4 py-10 md:py-14",children:e.jsx("div",{className:"container mx-auto max-w-6xl",children:e.jsx("p",{className:"text-sm text-muted-foreground",children:"No templates here yet â check back soon."})})}):r.map((s,t)=>e.jsx("section",{className:`px-4 py-10 md:py-14 ${t%2===1?"bg-muted/40":""}`,children:e.jsxs("div",{className:"container mx-auto max-w-6xl",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[e.jsx(j,{className:"h-5 w-5 text-primary"}),e.jsxs("h2",{className:"text-2xl font-bold tracking-tight",children:[s.platform," Templates"]})]}),e.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-5",children:s.templates.map(l=>e.jsx(F,{t:l},l.id))})]})},s.platform)),e.jsx("section",{className:"px-4 py-12 md:py-16",children:e.jsxs("div",{className:"container mx-auto max-w-3xl",children:[e.jsx("h2",{className:"text-2xl md:text-3xl font-bold tracking-tight mb-6 text-center",children:"Frequently asked questions"}),e.jsx("div",{className:"space-y-3",children:b.map(s=>e.jsxs("div",{className:"rounded-2xl border bg-card p-5",children:[e.jsx("h3",{className:"font-semibold mb-2",children:s.q}),e.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:s.a})]},s.q))})]})}),e.jsx("section",{className:"px-4 py-16 md:py-20 text-center",children:e.jsxs("div",{className:"container mx-auto max-w-2xl",children:[e.jsx("h3",{className:"text-2xl md:text-3xl font-bold tracking-tight mb-4",children:"A template is step one. Be Right Back runs the rest."}),e.jsx("p",{className:"text-muted-foreground mb-7",children:"These docs are the starting point of our coverage planning process. Be Right Back builds the workflow around them â prompting the right handoff when someone books time off, making sure the person covering acknowledges it, and bringing it back for review when they return. You still write the handoff; we make sure it actually gets used."}),e.jsx(n,{size:"lg",className:"gradient-primary border-0 rounded-full px-7",asChild:!0,children:e.jsxs(o,{to:"/auth?mode=signup",children:["Get started free ",e.jsx(d,{className:"ml-2 h-4 w-4"})]})})]})}),e.jsx(y,{})]})}function F({t:a}){return e.jsxs(o,{to:`/handoff-templates/${a.slug}`,className:"group flex flex-col rounded-2xl border bg-card overflow-hidden hover:shadow-
1playful transition-shadow",children:[e.jsx("div",{className:"aspect-[16/10] bg-muted/50 border-b overflow-hidden flex items-center justify-center",children:a.preview_image_url?e.jsx("img",{src:a.preview_image_url,alt:`${a.title} preview`,className:"w-full h-full object-cover object-top group-hover:scale-[1.02] transition-transform",loading:"lazy"}):e.jsx("div",{className:"h-14 w-14 rounded-xl bg-primary/10 text-primary font-bold flex items-center justify-center text-lg",children:a.icon_initials||a.subcategory_label.slice(0,1).toUpperCase()})}),e.jsxs("div",{className:"flex flex-col flex-1 p-5",children:[e.jsx("div",{className:"font-semibold leading-snug",children:a.title||a.subcategory_label}),a.platform&&e.jsx("div",{className:"mt-1.5",children:e.jsxs(i,{variant:"outline",className:"text-[11px] font-normal",children:[a.platform," Template"]})}),e.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed mt-2.5 line-clamp-2",children:a.subtitle||a.title}),e.jsxs(n,{size:"sm",className:"mt-4 w-full rounded-full pointer-events-none",children:["View & download ",e.jsx(d,{className:"ml-1.5 h-4 w-4"})]})]})]})}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.