From e87f1a097951b9a3dc5088d8f1e18328d6010d18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20=C3=81ngel=20Dur=C3=A1n?= Date: Fri, 12 Jul 2024 21:23:12 +0200 Subject: [PATCH] Add forecast girls --- src/components/Combates/BackgroundVideo.astro | 5 +- src/sections/Forecasts.astro | 47 +++++++++++++++++++ 2 files changed, 49 insertions(+), 3 deletions(-) diff --git a/src/components/Combates/BackgroundVideo.astro b/src/components/Combates/BackgroundVideo.astro index 5fe2edacc..cf5d8544e 100644 --- a/src/components/Combates/BackgroundVideo.astro +++ b/src/components/Combates/BackgroundVideo.astro @@ -25,7 +25,6 @@ const url = `https://cdn.lavelada.dev/${id}-corto.mp4` diff --git a/src/sections/Forecasts.astro b/src/sections/Forecasts.astro index bb116550a..cace2631a 100644 --- a/src/sections/Forecasts.astro +++ b/src/sections/Forecasts.astro @@ -54,6 +54,51 @@ const boxers = combat?.boxers.map((boxer) => BOXERS.find((b) => b.id === boxer)) } +{ combatId === "3-zeling-y-nissaxter-vs-alana-y-ama-blitz" && ( +
+ + + +
+

Pronóstico

+

+ Basado en 0 predicciones +

+ +
+ + + +
+ + ¡Haz tu pronóstico! + +
+
+)} + { combatId !== REY_DE_LA_PISTA_ID && combatId !== "3-zeling-y-nissaxter-vs-alana-y-ama-blitz" && (
BOXERS.find((b) => b.id === boxer)) .then((res) => res.json()) .then((json: { data: { totalVotes: number; percentageVotes: Record } }) => { const { totalVotes, percentageVotes } = json?.data ?? {} + console.log({ totalVotes, percentageVotes }) + if (totalVotes == null || totalVotes === 0) return const allBoxers = $forecast.querySelectorAll(".boxer-forecast")