From 030bb68000dacdb6afae375466fdb23d19d024ef Mon Sep 17 00:00:00 2001 From: h4ckx0r Date: Tue, 15 Oct 2024 19:51:55 +0200 Subject: [PATCH] =?UTF-8?q?Cambio=20en=20las=20im=C3=A1genes=20para=20mejo?= =?UTF-8?q?rar=20el=20rendimiento?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/index.astro | 47 ++++++++++++++++++++++++------------------- 1 file changed, 26 insertions(+), 21 deletions(-) diff --git a/src/pages/index.astro b/src/pages/index.astro index 91e5e70..24d35d2 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -2,6 +2,7 @@ // Component Imports import ListadoPostsHorizontal from "../components/ListadoPostsHorizontal.astro"; import Navbar from "../components/Navbar.astro"; +import { Image } from "astro:assets"; const animateOnScroll = ` document.addEventListener('DOMContentLoaded', () => { @@ -80,10 +81,14 @@ const animateOnScroll = `

-
- +
+
@@ -156,20 +161,21 @@ const animateOnScroll = `
{ - [1, 2, 3, 4, 5, 6].map((num) => ( -
-
- {`Imagen - -
-
- )) + [1, 2, 3, 4, 5, 6].map((num) => ( +
+
+ {`Imagen +
+
+ )) } -
+ @@ -193,7 +199,7 @@ const animateOnScroll = `
-
+
Proyecto {num}

@@ -265,7 +271,7 @@ const animateOnScroll = `