1import{r as i,s as k,j as e,S as C,N as z,C as u,c as p,B as n,L as l,a0 as o,H as B,F as $}from"./index-BPcx6MvH.js";import{H as g}from"./handshake-CGe_oWZ3.js";import{L as E}from"./loader-circle-BgY0SdOs.js";import{B as c}from"./building-2-DdQeEZ7N.js";import{A as L}from"./award-DUvD15yh.js";import{E as f}from"./external-link-CfXJHtke.js";const O="/assets/partners-hero-DVWvCQ16.jpg",m={platinum:{name:"Platinum Partner",color:"text-slate-700",bgGradient:"bg-gradient-to-br from-slate-100 to-slate-200",order:1},gold:{name:"Gold Partner",color:"text-amber-700",bgGradient:"bg-gradient-to-br from-amber-50 to-amber-100",order:2},silver:{name:"Silver Partner",color:"text-gray-600",bgGradient:"bg-gradient-to-br from-gray-50 to-gray-100",order:3},bronze:{name:"Bronze Partner",color:"text-orange-700",bgGradient:"bg-gradient-to-br from-orange-50 to-orange-100",order:4}},M=()=>{const[d,j]=i.useState([]),[b,N]=i.useState(!0);i.useEffect(()=>{v()},[]);const v=async()=>{const{data:r,error:a}=await k.from("public_corporate_sponsors").select("*").order("company_name");if(a)console.error("Error fetching sponsors:",a);else{const t=(r||[]).sort((s,S)=>{var x,h;const _=((x=m[s.tier])==null?void 0:x.order)||99,P=((h=m[S.tier])==null?void 0:h.order)||99;return _-P});j(t)}N(!1)},y=d.reduce((r,a)=>{const t=a.tier||"bronze";return r[t]||(r[t]=[]),r[t].push(a),r},{}),w=["platinum","gold","silver","bronze"];return e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(C,{title:"Our Partners - Corporate Sponsors & Community Supporters",description:"Meet the amazing businesses and organizations that support Shelby Shelter. Our corporate partners help us save lives every day."}),e.jsx(z,{}),e.jsxs("section",{className:"relative overflow-hidden min-h-[420px] flex items-center justify-center py-16",children:[e.jsxs("div",{className:"absolute inset-0 z-0",children:[e.jsx("img",{src:O,alt:"Business partners shaking hands in front of an animal rescue",className:"w-full h-full object-cover",width:1920,height:1088,fetchPriority:"high",decoding:"async"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-primary/90 via-primary/80 to-accent/50"})]}),e.jsxs("div",{className:"relative container mx-auto px-4 text-center z-10",children:[e.jsx("div",{className:"w-20 h-20 bg-white/20 backdrop-blur-sm rounded-full flex items-center justify-center mx-auto mb-6 border border-white/30",children:e.jsx(g,{className:"w-10 h-10 text-white"})}),e.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-white mb-4 drop-shadow-lg",children:"Our Partners"}),e.jsx("p",{className:"text-xl text-white/95 max-w-3xl mx-auto drop-shadow",children:"We're grateful for the generous support of our corporate partners. Their commitment helps us provide exceptional care for animals in need."})]})]}),e.jsx("section",{className:"py-16",children:e.jsx("div",{className:"container mx-auto px-4",children:b?e.jsx("div",{className:"flex justify-center py-12",children:e.jsx(E,{className:"w-8 h-8 animate-spin text-primary"})}):d.length===0?e.jsx(u,{className:"max-w-lg mx-auto text-center",children:e.jsxs(p,{className:"pt-8 pb-8",children:[e.jsx(c,{className:"w-16 h-16 text-muted-foreground mx-auto mb-4"}),e.jsx("h2",{className:"text-xl font-semibold mb-2",children:"Become Our First Partner"}),e.jsx("p",{className:"text-muted-foreground mb-6",children:"Join us in making a difference for animals in our community."}),e.jsx(n,{asChild:!0,children:e.jsx(l,{to:"/corporate-sponsorship",children:"Learn About Partnership"})})]})}):e.jsx("div",{className:"space-y-16",children:w.map(r=>{const a=y[r];if(!a||a.length===0)return null;const t=m[r];return e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[e.jsx(L,{className:`w-6 h-6 ${t.color}`}),e.jsxs("h2",{className:`text-2xl font-bold ${t.color}`,children:[t.name,"s"]}),e.jsx("div",{className:"flex-1 h-px bg-border"})]}),e.jsx("div",{className:`grid gap-6 ${r==="platinum"?"md:grid-cols-1 lg:grid-cols-2":r==="gold"?"md:grid-cols-2 lg:grid-cols-3":"md:grid-cols-3 lg:grid-cols-4"}`,children:a.map(s=>e.jsx(u,{className:`${t.bgGradient} border-0 shadow-md hover:shadow-lg transition-shadow`,children:e.jsxs(p,{className:`p-6 ${r==="platinum"?"flex items-center gap-8":""}`,children:[e.jsx("div",{className:`${r==="platinum"?"w-32 h-32 shrink-0":r==="gold"?"w-24 h-24 mx-auto mb-4":"w-20 h-20 mx-auto mb-3"} rounded-lg bg-white shadow-sm flex items-center justify-center overflow-hidden`,children:s.logo_url?e.jsx("img",{src:s.logo_url,alt:`${s.company_name} logo`,className:"w-full h-full object-contain p-2"}):e.jsx(c,{className:`${r==="platinum"?"w-12 h-12":r==="gold"?"w-10 h-10":"w-8 h-8"} text-muted-foreground`})}),e.jsxs("div",{className:r==="platinum"?"flex-1":"text-center",children:[e.jsx("h3",{className:`font-bold mb-2 ${r==="platinum"?"text-xl":r==="gold"?"text-lg":"text-base"}`,children:s.company_name}),s.description&&(r==="platinum"||r==="gold")&&e.jsx("p",{className:`text-muted-foreground mb-4 ${r==="platinum"?"text-base":"text-sm line-clamp-2"}`,children:s.description}),e.jsxs("div",{className:`flex gap-3 ${r==="platinum"?"":"justify-center"}`,children:[o(s.website_url)&&e.jsxs("a",{href:o(s.website_url),target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-sm text-primary hover:underline",children:[e.jsx(f,{className:"w-3 h-3"}),"Website"]}),o(s.social_media_url)&&e.jsxs("a",{href:o(s.social_media_url),target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-sm text-primary hover:underline",children:[e.jsx(f,{className:"w-3 h-3"}),"Social"]})]})]})]})},s.id))})]},r)})})})}),e.jsx("section",{className:"py-16 bg-secondary/5",children:e.jsxs("div",{className:"container mx-auto px-4 text-center",children:[e.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Partner With Us"}),e.jsx("p",{className:"text-muted-foreground mb-8 max-w-2xl mx-auto",children:"Corporate partnerships provide vital support for our shelter operations, medical care programs, and community outreach initiatives."}),e.jsxs("div",{className:"grid md:grid-cols-3 gap-8 max-w-4xl mx-auto mb-12",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"w-16 h-16 bg-primary/10 rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx(B,{className:"w-8 h-8 text-primary"})}),e.jsx("h3",{className:"font-semibold mb-2",children:"Make an Impact"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Your support directly helps animals in need find loving homes"})]}),e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"w-16 h-16 bg-primary/10 rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx(c,{className:"w-8 h-8 text-primary"})}),e.jsx("h3",{className:"font-semibold mb-2",children:"Build Your Brand"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Showcase your commitment to the community and animal welfare"})]}),e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"w-16 h-16 bg-primary/10 rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx(g,{className:"w-8 h-8 text-primary"})}),e.jsx("h3",{className:"font-semibold mb-2",children:"Engage Employees"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Volunteer opportunities and team-building events available"})]})]}),e.jsx(n,{asChild:!0,size:"lg",children:e.jsx(l,{to:"/corporate-sponsorship",children:"Become a Partner"})})]})}),e.jsx("section",{className:"py-16 bg-gradient-to-r from-primary to-primary/80",children:e.jsxs("div",{className:"container mx-auto px-4 text-center",children:[e.jsx("h2",{className:"text-3xl font-bold text-white mb-4",children:"Thank You to All Our Supporters"}),e.jsx("p",{className:"text-white/90 mb-8 max-w-2xl mx-auto",children:"Whether you donate, volunteer, foster, or partner with us â every contribution matters."}),e.jsxs("div",{className:"flex flex-wrap justify-center gap-4",children:[e.jsx(l,{to:"/donate",children:e.jsx(n,{size:"lg",variant:"secondary",children:"Make a Donation"})}),e.jsx(l,{to:"/volunteer",children:e.jsx(n,{size:"lg",variant:"secondary",children:"Volunteer"})})]})]})}),e.jsx($,{})]})};export{M 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.