PageSourceSearch

https://smackah.com/assets/About-BdIJp2Yy.js

js smackah.com collected 2026-10-10 00:45:32 UTC 6,976 bytes, 1 lines download raw bytes

1import{r as a,s as N,j as e,C,a as A,U as k,A as F,H as M,L as H,P as L,b as _,c as K,B as S,M as R}from"./index-DbUPl3PC.js";import{D}from"./dollar-sign-BDYHvjIq.js";const O=13e3,T=400,B=15;function I({value:r,prefix:j="",suffix:v="",duration:c=2e3}){const[y,h]=a.useState(0),[p,g]=a.useState(!1),d=a.useRef(null);return a.useEffect(()=>{const n=new IntersectionObserver(([o])=>{o.isIntersecting&&g(!0)},{threshold:.1});return d.current&&n.observe(d.current),()=>n.disconnect()},[]),a.useEffect(()=>{if(!p)return;let n;const o=s=>{n||(n=s);const l=Math.min((s-n)/c,1);h(Math.floor(l*r)),l<1&&requestAnimationFrame(o)};requestAnimationFrame(o)},[p,r,c]),e.jsxs("span",{ref:d,className:"tabular-nums",children:[j,y.toLocaleString(),v]})}function P(){const[r,j]=a.useState(O),[v,c]=a.useState(T),[y,h]=a.useState("K+"),[p,g]=a.useState(0),[d,n]=a.useState(B);a.useEffect(()=>{(async()=>{const[s,l]=await Promise.all([N.from("event_results").select("year, participants_count, funds_given_cents, funds_given_override_cents"),N.from("historical_results").select("year, participants_count, funds_raised_cents")]),m=s.data||[],b=l.data||[];if(m.length===0&&b.length===0)return;const u=new Set;let x=0,f=0;for(const t of m)u.add(t.year),x+=t.participants_count||0,f+=t.funds_given_override_cents??t.funds_given_cents??0;for(const t of b){if(u.has(t.year)){const i=m.find(w=>w.year===t.year);i&&(x-=i.participants_count||0,f-=i.funds_given_override_cents??i.funds_given_cents??0)}u.add(t.year),x+=t.participants_count||0,f+=t.funds_raised_cents||0}if(u.size>0&&n(u.size),x>0&&j(Math.floor(x/100)*100),f>0){const t=f/100;if(t>=1e6){const i=Math.floor(t/1e5)/10;c(i),h("M+"),g(1)}else{const i=Math.floor(t/1e4)*10;c(i),h("K+"),g(0)}}})()},[]);const o=[{icon:k,value:r,prefix:"",suffix:"+",label:"Total Participants",color:"text-secondary",decimals:0},{icon:D,value:v,prefix:"$",suffix:y,label:"Funds Raised",color:"text-accent",decimals:p},{icon:F,value:d,prefix:"",suffix:"",label:"Years Running",color:"text-primary",decimals:0}];return e.jsxs("section",{className:"py-20 bg-gradient-subtle relative overflow-hidden",children:[e.jsxs("div",{className:"absolute inset-0 pointer-events-none",children:[e.jsx("div",{className:"absolute top-0 left-1/4 w-96 h-96 bg-primary/5 rounded-full blur-3xl"}),e.jsx("div",{className:"absolute bottom-0 right-1/4 w-96 h-96 bg-secondary/5 rounded-full blur-3xl"})]}),e.jsxs("div",{className:"container mx-auto px-4 relative",children:[e.jsxs("div",{className:"text-center mb-12",children:[e.jsx("h2",{className:"text-3xl sm:text-4xl font-heading font-bold text-foreground mb-4",children:"Our Impact Over the Years"}),e.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto",children:"Since 2010, Happy Smackah has brought together our community to make a real difference in the lives of those facing medical hardship."})]}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-6",children:o.map((s,l)=>{const m=s.icon,b=s.decimals>0;return e.jsx(C,{variant:"feature",className:"text-center animate-slide-up",style:{animationDelay:`${l*.1}s`},children:e.jsxs(A,{className:"pt-8 pb-6",children:[e.jsx("div",{className:`w-14 h-14 rounded-2xl bg-muted flex items-center justify-center mx-auto mb-4 ${s.color}`,children:e.jsx(m,{className:"w-7 h-7"})}),e.jsx("div",{className:"text-3xl sm:text-4xl font-heading font-bold text-foreground mb-2",children:b?e.jsxs("span",{className:"tabular-nums",children:[s.prefix,s.value.toFixed(1),s.suffix]}):e.jsx(I,{value:s.value,prefix:s.prefix,suffix:s.suffix})}),e.jsx("p",{className:"text-muted-foreground text-sm font-medium",children:s.label})]})},s.label)})})]})]})}const Y=()=>e.jsxs(e.Fragment,{children:[e.jsxs(M,{children:[e.jsx("title",{children:"About Happy Smackah | Our Mission & Story"}),e.jsx("meta",{name:"description",content:"Learn about Happy Smackah's mission to support families facing medical hardship through our annual 5K Fun Run/Walk at Lake McIntosh in Longmont, Colorado."})]}
1),e.jsxs(H,{children:[e.jsx(L,{pageKey:"about",className:"pt-32 pb-20",fallbackGradient:"bg-gradient-subtle",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-primary/10 text-primary text-sm font-medium mb-6",children:[e.jsx(_,{className:"w-4 h-4"}),"About Our Mission"]}),e.jsx("h1",{className:"text-4xl sm:text-5xl font-heading font-bold text-foreground mb-6",children:"Bringing Community Together for Those in Need"}),e.jsx("p",{className:"text-lg text-muted-foreground",children:"Happy Smackah is a 501(c)(3) nonprofit organization dedicated to helping local families facing medical hardship through our annual 5K Fun Run/Walk event."})]})})}),e.jsx(P,{}),e.jsx("section",{className:"py-20 bg-muted/30",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[e.jsx("div",{className:"aspect-[4/3] rounded-2xl overflow-hidden bg-muted",children:e.jsx("img",{src:"/images/team-photo.jpg",alt:"Happy Smackah Foundation team members",className:"w-full h-full object-cover"})}),e.jsxs("div",{children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-accent/10 text-accent text-sm font-medium mb-6",children:[e.jsx(k,{className:"w-4 h-4"}),"Our Team"]}),e.jsx("h2",{className:"text-3xl sm:text-4xl font-heading font-bold text-foreground mb-6",children:"Happy Smackah Foundation"}),e.jsx("p",{className:"text-muted-foreground text-lg mb-8",children:"Our dedicated volunteer board members make Happy Smackah possible, giving their time and energy to support families in need."}),e.jsx("ul",{className:"grid sm:grid-cols-2 gap-x-8 gap-y-3",children:["Tom Bartel","Julie Benjaminson","Tracy Carson","Justin Crane","Karen Clancy-Cribby","Dan Cribby","Kris Hagemeyer","Kathy Heil","Emily Milikan"].map(r=>e.jsxs("li",{className:"flex items-center gap-2 text-foreground",children:[e.jsx(_,{className:"w-3.5 h-3.5 text-primary shrink-0"}),r]},r))})]})]})})}),e.jsx("section",{className:"py-20 bg-primary",children:e.jsxs("div",{className:"container mx-auto px-4 text-center",children:[e.jsx("h2",{className:"text-3xl sm:text-4xl font-heading font-bold text-primary-foreground mb-6",children:"Support Our Mission"}),e.jsx("p",{className:"text-primary-foreground/80 max-w-xl mx-auto mb-8",children:"Your generosity makes a difference in the lives of local families facing medical hardship."}),e.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-4",children:[e.jsx(K,{to:"/donate",children:e.jsx(S,{size:"lg",className:"bg-background text-primary hover:bg-background/90",children:"Make a Donation"})}),e.jsx("a",{href:"mailto:[email protected]",children:e.jsxs(S,{variant:"heroOutline",size:"lg",children:[e.jsx(R,{className:"w-4 h-4 mr-2"}),"Contact Us"]})})]})]})})]})]});export{Y 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.