-
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.
- Loading branch information
Showing
5 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
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 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,40 @@ | ||
--- | ||
import DrawnXLogo from "@/components/DrawnXLogo.astro" | ||
import LiteYouTube from "@/components/LiteYouTube.astro" | ||
import Typography from "@/components/Typography.astro" | ||
import { COMBATS } from "@/consts/combats" | ||
const { combatId } = Astro.props | ||
const combat = COMBATS.find((combat) => combat.id === combatId) | ||
if (!combat) return null | ||
const { title, video } = combat | ||
--- | ||
|
||
<section class="mt-10 overflow-hidden px-2 pb-48 pt-16 sm:pb-56 sm:pt-32 md:pt-32"> | ||
<Typography as="h3" variant="h3" color="white" class:list={"text-center"}> | ||
¡Revive el combate! | ||
</Typography> | ||
|
||
<Typography | ||
as="p" | ||
variant="body" | ||
color="neutral" | ||
class:list={"mx-auto mt-4 max-w-[250px] text-wrap text-center"} | ||
> | ||
Vuelve a ver el combate {title} | ||
</Typography> | ||
|
||
<div class="relative mt-8"> | ||
<DrawnXLogo | ||
class:list={"absolute inset-0 -z-10 m-auto scale-125 select-none drop-shadow-[0_0_40px_rgba(213,255,0,1)]"} | ||
/> | ||
<LiteYouTube | ||
videoId={video} | ||
backgroundImage={`/img/combats/${combatId}.webp`} | ||
title="Reproducir presentación de La Velada del Año" | ||
/> | ||
</div> | ||
</section> |
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 |
---|---|---|
|
@@ -5,4 +5,5 @@ export interface Combat { | |
teams?: string[] | ||
titleSize: [number, number] | ||
title: string | ||
video: string | ||
} |