1import{j as e,L as j,r as f}from"./app-Cr_xyltu.js";import{u as g,m as l,f as v,s as p,g as N,a as h,A as y,d as k,p as I,e as R}from"./public-header-fNv0u_BN.js";import{S as E}from"./seo-head-BhJSIr4-.js";import{P as T}from"./public-layout-9_2o5NXE.js";/* empty css */const C=[{id:1,category:"JOGO",date:"09/11/2025",title:"VITÃRIA EM CASA FRENTE AO CD FEIRENSE",image:"/storage/news/porto.png",href:"/noticias/1"},{id:2,category:"TREINO",date:"07/11/2025",title:"MAIS UM TREINO CONCLUÃDO",image:"/storage/news/leiria.png",href:"/noticias/2"},{id:3,category:"TREINO",date:"02/11/2025",title:"VITÃRIA FRENTE AO BENFICA",image:"/storage/news/viseu.jpg",href:"/noticias/3"}];function w({item:t,featured:a=!1,index:s=0}){return e.jsx(l.div,{variants:a?N:h,custom:s,className:"group relative block aspect-[16/9] overflow-hidden",children:e.jsxs(j,{href:t.href,className:"block h-full",children:[e.jsx(l.img,{src:t.image,alt:t.title,width:800,height:600,loading:"lazy",className:"absolute inset-0 h-full w-full object-cover object-center",whileHover:{scale:1.05},transition:{duration:.5,ease:[.25,.1,.25,1]}}),e.jsx(l.div,{className:"absolute right-0 bottom-0 left-0 sm:right-auto",initial:{y:10,opacity:0},animate:{y:0,opacity:1},transition:{delay:a?.3:.1*(s+1),duration:.5},children:e.jsxs("div",{className:"bg-white/90 py-2 pr-4 pl-3 backdrop-blur-sm transition-colors group-hover:bg-white sm:inline-block sm:py-3 sm:pr-12 sm:pl-4 md:pr-20",children:[e.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[e.jsx("span",{className:"text-xs font-semibold tracking-wide text-penafiel sm:text-sm",children:t.category}),e.jsx("span",{className:"text-xs text-black/50 sm:text-sm",children:"|"}),e.jsx("span",{className:"text-xs text-black/50 sm:text-sm",children:t.date})]}),e.jsx("h3",{className:`font-semibold tracking-wide text-black ${a?"text-base sm:text-xl md:text-2xl lg:text-3xl":"text-sm sm:text-base md:text-lg lg:text-xl"}`,children:t.title})]})})]})})}function z({news:t=C}){const a=t.slice(0,2),s=t.slice(2,5),{ref:n,isInView:d}=g({threshold:.2}),{ref:r,isInView:u}=g({threshold:.3});return e.jsxs("section",{className:"relative",children:[e.jsx(l.div,{variants:v,initial:"hidden",animate:d?"visible":"hidden",className:"absolute top-4 left-4 z-10 sm:top-6 md:left-8 lg:top-10 lg:left-16",children:e.jsx("h2",{className:"font-display text-2xl tracking-wider text-white sm:text-3xl md:text-5xl lg:text-6xl",children:"NOTÃCIAS"})}),e.jsxs("div",{className:"grid lg:grid-cols-[60%_40%]",children:[e.jsx(l.div,{ref:n,variants:p,initial:"hidden",animate:d?"visible":"hidden",className:"flex flex-col",children:a.map((c,m)=>e.jsx(w,{item:c,index:m},c.id))}),e.jsx(l.div,{ref:r,variants:p,initial:"hidden",animate:u?"visible":"hidden",className:"flex flex-col",children:s.map((c,m)=>e.jsx(w,{item:c,index:m},c.id))})]})]})}function S({game:t}){const{ref:a,isInView:s}=g({threshold:.2});if(!t)return null;const n=t.ticketUrl||"https://2ticket.pt/fcpenafiel/events-list";return e.jsx("section",{ref:a,className:"relative bg-penafiel",children:e.jsx("div",{className:"px-4 py-12 md:px-8 md:py-16 lg:px-16 lg:py-20",children:e.jsxs("div",{className:"flex flex-col gap-8 lg:flex-row lg:items-center lg:justify-between",children:[e.jsxs(l.div,{variants:p,initial:"hidden",animate:s?"visible":"hidden",className:"flex flex-col items-center gap-4 text-center lg:items-start lg:text-left",children:[e.jsx(l.h2,{variants:h,className:"font-display text-2xl tracking-wider text-white sm:text-3xl md:text-5xl lg:text-6xl",children:"PRÃXIMO JOGO"}),e.jsxs(l.p,{variants:h,className:"font-display text-sm tracking-wide text-white/90 sm:text-base md:text-xl",children:[t.competition,t.round&&` - ${t.round}`]}),e.jsxs(l.div,{variants:h,className:"mt-2 space-y-1 text-white",children:[e.jsxs("p",{className:"text-xs font-semibold tracking-wide uppercase sm:text-sm md:text-base",children:[t.date," | ",t.time]}),t.venue&&e.jsx("p",{className:"text-xs font-semibold tracking-wide uppercase sm:text-sm md:text-base",children:t.venue})]}),e.jsx(l.div,{variants:h,children:e.jsx(y,{href:n,variant:"outline",className:"mt-4 px-8",external:!0,children:"BILHETES"})})]}),e.jsxs("div",{className:"flex w-full items-center justify-around ga
1p-2 sm:w-auto sm:justify-center sm:gap-6 md:gap-10 lg:gap-16",children:[e.jsx(l.div,{variants:k,initial:"hidden",animate:s?"visible":"hidden",className:"flex flex-1 flex-col items-center sm:flex-none",children:t.homeTeam.logo&&e.jsx("img",{src:t.homeTeam.logo,alt:`Emblema ${t.homeTeam.name||"Equipa da casa"}`,width:224,height:224,loading:"lazy",decoding:"async",fetchPriority:"low",className:"h-24 w-auto max-w-[100px] sm:h-28 sm:max-w-none md:h-44 lg:h-56"})}),e.jsx(l.div,{variants:v,initial:"hidden",animate:s?"visible":"hidden",className:"relative",children:e.jsx(l.span,{variants:I,initial:"initial",animate:s?"animate":"initial",className:"font-display text-xl tracking-wider text-white sm:text-2xl md:text-3xl lg:text-4xl",style:{textShadow:"0 0 20px rgba(255, 255, 255, 0.5)"},children:"VS"})}),e.jsx(l.div,{variants:R,initial:"hidden",animate:s?"visible":"hidden",className:"flex flex-1 flex-col items-center sm:flex-none",children:t.awayTeam.logo&&e.jsx("img",{src:t.awayTeam.logo,alt:`Emblema ${t.awayTeam.name||"Equipa visitante"}`,width:224,height:224,loading:"lazy",decoding:"async",fetchPriority:"low",className:"h-24 w-auto max-w-[100px] sm:h-28 sm:max-w-none md:h-44 lg:h-56"})})]})]})})})}function A({banners:t,autoPlay:a=!0,interval:s=5e3}){const[n,d]=f.useState(0),[r,u]=f.useState(!1),c=f.useCallback(()=>{d(i=>(i+1)%t.length)},[t.length]),m=i=>{d(i)};return f.useEffect(()=>{if(!a||r||t.length<=1)return;const i=setInterval(c,s);return()=>clearInterval(i)},[a,s,c,r,t.length]),t.length===0?null:e.jsxs("div",{className:"relative w-full overflow-hidden bg-black",children:[e.jsx("div",{className:"relative h-[70vh] w-full sm:h-[80vh] md:h-[85vh] lg:h-[95vh]",children:t.map((i,o)=>{const x=o===n,b=x||o===(n+1)%t.length;return e.jsxs("div",{className:"absolute inset-0 overflow-hidden transition-opacity duration-1000",style:{opacity:x?1:0,zIndex:x?1:0},children:[i.desktopImage&&b&&e.jsxs("picture",{children:[i.mobileImage&&e.jsx("source",{media:"(max-width: 768px)",srcSet:i.mobileImage}),e.jsx("img",{src:i.desktopImage,alt:i.title||"Banner",width:1920,height:1080,loading:o===0?"eager":"lazy",fetchPriority:o===0?"high":"low",decoding:o===0?"sync":"async",sizes:"100vw",className:"h-full w-full object-cover",style:{aspectRatio:"16/9",animation:x?`zoomIn ${s}ms linear forwards`:"none"}},x?`active-${i.id}`:i.id)]}),(i.title||i.subtitle||i.link)&&e.jsx("div",{className:"absolute inset-0 flex items-end bg-gradient-to-t from-black/70 via-black/20 to-transparent",children:e.jsx("div",{className:"container mx-auto px-4 pb-16 md:pb-24 lg:pb-32",children:e.jsxs("div",{className:"max-w-2xl",children:[i.title&&e.jsx("h2",{className:"mb-2 text-2xl font-bold text-white drop-shadow-lg md:text-4xl lg:text-5xl",children:i.title}),i.subtitle&&e.jsx("p",{className:"mb-4 text-base text-white/90 drop-shadow-md md:text-lg lg:text-xl",children:i.subtitle}),i.link&&i.linkText&&e.jsxs(j,{href:i.link,className:"inline-flex items-center gap-2 bg-primary px-6 py-3 font-semibold text-white transition-colors hover:bg-primary/90",children:[i.linkText,e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"h-5 w-5",children:e.jsx("path",{fillRule:"evenodd",d:"M3 10a.75.75 0 01.75-.75h10.638L10.23 5.29a.75.75 0 111.04-1.08l5.5 5.25a.75.75 0 010 1.08l-5.5 5.25a.75.75 0 11-1.04-1.08l4.158-3.96H3.75A.75.75 0 013 10z",clipRule:"evenodd"})})]})]})})})]},i.id)})}),e.jsx("style",{children:` 2 @keyframes zoomIn { 3 from { transform: scale(1); } 4 to { transform: scale(1.1); } 5 } 6 `}),a&&t.length>1&&e.jsx("button",{onClick:()=>u(!r),"aria-label":r?"Reproduzir slider":"Pausar slider",className:"absolute top-4 right-4 z-10 rounded bg-black/50 p-2 text-white transition-colors hover:bg-black/70 focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-offset-2 focus-visible:ring-offset-black",children:r?e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"h-5 w-5","aria-hidden":"true",children:e.jsx("path",{fillRule:"evenodd",d:"M4.5 5.653c0-1.426 1.529-2.33 2.779-1.643l11.54 6.348c1.295.712 1.295 2.573 0 3.285L7.28 19.991c-1.25.687-2.779-.217-2.779-1.643V5.653z",clipRule:"evenodd"})}):e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"
6currentColor",className:"h-5 w-5","aria-hidden":"true",children:e.jsx("path",{fillRule:"evenodd",d:"M6.75 5.25a.75.75 0 01.75-.75H9a.75.75 0 01.75.75v13.5a.75.75 0 01-.75.75H7.5a.75.75 0 01-.75-.75V5.25zm7.5 0A.75.75 0 0115 4.5h1.5a.75.75 0 01.75.75v13.5a.75.75 0 01-.75.75H15a.75.75 0 01-.75-.75V5.25z",clipRule:"evenodd"})})}),t.length>1&&e.jsx("div",{className:"absolute bottom-4 left-1/2 z-10 flex -translate-x-1/2 gap-2",role:"tablist","aria-label":"Navegação do slider",children:t.map((i,o)=>e.jsx("button",{onClick:()=>m(o),role:"tab","aria-selected":o===n,"aria-label":`Slide ${o+1}: ${i.title||"Banner"}`,className:`block h-2 cursor-pointer transition-all duration-300 hover:bg-white/75 focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-offset-2 focus-visible:ring-offset-black ${o===n?"w-12 bg-white":"w-8 bg-white/50"}`},i.id))})]})}function $({banners:t,nextGame:a,news:s,storeBanner:n}){const{ref:d,isInView:r}=g({threshold:.2});return e.jsxs(e.Fragment,{children:[e.jsx(E,{description:"Bem-vindo ao site oficial do Futebol Clube de Penafiel. NotÃcias, resultados, plantel e muito mais sobre o clube fundado em 1951."}),e.jsxs(T,{children:[e.jsx("h1",{className:"sr-only",children:"FC Penafiel - Página Inicial"}),e.jsx(A,{banners:t}),e.jsx(S,{game:a}),e.jsx(z,{news:s}),n?.image&&e.jsx(l.a,{ref:d,href:n.link??"#",target:"_blank",rel:"noopener noreferrer",className:"block w-full focus:outline-none focus-visible:ring-2 focus-visible:ring-penafiel focus-visible:ring-offset-4",variants:v,initial:"hidden",animate:r?"visible":"hidden",children:e.jsx("img",{src:n.image,alt:"Loja Oficial FC Penafiel",className:"h-auto w-full",loading:"lazy"})})]})]})}export{$ 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.