-
Notifications
You must be signed in to change notification settings - Fork 842
/
Copy pathindex.astro
78 lines (73 loc) · 3 KB
/
index.astro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
---
import Layout from '@/layouts/Layout.astro'
import { COMBATS } from '@/consts/combats'
import { combates } from '@/consts/pageTitles'
---
<Layout title={combates}>
<section class="min-h-screen w-full">
<div
class="mask-fade-bottom absolute inset-0 w-full bg-[url('/images/hero.avif')] bg-cover bg-center"
>
</div>
<div class="flex w-full flex-col items-center text-center">
<div id="landing" class="absolute top-0 flex w-full flex-col items-center py-30">
<h3
class="text-theme-seashell animate-fade-in animate-delay-300 mt-4 -skew-3 text-6xl leading-[100%] font-medium tracking-wider brightness-125 transition-all duration-300 [text-shadow:_5px_5px_10px_rgb(0_0_0_/_50%)]"
>
<strong>LISTA DE LOS</strong>
<br /><strong>COMBATES</strong>
</h3>
</div>
<div
id="combats-container"
class="relative top-96 mx-auto mt-10 mb-72 grid max-w-7xl grid-cols-1 gap-4 p-6 md:grid-cols-2 md:gap-8"
>
{
COMBATS.map(({ id, number, fighters, title }) => (
<a
class="inline-block"
href={`combates/${id}`}
title={`Ir al combate ${number} de ${title}`}
>
<div class="group animate-fade-in animate-delay-200 relative flex h-[40vh] w-full sm:h-[50vh]">
{fighters.map((fighter, index) => (
<img
src={`/images/fighters/big/${fighter}.webp`}
class={`z-20 h-full w-1/2 object-contain ${index === 0 ? 'ml-5 lg:ml-10' : '-ml-10 lg:-ml-20'} mask-fade-bottom size-96 transition-transform duration-300 group-hover:scale-110`}
alt={`Imagen de ${fighter}`}
loading="lazy"
decoding="async"
/>
))}
<div class="absolute bottom-0 z-30 flex h-auto w-full -skew-4 flex-col items-center justify-center p-8 transition-transform duration-300 group-hover:scale-90">
<img
src={`/images/fighters/text/${fighters[0]}.webp`}
loading="lazy"
decoding="async"
class="w-3/4"
alt=""
/>
<img
src="/images/versus.webp"
class="h-auto w-24"
loading="lazy"
decoding="async"
alt=""
/>
<img
src={`/images/fighters/text/${fighters[1]}.png`}
loading="lazy"
decoding="async"
class="w-3/4"
alt=""
/>
</div>
<div class="absolute bottom-0 z-10 h-2/3 w-full bg-gradient-to-b from-pink-900/30 from-60% to-transparent transition-colors duration-300 group-hover:from-pink-900/20" />
</div>
</a>
))
}
</div>
</div>
</section>
</Layout>