Skip to content

Commit

Permalink
Creación de la constante Items para abstraerla del archivo Boxing.astro
Browse files Browse the repository at this point in the history
  • Loading branch information
Edier-Gama committed Mar 13, 2024
1 parent ba90f34 commit 7cd37b9
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 27 deletions.
33 changes: 33 additions & 0 deletions src/consts/items.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
interface Item {
imgSrc: string,
imgAlt: string,
title: string,
description: string,
}

export const items : Item[] = [
{
imgSrc: "/img/event/evento.webp",
imgAlt: "Evento",
title: "EL EVENTO",
description: "Lugar y agenda del evento",
},
{
imgSrc: "/img/event/entradas.webp",
imgAlt: "Entradas",
title: "ENTRADAS",
description: "A la venta próximamente",
},
{
imgSrc: "/img/event/combates.webp",
imgAlt: "Combates",
title: "COMBATES",
description: "Información de los contrincantes",
},
{
imgSrc: "/img/event/pronosticos.webp",
imgAlt: "Pronóstico",
title: "PRONÓSTICOS",
description: "Predicciones de victoria",
},
] as const
28 changes: 1 addition & 27 deletions src/sections/Boxing.astro
Original file line number Diff line number Diff line change
@@ -1,32 +1,6 @@
---
import ImageOverlay from "../components/ImageOverlay.astro"
const items = [
{
imgSrc: "/img/event/evento.webp",
imgAlt: "Evento",
title: "EL EVENTO",
description: "Lugar y agenda del evento",
},
{
imgSrc: "/img/event/entradas.webp",
imgAlt: "Entradas",
title: "ENTRADAS",
description: "A la venta próximamente",
},
{
imgSrc: "/img/event/combates.webp",
imgAlt: "Combates",
title: "COMBATES",
description: "Información de los contrincantes",
},
{
imgSrc: "/img/event/pronosticos.webp",
imgAlt: "Pronóstico",
title: "PRONÓSTICOS",
description: "Predicciones de victoria",
},
]
import { items } from "../consts/items"
---

<section class="mt-32 px-4 md:mt-60">
Expand Down

0 comments on commit 7cd37b9

Please sign in to comment.