1import{j as e,A as y,m as l}from"./vendor-motion-B4PFTeF3.js";import{r as h,R as N,L as i}from"./vendor-react-BJpm5IaU.js";import{O as k}from"./index-FA2nt5wt.js";import{F as z,A,c as $,d as p,e as C,f as n,g as S,U as D}from"./vendor-icons-Dpc4Xux7.js";import"./vendor-supabase-CQhNEkDT.js";const L=({activities:o,memberActivities:c})=>{const[d,r]=h.useState(0),x=new Date,g=(t,a=1200)=>t?t.includes("unsplash.com")?`${t.split("?")[0]}?w=${a}&q=80&auto=format&fit=crop`:t:"",b=t=>new Date(`${t.date.replace(/-/g,"/")} ${t.time}`)>x,s=N.useMemo(()=>[...o.map(t=>({...t,isMemberActivity:!1})),...c.map(t=>({...t,isMemberActivity:!0}))].filter(b).sort((t,a)=>{const m=new Date(`${t.date.replace(/-/g,"/")} ${t.time}`).getTime(),v=new Date(`${a.date.replace(/-/g,"/")} ${a.time}`).getTime();return m-v}).slice(0,5),[o,c,x]);h.useEffect(()=>{if(s.length<=1)return;const t=setInterval(()=>{r(a=>(a+1)%s.length)},5e3);return()=>clearInterval(t)},[s.length]);const u=()=>r(t=>(t+1)%s.length),f=()=>r(t=>(t-1+s.length)%s.length),w=t=>{switch(t){case"è¬åº§è«å£":return"bg-orange-600";case"伿¥å訪":return"bg-blue-600";case"å°æ¥èª²ç¨":return"bg-green-600";case"交æµé¤æ":return"bg-pink-700";case"å°æ¡æ´»å":return"bg-purple-600";default:return"bg-gray-800"}},j={"@context":"https://schema.org","@type":["Organization","NGO"],name:"é£å¨åéç¾é£ç¢æ¥äº¤æµåæ",alternateName:"é£å¨åé",url:"https://www.foodpowerteam.com/",logo:"https://www.foodpowerteam.com/logo.svg",description:"é£å¨åéç¾é£ç¢æ¥äº¤æµåæçºå
§æ¿é¨ç«æ¡ä¹å
¨åæ§äººæ°åé«ï¼é£çµé¤é£²èç¾é£ç¢æ¥ç¶çè
ï¼æä¾ç¢æ¥äº¤æµãè¬åº§è«å£ã伿¥å訪ãåéæå±èæå¡æåã",foundingDate:"2024-02-25",taxID:"00509918",identifier:"å°å
§åå第1130022533è",address:{"@type":"PostalAddress",streetAddress:"ç¾
æ¯ç¦è·¯ä¸æ®µ126è3æ¨",addressLocality:"å°åå¸",addressCountry:"TW"},founder:{"@type":"Person",name:"許淳å±",jobTitle:"çäºé·"},areaServed:"TW",knowsAbout:["é¤é£²ç¢æ¥","ç¾é£ç¢æ¥","é¤é£²åç","é£å便é","ç¢æ¥äº¤æµ"],sameAs:k};return e.jsxs("div",{className:"pb-20 bg-white",children:[e.jsx("script",{type:"application/ld+json",children:JSON.stringify(j)}),e.jsx(i,{to:"/festival",className:"relative block bg-gradient-to-r from-red-600 via-orange-500 to-amber-500 text-white overflow-hidden group hover:brightness-110 transition-all",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 py-3 flex items-center justify-between gap-3",children:[e.jsxs("div",{className:"flex items-center gap-2.5 min-w-0",children:[e.jsx(z,{size:20,className:"animate-pulse flex-shrink-0 text-yellow-200"}),e.jsxs("div",{className:"text-sm sm:text-base font-bold truncate",children:[e.jsx("span",{className:"text-yellow-200",children:"æåä¸"}),"ã»çèç¥ Ã ç«éç¥",e.jsx("span",{className:"hidden md:inline text-white/90 font-medium ml-2",children:"â é¤å»³æ¥è
æ´åè¡é·ç¥å
¸"})]})]}),e.jsxs("span",{className:"text-xs sm:text-sm font-bold flex items-center gap-1 flex-shrink-0 opacity-90 group-hover:opacity-100 group-hover:gap-2 transition-all",children:["äºè§£è©³æ
",e.jsx(A,{size:14})]})]})}),s.length>0?e.jsxs("div",{className:"relative w-full h-[85vh] overflow-hidden bg-black",children:[e.jsx(y,{mode:"wait",children:s.map((t,a)=>a===d&&e.jsxs(l.div,{initial:{opacity:0,scale:1.1},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:1.2,ease:[.22,1,.36,1]},className:"absolute inset-0 z-10",children:[e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black via-black/70 to-black/30 z-20"}),e.jsx("img",{src:g(t.picture,1920),alt:t.title,className:"w-full h-full object-cover opacity-80",loading:"eager",referrerPolicy:"no-referrer"}),e.jsxs("div",{className:"absolute inset-0 z-30 flex flex-col justify-end pb-24 px-6 md:px-12 lg:px-24 max-w-7xl mx-auto",children:[e.jsxs(l.div,{initial:{y:40,opacity:0},animate:{y:0,opacity:1},transition:{delay:.3,duration:.8},className:"flex flex-wrap items-center gap-3 mb-8",children:[e.jsx("span",{className:`${w(t.type)} text-white px-4 py-1.5 rounded-full text-xs font-bold uppercase tracking-widest`,children:t.type}),t.isMemberActivity&&e.jsxs("span",{className:"bg-red-600 text-white px-4 py-1.5 rounded-full text-xs font-bold uppercase tracking-widest flex items-center gap-2",children:[e.jsx($,{size:14}),"æå¡å°å±¬"]})]}),e.jsx(l.h2,{initial:{y:40,opacity:0}
1,animate:{y:0,opacity:1},transition:{delay:.4,duration:.8},className:"text-5xl md:text-7xl lg:text-8xl font-black text-white mb-8 leading-[0.9] tracking-tighter uppercase max-w-5xl",children:t.title}),e.jsxs(l.div,{initial:{y:40,opacity:0},animate:{y:0,opacity:1},transition:{delay:.5,duration:.8},className:"flex flex-wrap items-center gap-8 text-gray-300 mb-12",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(p,{size:24,className:"text-red-500"}),e.jsx("span",{className:"text-lg font-medium tracking-tight",children:t.date})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(C,{size:24,className:"text-red-500"}),e.jsx("span",{className:"text-lg font-medium tracking-tight",children:t.location})]})]}),e.jsx(l.div,{initial:{y:40,opacity:0},animate:{y:0,opacity:1},transition:{delay:.6,duration:.8},children:e.jsxs(i,{to:t.isMemberActivity?`/member-activity/${t.id}`:`/activity/${t.id}`,className:"inline-flex items-center gap-4 bg-white text-black hover:bg-red-700 hover:text-white px-10 py-5 rounded-full font-black text-lg transition-all shadow-2xl hover:-translate-y-1 active:translate-y-0",children:["æ¢ç´¢è©³æ
",e.jsx(n,{size:24})]})})]})]},`${t.isMemberActivity?"m":"g"}-${t.id}`))}),s.length>1&&e.jsxs("div",{className:"absolute bottom-12 right-12 z-40 flex items-center gap-6",children:[e.jsx("div",{className:"flex gap-3",children:s.map((t,a)=>e.jsx("button",{onClick:()=>r(a),className:`h-1 transition-all duration-500 ${a===d?"w-12 bg-red-600":"w-6 bg-white/30 hover:bg-white/60"}`,"aria-label":`åæè³ç¬¬ ${a+1} åæ´»å`},a))}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{onClick:f,className:"p-3 border border-white/20 hover:bg-white hover:text-black text-white rounded-full backdrop-blur-sm transition-all","aria-label":"ä¸ä¸åæ´»å",children:e.jsx(S,{size:24})}),e.jsx("button",{onClick:u,className:"p-3 border border-white/20 hover:bg-white hover:text-black text-white rounded-full backdrop-blur-sm transition-all","aria-label":"ä¸ä¸åæ´»å",children:e.jsx(n,{size:24})})]})]})]}):e.jsxs("section",{className:"relative h-[70vh] flex items-center bg-black overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0 opacity-40",children:e.jsx("img",{src:"https://images.unsplash.com/photo-1528605248644-14dd04022da1?q=80&w=1920&auto=format&fit=crop",className:"w-full h-full object-cover",alt:"Background"})}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-black via-black/60 to-transparent"}),e.jsxs("div",{className:"relative z-10 max-w-7xl mx-auto px-6 md:px-12 lg:px-24 w-full",children:[e.jsxs("h1",{className:"text-6xl md:text-8xl lg:text-9xl font-black text-white mb-8 leading-[0.85] tracking-tighter uppercase",children:["é£çµç¢æ¥",e.jsx("br",{}),"åµé å
±å¥½"]}),e.jsx("p",{className:"text-xl md:text-2xl text-gray-300 max-w-2xl leading-relaxed mb-12 font-medium",children:"é£å¨åéè´åæ¼é¤é£²æ¥èé£åç¢æ¥ç交æµèæé·ï¼å¯èåç¢æ¥èè±ï¼æä¾è¬åº§è«å£ã伿¥å訪èå°æ¥èª²ç¨ã"}),e.jsxs(i,{to:"/activities",className:"inline-flex items-center gap-4 bg-red-700 text-white hover:bg-white hover:text-black px-10 py-5 rounded-full font-black text-lg transition-all shadow-2xl",children:["æ¢ç´¢æ´»å",e.jsx(n,{size:24})]})]})]}),e.jsx("div",{className:"max-w-7xl mx-auto px-6 md:px-12 lg:px-24 mt-12 relative z-40",children:e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:[e.jsxs(l.div,{whileHover:{y:-10},className:"bg-white rounded-[40px] p-10 md:p-16 shadow-2xl shadow-black/5 border border-gray-100 group transition-all",children:[e.jsx("div",{className:"w-16 h-16 bg-red-50 rounded-2xl flex items-center justify-center text-red-600 mb-8 group-hover:bg-red-600 group-hover:text-white transition-all",children:e.jsx(p,{size:32})}),e.jsx("h2",{className:"text-4xl font-black text-gray-900 mb-6 tracking-tight uppercase",children:"æ¢ç´¢åææ´»å"}),e.jsx("p",{className:"text-gray-500 text-lg leading-relaxed mb-10",children:"æå宿è辦è¬åº§è«å£ã伿¥å訪èå°æ¥èª²ç¨ï¼æ¡è¿å ±ååå ï¼èæåä¸èµ·æé·ã"}),e.jsxs(i,{to:"/activities",className:"inline-flex items-center gap-3 text-red-700 font-black text-xl hover:gap-5 transition-all",children:["æ¥çæææ´»å",e.jsx(n,{size:28})]})]}),e.jsxs(l.div,{whileHover:{y:-10},className:"bg-gray-900 rounded-[40px] p-10 md:p-16 shadow-2xl shadow-black/20 relative overflow-hidden group transition-all",children:[e.jsxs("div",{className:"relative z-10",children:[e.jsx("div",{className:"w-16 h-16 bg-white/10 rounded-2xl flex items-center justify-center text-white mb-8 group-hover:bg-red-600 transition-all",children:e.jsx(D,{size:32})}),e.jsx("h2",{className:"text-4xl font-black text-white mb-6 tracking-tight uppercase",children:"å å
¥é£å¨åé"}),e.jsx("p",{className:"text-gray-400 text-lg leading-relaxed mb-10",children:"ç«å³è¨»åæçºæå¡ï¼äº«æå°å±¬æ´»ååªæ ãç¢æ¥åªåæ©æï¼ä¸¦èé å°æ¥è
交æµå
±å¸ã"}),e.jsxs("div",{className:"flex flex-wrap gap-6",children:[e.jsx(i,{to:"/join",className:"bg-red-600 hover:bg-white hover:text-black text-white px-8 py-4 rounded-2xl font-black text-lg transition-all shadow-xl shadow-red-900/20",children:"ç«å³å å
¥"}),e.jsx(i,{to:"/renew",className:"bg-white/10 hover:bg-white/20 text-white px-8 py-4 rounded-2xl font-black text-lg border border-white/10 transition-all",children:"æå¡çºç´"})]})]}),e.jsx("div",{className:"absolute top-0 right-0 w-64 h-64 bg-red-600 rounded-full blur-[120px] opacity-20 -translate-y-1/2 translate-x-1/2"})]})]})})]})};export{L 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.