PageSourceSearch

https://deportivoquito.com/assets/Basket-CFKth72Q.js

js deportivoquito.com collected 2026-10-02 13:42:54 UTC 11,140 bytes, 1 lines download raw bytes

1import{j as e}from"./index-BKYl9XI7.js";import{r as m}from"./vendor-react-BjSty5Uo.js";import{f as o}from"./format-BMulUEhk.js";import{U as u,s as b,w as j,b as f}from"./vendor-ui-Ci1VS1Mm.js";import"./vendor-supabase-BPVmyxZX.js";const N=[],v=[];function P(){const t=N,l=v,[a,d]=m.useState("plantilla"),[r,n]=m.useState(null),i=l.filter(s=>s.status==="played"),x=l.filter(s=>s.status==="scheduled");return e.jsxs("div",{className:"bg-gray-50 min-h-screen",children:[e.jsxs("section",{className:"relative bg-sdq-dark-blue overflow-hidden min-h-[420px] sm:min-h-[480px] flex items-end",children:[e.jsxs("div",{className:"absolute inset-0",children:[e.jsx("img",{src:"/images/basket-sdq2.jpg",alt:"",width:1440,height:1802,className:"w-full h-full object-cover object-center"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-sdq-dark-blue via-sdq-dark-blue/85 to-sdq-dark-blue/40"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-sdq-dark-blue via-sdq-dark-blue/20 to-transparent"})]}),e.jsxs("div",{className:"max-w-[1400px] mx-auto px-4 sm:px-8 py-14 sm:py-20 relative z-10",children:[e.jsx("span",{className:"text-sdq-gold text-xs font-bold tracking-[0.3em] uppercase",children:"Otras Disciplinas"}),e.jsx("h1",{className:"text-4xl sm:text-5xl lg:text-6xl font-extrabold text-white mt-3",children:"SDQ Basket"}),e.jsx("p",{className:"text-white/60 mt-4 text-base sm:text-lg max-w-md",children:"La sección de baloncesto de Sociedad Deportivo Quito."}),e.jsxs("div",{className:"flex gap-6 mt-8",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-9 h-9 rounded-lg bg-white/10 flex items-center justify-center",children:e.jsx(u,{size:18,className:"text-sdq-gold"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-white font-bold text-lg leading-none",children:t.length}),e.jsx("p",{className:"text-white/40 text-[10px] font-medium",children:"JUGADORES"})]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-9 h-9 rounded-lg bg-white/10 flex items-center justify-center",children:e.jsx(b,{size:18,className:"text-sdq-gold"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-white font-bold text-lg leading-none",children:(t.reduce((s,c)=>s+Number(c.points_per_game),0)/(t.length||1)).toFixed(1)}),e.jsx("p",{className:"text-white/40 text-[10px] font-medium",children:"PPG MEDIA"})]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-9 h-9 rounded-lg bg-white/10 flex items-center justify-center",children:e.jsx(j,{size:18,className:"text-sdq-gold"})}),e.jsxs("div",{children:[e.jsxs("p",{className:"text-white font-bold text-lg leading-none",children:[i.filter(s=>{const c=s.home_team==="SDQ Basket",p=c?s.home_score:s.away_score,g=c?s.away_score:s.home_score;return p>g}).length,"/",i.length]}),e.jsx("p",{className:"text-white/40 text-[10px] font-medium",children:"VICTORIAS"})]})]})]})]})]}),e.jsx("section",{className:"sticky top-16 lg:top-[72px] z-30 bg-white border-b border-gray-200 shadow-sm",children:e.jsx("div",{className:"max-w-[1400px] mx-auto px-4 sm:px-8",children:e.jsx("div",{className:"flex gap-1 overflow-x-auto scrollbar-hide py-3",children:[{key:"plantilla",label:"Plantilla"},{key:"resultados",label:"Resultados"},{key:"proximos",label:"Próximos"}].map(s=>e.jsx("button",{onClick:()=>d(s.key),className:`shrink-0 px-5 py-2.5 rounded-full text-sm font-semibold transition-all ${a===s.key?"gradient-sdq text-white shadow-md":"text-gray-600 hover:bg-gray-100"}`,children:s.label},s.key))})})}),e.jsxs("section",{className:"max-w-[1400px] mx-auto px-4 sm:px-8 py-10 sm:py-14",children:[a==="plantilla"&&e.jsx(e.Fragment,{children:e.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-4 sm:gap-5",children:t.map(s=>e.jsxs("button",{onClick:()=>n(s),className:"bg-white rounded-2xl overflow-hidden border border-gray-100 card-hover text-left group w-full",children:[e.jsxs("div",{className:"relative aspect-[3/4] overflow-hidden bg-gray-100",children:[e.jsx("img",{src:s.image_url,alt:s.name,loading:"lazy",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/70 via-black/10 to-transparent"}),e.jsx("div",{className:"absolute top-3 left-3",children:e.jsx("span",{className:"text-4xl font-black text-white/25",children:s.number})}),e.jsxs("div",{className:"absolute bottom-0 left-0 right-0 p-4",children:[e.jsx("span",{className:"bg-orange-50 text-orange-700 text-[9px] font-bold px-2 py-0.5 rounded-full inline-block mb-1.5",children:s.position}),e.jsx("p",{className:"text-white font-bold text-sm leading-tight",children:s.name}),e.jsx("p",{className:"text-white/60 text-[11px] mt-0.5",children:s.nationality})]})]}),e.jsxs("div",{className:"p-3 flex justify-between text-center border-t border-gray-50",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-bold text-gray-900",children:s.points_per_game}),e.jsx("p",{className:"text-[9px] text-gray-400 font-medium uppercase",children:"PPG"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-bold text-gray-900",children:s.rebounds_per_game}),e.jsx("p",{className:"text-[9px] text-gray-400 font-medium uppercase",children:"RPG"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-bold text-gray-900",children:s.assists_per_game}),e.jsx("p",{className:"text-[9px] text-gray-400 font-medium uppercase",children:"APG"})]})]})]},s.id))})}),a==="resultados"&&e.jsx("div",{className:"space-y-3",children:i.length===0?e.jsx("p",{className:"text-center text-gray-400 py-12",children:"No hay resultados disponibles"}):i.map(s=>e.jsx(h,{match:s},s.id))}),a==="proximos"&&e.jsx("div",{className:"space-y-3",children:x.length===0?e.jsx("p",{className:"text-center text-gray-400 py-12",children:"No hay partidos programados"}):x.map(s=>e.jsx(h,{match:s},s.id))})]}),r&&e.jsx(w,{player:r,onClose:()=>n(null)})]})}function h({match:t}){const l=t.status==="played",a=t.home_team==="SDQ Basket",d=new Date(t.match_date);let r=null;if(l&&t.home_score!==null&&t.away_score!==null){const i=a?t.home_score:t.away_score,x=a?t.away_score:t.home_score;r=i>x?"win":"loss"}const n=t.competition==="Euroliga"?"bg-sdq-dark-blue":"bg-orange-500";return e.jsx("div",{className:`bg-white rounded-xl border border-gray-100 p-4 sm:p-5 hover:shadow-md transition-shadow ${r==="win"?"border-l-4 border-l-green-500":r==="loss"?"border-l-4 border-l-red-500":""}`,children:e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center gap-4",children:[e.jsxs("div",{className:"sm:w-20 shrink-0 text-center sm:text-left",children:[e.jsx("p",{className:"text-xs text-gray-400 font-medium",children:o(d,"es-ES",{weekday:"short"})}),e.jsx("p",{className:"text-lg font-bold text-gray-900",children:o(d,"es-ES",{day:"numeric",month:"short"})}),e.jsx("p",{className:"text-xs text-gray-400",children:o(d,"es-ES",{hour:"2-digit",minute:"2-digit"})})]}),e.jsx("div",{className:"flex-1",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:`font-bold text-sm ${a?"text-sdq-blue":"text-gray-900"}`,children:t.home_team}),e.jsx("p",{className:`font-bold text-sm mt-1 ${a?"text-gray-900":"text-sdq-blue"}`,children:t.away_team})]}),l?e.jsxs("div",{className:"text-right",children:[e.jsxs("span",{className:"text-xl font-extrabold text-gray-900",children:[t.home_score," - ",t.away_score]}),e.jsx("p",{className:`text-[10px] font-bold mt-1 ${r==="win"?"text-green-600":"text-red-500"}`,children:r==="win"?"VICTORIA":"DERROTA"})]}):e.jsxs("span",{className:"text-xs text-sdq-blue font-semibold bg-sdq-blue/10 px-3 py-1.5 rounded-full inline-flex items-center gap-1",children:["ENTRADAS ",e.jsx(f,{size:12})]})]})}),e.jsx("div",{className:"sm:w-28 shrink-0 flex sm:justify-end",children:e.jsx("span",{className:`${n} text-white text-[10px] font-bold px-2.5 py-0.5 rounded-full`,children:t.competition})})]})})}function w({player:t,onClose:l}){return e.jsxs("div",{className:"fixed inset-0 z-[100] flex items-center justify-center p-4",children:[e.jsx("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:l}),e.jsxs("div",{className:"relative bg-white rounded-3xl overflow-hidden max-w-lg w-full shadow-2xl animate-slide-up",children:[e.jsxs("div",{className:"relative h-64 sm:h-72 overflow-hidden",children:[e.jsx("img",{src:t.image_url,alt:t.name,className:"w-full h-full object-cover"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 via-black/30 to-transparent"}),e.jsx("div",{className:"absolute top-4 left-4",children:e.jsx("span",{className:"text-7xl font-black text-white/20",children:t.number})}),e.jsxs("div",{className:"absolute bottom-0 left-0 right-0 p-6",children:[e.jsx("span",{className:"bg-orange-50 text-orange-700 text-xs font-bold px-3 py-1 rounded-full",children:t.position}),e.jsx("h2",{className:"text-2xl sm:text-3xl font-extrabold text-white mt-2",children:t.name}),e.jsx("p",{className:"text-white/60 text-sm",children:t.nationality})]}),e.jsx("button",{onClick:l,className:"absolute top-4 right-4 bg-black/30 backdrop-blur-sm text-white w-9 h-9 rounded-full flex items-center justify-center hover:bg-black/50 transition-colors text-lg",children:"×"})]}),e.jsxs("div",{className:"p-6",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-4 mb-6",children:[e.jsxs("div",{className:"bg-gray-50 rounded-xl p-4 text-center",children:[e.jsxs("p",{className:"text-2xl font-extrabold text-sdq-blue",children:[t.height,e.jsx("span",{className:"text-sm font-medium text-gray-400",children:" cm"})]}
1),e.jsx("p",{className:"text-xs text-gray-500 font-medium mt-0.5",children:"Altura"})]}),e.jsxs("div",{className:"bg-gray-50 rounded-xl p-4 text-center",children:[e.jsxs("p",{className:"text-2xl font-extrabold text-sdq-blue",children:[t.weight,e.jsx("span",{className:"text-sm font-medium text-gray-400",children:" kg"})]}),e.jsx("p",{className:"text-xs text-gray-500 font-medium mt-0.5",children:"Peso"})]})]}),e.jsx("h3",{className:"text-xs font-bold text-gray-400 tracking-wider uppercase mb-3",children:"Promedios por Partido"}),e.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[e.jsxs("div",{className:"bg-gray-50 rounded-xl p-4 text-center",children:[e.jsx("p",{className:"text-2xl font-extrabold text-gray-900",children:t.points_per_game}),e.jsx("p",{className:"text-[10px] text-gray-500 font-medium mt-0.5 uppercase",children:"Puntos"})]}),e.jsxs("div",{className:"bg-gray-50 rounded-xl p-4 text-center",children:[e.jsx("p",{className:"text-2xl font-extrabold text-gray-900",children:t.rebounds_per_game}),e.jsx("p",{className:"text-[10px] text-gray-500 font-medium mt-0.5 uppercase",children:"Rebotes"})]}),e.jsxs("div",{className:"bg-gray-50 rounded-xl p-4 text-center",children:[e.jsx("p",{className:"text-2xl font-extrabold text-gray-900",children:t.assists_per_game}),e.jsx("p",{className:"text-[10px] text-gray-500 font-medium mt-0.5 uppercase",children:"Asistencias"})]})]})]})]})]})}export{P 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.