PageSourceSearch

https://faf.co.ao/assets/Home-Ck1yvBmX.js

js faf.co.ao collected 2026-10-02 19:10:30 UTC 11,149 bytes, 1 lines download raw bytes

1import{y as w,r as n,b as k,j as e,L as c}from"./vendor-react-core-_0sZDOLQ.js";import{c as o,b as C,t as f}from"./index-j07E1qHv.js";import{A,m as _}from"./vendor-framer-motion-C1oRD-X5.js";import{i as m,al as F}from"./vendor-lucide-Ddz0eB7N.js";import"./vendor-radix-CFmJ1img.js";import"./vendor-utils-BRu4i-LD.js";import"./vendor-supabase-Ca6cp8v2.js";function $(){const v=w(),[S,N]=n.useState(0),[l,d]=n.useState(0),[j,u]=n.useState(!1);n.useEffect(()=>{u(!1)},[l]);const{data:r,isLoading:y}=k({queryKey:["news"],queryFn:async()=>{try{const t=await C.entities.News.list("-created_date",20);return f(t)}catch{return f()}},initialData:[]}),g=Array.isArray(r)?r.filter(t=>t.featured).slice(0,12):[],i=Array.isArray(r)?r.slice(0,5):[];(Array.isArray(r)?r.slice(5):[]).reduce((t,a)=>{const b=new Date(a.created_date||a.created_at).toLocaleDateString("pt-AO",{month:"long",year:"numeric"});return t[b]||(t[b]=[]),t[b].push(a),t},{});const s=[{title:"Palancas Negras",subtitle:"SELEÇÃO NACIONAL",description:"A informação editorial da seleção deve ser mantida com referência direta às páginas oficiais da CAF e da FIFA, incluindo ranking, equipa técnica e calendário competitivo.",stat1:{label:"Fonte",value:"FIFA"},stat2:{label:"CAF",value:"2026",highlight:!0},image1:"/fotos/Caf /B25LSRW0200.jpg",image2:"/fotos/Caf /B25LSRW0204.jpg",link:"Players",buttonText:"Ver Seleção"},{title:"Liga Unitel Girabola 2025/26",subtitle:"CAMPEONATO NACIONAL",description:"Consulte calendário, resultados e classificação da época atual. Os dados competitivos são publicados apenas quando estiverem disponíveis na base editorial validada.",stat1:{label:"Dados",value:"FAF"},stat2:{label:"Época",value:"2025/26",highlight:!0},image1:"/fotos/Caf /B25LSRW0181.jpg",image2:"/players/Gelson_Dala/B25LSRW0476.jpg",link:"Competitions",buttonText:"Ver Competição"},{title:"Futebol Feminino",subtitle:"DESENVOLVIMENTO E CRESCIMENTO",description:"Acompanhe as seleções femininas, competições e programas de desenvolvimento com informação datada e ligada às fontes oficiais.",stat1:{label:"Seleção",value:"FAF"},stat2:{label:"Âmbito",value:"CAF",highlight:!0},image1:"/fotos/Caf /B25LSRW0158.jpg",image2:"/fotos/Caf /B25LSRW0204.jpg",link:"Teams",buttonText:"Conhecer Seleção"},{title:"Formação FAF Academy",subtitle:"FUTURO DO FUTEBOL ANGOLANO",description:"Programas de formação, arbitragem e desenvolvimento devem apresentar calendário, entidade responsável e documentação oficial disponível.",stat1:{label:"Programa",value:"FAF"},stat2:{label:"Formação",value:"Nacional",highlight:!0},image1:"/players/Keliano_Manuel/B25LSRW0376.jpg",image2:"/fotos/Caf /B25LSRW0181.jpg",link:"Formacoes",buttonText:"Saber Mais"}];n.useEffect(()=>{if(g.length===0)return;const t=setInterval(()=>{N(a=>(a+1)%g.length)},5e3);return()=>clearInterval(t)},[g.length]),n.useEffect(()=>{const t=setInterval(()=>{d(a=>(a+1)%s.length)},6e3);return()=>clearInterval(t)},[s.length]);const h=t=>({selecao:"bg-red-600",girabola:"bg-blue-600",feminino:"bg-pink-600",formacao:"bg-green-600",institucional:"bg-yellow-600"})[t]||"bg-gray-600",x=t=>({selecao:"Seleção",girabola:"Girabola",feminino:"Futebol Feminino",formacao:"Formação",institucional:"Institucional"})[t]||t;return e.jsxs("main",{className:"min-h-screen bg-white",children:[e.jsxs("section",{className:"relative h-[520px] lg:h-[640px] overflow-hidden bg-gradient-to-br from-faf-blue via-faf-blue-light to-faf-blue-dark",children:[e.jsx("div",{className:"absolute inset-0 opacity-40 [background-image:radial-gradient(circle_at_80%_20%,rgba(220,38,38,0.35),transparent_40%),radial-gradient(circle_at_20%_80%,rgba(234,179,8,0.2),transparent_35%)]"}),e.jsx("div",{className:"absolute inset-0 opacity-10",children:e.jsx("div",{className:"absolute inset-0",style:{backgroundImage:`url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`}})}),e.jsx(A,{mode:"wait",children:e.jsx(_.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.7},className:"absolute inset-0",children:e.jsxs("button",{type:"button",onClick:()=>v(o(s[l].link)),"aria-label":`${s[l].buttonText}: ${s[l].title}`,className:"group absolute inset-0 block h-full w-full text-left",children:[s[l].image1&&!j?e.jsx("img",{src:s[l].image1,alt:s[l].title,className:"h-full w-full object-cover transition-transform duration-700 group-hover:scale-105",onError:()=>u(!0)}):e.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-faf-blue via-faf-blue-light to-faf-blue-dark opacity-90"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-faf-blue-dark via-faf-blue-dark/50 to-faf-blue/10 opacity-90"}),e.jsx("div",{className:"absolute inset-x-0 bottom-0 p-6 lg:p-16",children:e.jsxs("div",{className:"container mx-auto max-w-3xl px-0",children:[e.jsx("span",{className:"inline-block rounded-full border border-yellow-400 px-4 py-1.5 text-xs font-bold uppercase tracking-widest text-yellow-400 mb-5",children:s[l].subtitle}),e.jsx("h1",{className:"text-3xl lg:text-6xl font-black text-white mb-3 leading-tight",children:s[l].title}),e.jsx("p",{className:"hidden md:block text-white/80 text-base lg:text-lg leading-relaxed mb-6 max-w-xl",children:s[l].description}),e.jsxs("span",{className:"inline-flex items-center gap-2 rounded-full bg-yellow-400 px-6 py-3 font-bold uppercase text-sm text-faf-blue-dark group-hover:bg-yellow-300 transition-colors",children:[s[l].buttonText,e.jsx(m,{className:"w-4 h-4 group-hover:translate-x-1 transition-transform"})]})]})})]})},l)}),e.jsx("button",{type:"button",onClick:()=>d(t=>(t-1+s.length)%s.length),"aria-label":"Slide anterior",className:"absolute left-3 top-1/2 z-10 -translate-y-1/2 rounded-full bg-black/30 p-2 text-white hover:bg-black/50 transition-colors lg:left-6",children:e.jsx(F,{className:"w-6 h-6"})}),e.jsx("button",{type:"button",onClick:()=>d(t=>
1(t+1)%s.length),"aria-label":"Próximo slide",className:"absolute right-3 top-1/2 z-10 -translate-y-1/2 rounded-full bg-black/30 p-2 text-white hover:bg-black/50 transition-colors lg:right-6",children:e.jsx(m,{className:"w-6 h-6"})}),e.jsx("div",{className:"absolute bottom-6 right-6 z-10 flex gap-2 lg:bottom-10 lg:right-16",children:s.map((t,a)=>e.jsx("button",{type:"button",onClick:()=>d(a),"aria-label":`Ir para o slide ${a+1}`,className:`h-2 rounded-full transition-all ${a===l?"w-8 bg-yellow-400":"w-2 bg-white/50 hover:bg-white/80"}`},a))})]}),e.jsx("section",{className:"py-16 bg-white",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs("div",{className:"flex justify-between items-end mb-8",children:[e.jsx("h2",{className:"text-4xl font-black text-gray-900 uppercase",children:"Últimas Notícias"}),e.jsxs(c,{to:o("News"),className:"hidden md:flex items-center text-red-600 font-bold hover:text-red-800 transition-colors uppercase text-sm tracking-widest",children:["Ver Todas ",e.jsx(m,{className:"w-5 h-5 ml-1"})]})]}),y?e.jsx("div",{className:"animate-pulse flex flex-col space-y-4",children:e.jsx("div",{className:"h-96 bg-gray-200 rounded-lg w-full"})}):i.length>0&&e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-6",children:[e.jsx("div",{className:"lg:col-span-8",children:e.jsxs(c,{to:o("NewsDetail")+`?id=${i[0].id}`,className:"group block relative h-[500px] overflow-hidden rounded-xl bg-gradient-to-br from-faf-blue via-faf-blue-light to-faf-blue-dark shadow-lg",children:[e.jsx("div",{className:"absolute inset-0 opacity-30 [background-image:radial-gradient(circle_at_75%_20%,#dc2626_0,transparent_35%),radial-gradient(circle_at_20%_80%,#eab308_0,transparent_28%)]"}),e.jsxs("div",{className:"absolute bottom-0 left-0 right-0 p-8 z-10",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("span",{className:`inline-block px-3 py-1 ${h(i[0].category)} text-white text-xs font-bold uppercase`,children:x(i[0].category)}),e.jsx("span",{className:"text-white/80 text-sm font-medium",children:new Date(i[0].created_date||i[0].created_at).toLocaleDateString("pt-AO",{day:"numeric",month:"long",year:"numeric"})})]}),e.jsx("h3",{className:"text-3xl md:text-4xl font-black text-white mb-3 leading-tight group-hover:text-yellow-400 transition-colors",children:i[0].title}),e.jsx("p",{className:"text-lg text-white/90 line-clamp-2",children:i[0].summary})]})]})}),e.jsx("div",{className:"lg:col-span-4 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-1 gap-6",children:i.slice(1,5).map(t=>e.jsx(c,{to:o("NewsDetail")+`?id=${t.id}`,className:"group flex min-h-28 items-center rounded-lg border-l-4 border-red-600 bg-gray-50 p-5 hover:bg-gray-100 transition-colors",children:e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx("span",{className:`inline-block w-2 h-2 rounded-full ${h(t.category)}`}),e.jsx("span",{className:"text-red-600 text-[10px] font-bold uppercase tracking-wider",children:x(t.category)})]}),e.jsx("h4",{className:"text-sm font-black text-gray-900 leading-snug group-hover:text-red-600 transition-colors line-clamp-2 mb-1",children:t.title}),e.jsx("span",{className:"text-xs text-gray-500 font-medium block",children:new Date(t.created_date||t.created_at).toLocaleDateString("pt-AO",{day:"numeric",month:"short"})})]})},t.id))})]})]})}),e.jsx("section",{className:"py-14 bg-gray-50 border-t border-gray-200",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs("div",{className:"flex flex-col md:flex-row md:items-end md:justify-between gap-4 mb-8",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-red-600 text-xs font-black uppercase tracking-[0.25em] mb-2",children:"Notícias"}),e.jsx("h2",{className:"text-3xl font-black text-gray-900 uppercase tracking-tight",children:"Por Categoria"})]}),e.jsxs(c,{to:o("News"),className:"inline-flex items-center text-red-600 font-bold hover:text-red-800 transition-colors uppercase text-sm tracking-widest",children:["Ver mais ",e.jsx(m,{className:"w-5 h-5 ml-1"})]})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-
15",children:["selecao","girabola","feminino","institucional"].map(t=>{const a=(Array.isArray(r)?r:[]).find(p=>p.category===t)||i[0];return e.jsxs(c,{to:a?o("NewsDetail")+`?id=${a.id}`:o("News"),className:"group bg-white border border-gray-200 p-5 hover:border-red-200 hover:shadow-md transition-all",children:[e.jsx("span",{className:`inline-block px-3 py-1 ${h(t)} text-white text-[10px] font-black uppercase tracking-wider mb-4`,children:x(t)}),e.jsx("h3",{className:"font-black text-gray-900 leading-tight line-clamp-2 group-hover:text-red-600 transition-colors",children:(a==null?void 0:a.title)||"Não existente"}),e.jsx("p",{className:"text-sm text-gray-500 line-clamp-2 mt-3",children:(a==null?void 0:a.summary)||"Não existente"})]},t)})})]})})]})}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.