1import{i as e}from"./rolldown-runtime-B1_YRrcp.js";import{d as t,m as s}from"./vendor-react-DA-w_tJi.js";import{xr as r}from"./vendor-ui-C-SSe3t9.js";import{n as o}from"./client-DVp9qcvq.js";import{M as a,N as l,r as m}from"./index-Bvj_e81I.js";import{t as i}from"./SEOHead-ByPgO3qD.js";var n=e(s(),1),d=t();function c(){const[e,t]=(0,n.useState)([]),[s,c]=(0,n.useState)(!0);return(0,n.useEffect)(()=>{(async()=>{const{data:e}=await o.from("board_members").select("id,name,title,bio,photo_url").eq("is_active",!0).order("sort_order",{ascending:!0}).order("name",{ascending:!0});t(e||[]),c(!1)})()},[]),(0,d.jsxs)(m,{children:[(0,d.jsx)(i,{title:"Board Members | Back to The Roots Flag Football",description:"Meet the volunteer board members who help run Back to The Roots Flag Football.",path:"/board"}),(0,d.jsx)("section",{className:"bg-gradient-to-b from-primary/5 to-background py-16",children:(0,d.jsxs)("div",{className:"container mx-auto px-4 text-center",children:[(0,d.jsx)("h1",{className:"text-4xl md:text-5xl font-bold mb-4",style:{fontFamily:"'Playfair Display', serif"},children:"Board Members"}),(0,d.jsx)("p",{className:"text-lg text-muted-foreground max-w-2xl mx-auto",children:"The volunteers who help guide Back to The Roots Flag Football."})]})}),(0,d.jsx)("section",{className:"container mx-auto px-4 py-12",children:s?(0,d.jsx)("div",{className:"flex justify-center py-16",children:(0,d.jsx)(r,{className:"h-8 w-8 animate-spin text-muted-foreground"})}):0===e.length?(0,d.jsx)("p",{className:"text-center text-muted-foreground py-12",children:"Board members will be listed here soon."}):(0,d.jsx)("div",{className:"grid gap-6 sm:grid-cols-2 lg:grid-cols-3 max-w-5xl mx-auto",children:e.map(e=>(0,d.jsx)(a,{className:"overflow-hidden",children:(0,d.jsxs)(l,{className:"p-6 text-center",children:[e.photo_url?(0,d.jsx)("img",{src:e.photo_url,alt:e.name,className:"h-28 w-28 rounded-full object-cover mx-auto mb-4 ring-4 ring-primary/10"}):(0,d.jsx)("div",{className:"h-28 w-28 rounded-full bg-muted mx-auto mb-4 flex items-center justify-center text-2xl font-bold text-muted-foreground",children:e.name.split(" ").map(e=>e[0]).slice(0,2).join("")}),(0,d.jsx)("h3",{className:"font-bold text-lg",children:e.name}),(0,d.jsx)("p",{className:"text-primary font-medium text-sm mb-2",children:e.title}),e.bio&&(0,d.jsx)("p",{className:"text-sm text-muted-foreground mb-3",children:e.bio})]})},e.id))})})]})}export{c as default}; 2//# sourceMappingURL=Board-CgUxRQY8.js.map
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.