Skip to content

Commit 191b15e

Browse files
committed
Add animations
1 parent 41e23d7 commit 191b15e

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

src/components/Hero.astro

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,24 @@ import { SPONSORS } from "@/consts/sponsors"
33
---
44

55
<section
6-
class="relative min-h-screen w-full overflow-hidden bg-[var(--background-color)] bg-[url(/img/background-la-velada.webp)] bg-cover bg-center bg-no-repeat pt-10 pb-20"
6+
class="relative min-h-screen w-full overflow-hidden bg-[var(--background-color)] pt-10 pb-20"
77
>
8+
<img
9+
src="/img/background-la-velada.webp"
10+
class="animate-fade-in pointer-events-none absolute top-0 z-0 h-screen w-screen object-cover"
11+
/>
812
<h1 class="sr-only">Presentación de la Velada del Año IV</h1>
913

1014
<!-- Sponsors -->
1115
<div
12-
class="mx-auto mb-2 flex max-w-6xl flex-wrap items-center justify-center gap-6 px-4 md:gap-3.5"
16+
class="animate-fade-in animate-delay-700 relative mx-auto mb-2 flex max-w-6xl flex-wrap items-center justify-center gap-2 px-4 md:gap-4"
1317
>
1418
{
1519
SPONSORS.filter(({ id }) =>
1620
["alsa", "spotify", "revolut", "vicio", "coca-cola"].includes(id)
1721
).map(({ id, name, url, image, icon: Icon }) => (
1822
<a
19-
class="transition hover:scale-105 focus:scale-105"
23+
class="text-[var(--color-wine)] opacity-70 transition hover:scale-105 hover:opacity-100 focus:scale-105"
2024
href={url}
2125
target="_blank"
2226
rel="noopener noreferrer"
@@ -31,14 +35,14 @@ import { SPONSORS } from "@/consts/sponsors"
3135

3236
<!-- Secondary Sponsors Row -->
3337
<div
34-
class="mx-auto mb-20 flex max-w-4xl flex-wrap items-center justify-center gap-6 px-4 md:gap-3.5"
38+
class="animate-fade-in animate-delay-800 relative mx-auto mb-20 flex max-w-4xl flex-wrap items-center justify-center gap-2 px-4 md:gap-4"
3539
>
3640
{
3741
SPONSORS.filter(({ id }) =>
3842
["infojobs", "grefusa", "cerave", "nothing", "mahou", "maxibon"].includes(id)
3943
).map(({ name, url, image, icon: Icon }) => (
4044
<a
41-
class="transition hover:scale-105 focus:scale-105"
45+
class="text-[var(--color-wine)] opacity-70 transition hover:scale-105 hover:opacity-100 focus:scale-105"
4246
href={url}
4347
target="_blank"
4448
rel="noopener noreferrer"
@@ -53,10 +57,14 @@ import { SPONSORS } from "@/consts/sponsors"
5357

5458
<div class="relative mx-auto max-w-7xl px-4 text-center">
5559
<!-- Main Content -->
56-
<h2 class="pb-4 text-sm font-medium text-[var(--color-wine)] uppercase">Presentación de</h2>
60+
<h2
61+
class="animate-fade-in animate-delay-300 pb-4 text-sm font-medium text-[var(--color-wine)] uppercase"
62+
>
63+
Presentación de
64+
</h2>
5765

5866
<!-- Logo -->
59-
<div class="relative mb-8 flex justify-center">
67+
<div class="animate-fade-in-up animate-delay-400 relative mb-8 flex justify-center">
6068
<img
6169
src="/img/logo-la-velada-v.webp"
6270
alt="Logo de La Velada Del Año"
@@ -67,7 +75,7 @@ import { SPONSORS } from "@/consts/sponsors"
6775

6876
<!-- Bottom Info -->
6977
<div
70-
class="absolute right-0 bottom-16 left-0 flex flex-col justify-between px-8 text-[var(--color-wine)] md:flex-row md:px-16"
78+
class="animate-fade-in animate-delay-700 absolute right-0 bottom-16 left-0 flex flex-col justify-between px-8 text-[var(--color-wine)] md:flex-row md:px-16"
7179
>
7280
<div class="text-stroke mb-6 md:mb-0">
7381
<p class="text-md text-center leading-tight font-bold md:text-lg">10 DE MARZO</p>

src/consts/sponsors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import InfoJobs from "@/assets/sponsors/Infojobs.svg"
1010
import Mahou from "@/assets/sponsors/Mahou.svg"
1111
import Maxibon from "@/assets/sponsors/Maxibon.svg"
1212
import Nothing from "@/assets/sponsors/Nothing.svg"
13-
import Prime from "@/assets/sponsors/Prime.svg"
13+
import Prime from "@/assets/sponsors/PrimeH.svg"
1414
import Revolut from "@/assets/sponsors/Revolut.svg"
1515
import Spotify from "@/assets/sponsors/Spotify.svg"
1616
import Vicio from "@/assets/sponsors/Vicio.svg"

0 commit comments

Comments
 (0)