-
Notifications
You must be signed in to change notification settings - Fork 607
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #443 from midudev/fix-links-section-sizes
Section links - Hacer que se asemeje un poco más al figma y al resto de seccions
- Loading branch information
Showing
3 changed files
with
56 additions
and
51 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,48 @@ | ||
--- | ||
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", | ||
}, | ||
] | ||
--- | ||
|
||
<section class="mt-32 md:mt-60"> | ||
<div class="flex flex-wrap justify-center"> | ||
<div class="w-full px-4 sm:w-1/2 lg:w-1/2"> | ||
<ImageOverlay | ||
imgSrc="/img/event/evento.webp" | ||
imgAlt="Evento" | ||
title="EL EVENTO" | ||
description="Lugar y agenda del evento" | ||
/> | ||
</div> | ||
<div class="w-full px-4 sm:w-1/2 lg:w-1/2"> | ||
<ImageOverlay | ||
imgSrc="/img/event/entradas.webp" | ||
imgAlt="Entradas" | ||
title="ENTRADAS" | ||
description="A la venta próximamente" | ||
/> | ||
</div> | ||
<div class="w-full px-4 sm:w-1/2 lg:w-1/2"> | ||
<ImageOverlay | ||
imgSrc="/img/event/combates.webp" | ||
imgAlt="Combates" | ||
title="COMBATES" | ||
description="Información de los contrincantes" | ||
/> | ||
</div> | ||
<div class="w-full px-4 sm:w-1/2 lg:w-1/2"> | ||
<ImageOverlay | ||
imgSrc="/img/event/pronosticos.webp" | ||
imgAlt="Pronóstico" | ||
title="PRONÓSTICOS" | ||
description="Predicciones de victoria" | ||
/> | ||
</div> | ||
<section class="mt-32 px-4 md:mt-60"> | ||
<div | ||
class="flex flex-col items-center justify-center gap-x-8 gap-y-20 md:grid md:grid-cols-2 md:gap-y-12" | ||
> | ||
{ | ||
items.map((item, index) => ( | ||
<ImageOverlay | ||
className="max-w-md lg:max-w-none" | ||
imgSrc={item.imgSrc} | ||
imgAlt={item.imgAlt} | ||
title={item.title} | ||
description={item.description} | ||
/> | ||
)) | ||
} | ||
</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