-
Notifications
You must be signed in to change notification settings - Fork 609
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove pronosticos and show already voted ones
- Loading branch information
Showing
7 changed files
with
138 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,15 @@ | ||
--- | ||
import { getSession } from "auth-astro/server" | ||
import Intro from "@/components/Pronosticos/Intro.astro" | ||
import Vote from "@/components/Pronosticos/Vote.astro" | ||
import Layout from "@/layouts/Layout.astro" | ||
const session = await getSession(Astro.request) | ||
import { COMBATS } from "@/consts/combats" | ||
import Forecasts from "@/sections/Forecasts.astro" | ||
--- | ||
|
||
<Layout | ||
title="Pronostica los ganadores - La Velada del Año IV" | ||
description="¡Participa votando a los boxeadores que crees que ganarán sus combates!" | ||
> | ||
<main class="flex flex-col items-center justify-center text-white"> | ||
{session === null ? <Intro /> : <Vote user={session.user} />} | ||
{COMBATS.map((combat) => <Forecasts combatId={combat.id} />)} | ||
</main> | ||
</Layout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
import { getSession } from "auth-astro/server" | ||
|
||
import Intro from "@/components/Pronosticos/Intro.astro" | ||
import Vote from "@/components/Pronosticos/Vote.astro" | ||
import Layout from "@/layouts/Layout.astro" | ||
|
||
const session = await getSession(Astro.request) | ||
--- | ||
|
||
<Layout | ||
title="Pronostica los ganadores - La Velada del Año IV" | ||
description="¡Participa votando a los boxeadores que crees que ganarán sus combates!" | ||
> | ||
<main class="flex flex-col items-center justify-center text-white"> | ||
{session === null ? <Intro /> : <Vote user={session.user} />} | ||
</main> | ||
</Layout> |
Oops, something went wrong.