diff --git a/src/consts/items.ts b/src/consts/items.ts new file mode 100644 index 000000000..ec345816c --- /dev/null +++ b/src/consts/items.ts @@ -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 \ No newline at end of file diff --git a/src/sections/Boxing.astro b/src/sections/Boxing.astro index a6b72d61a..fa7663e62 100644 --- a/src/sections/Boxing.astro +++ b/src/sections/Boxing.astro @@ -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" ---