From 7bca53e0dd20362d5419678fbdec3ecf23420ec3 Mon Sep 17 00:00:00 2001 From: "EPAZZ\\estpp" Date: Fri, 13 Feb 2026 02:05:38 -0500 Subject: [PATCH] fixed imagescaroulsel and added iamges in home --- src/components/section/CarouselSection.astro | 19 ++++++++++--------- src/components/section/NewsSection.astro | 6 +++++- src/pages/index.astro | 18 +++++------------- src/pages/news/[id].astro | 1 + 4 files changed, 21 insertions(+), 23 deletions(-) diff --git a/src/components/section/CarouselSection.astro b/src/components/section/CarouselSection.astro index 92edc99..5371146 100644 --- a/src/components/section/CarouselSection.astro +++ b/src/components/section/CarouselSection.astro @@ -4,22 +4,23 @@ import "swiper/css"; import "swiper/css/navigation"; import "swiper/css/pagination"; import { Icon } from "astro-icon/components"; -const { images } = Astro.props; +const { images, class: className } = Astro.props; ---
-
+
{ images.map((image) => ( -
-
- -
- {image.text} -
- +
+
+ {image.text && ( +
+ {image.text} +
+ )} + {image.text}
)) diff --git a/src/components/section/NewsSection.astro b/src/components/section/NewsSection.astro index 0757707..673a604 100644 --- a/src/components/section/NewsSection.astro +++ b/src/components/section/NewsSection.astro @@ -5,8 +5,12 @@ const newsItems = await getCollection("news"); ---
-

Noticias

+
+

Noticias

Actualidad institucional y proyección internacional

+

Esta sección reúne las principales actividades, reconocimientos y acciones del Centro del Reino de Paz y Justicia y de su fundador.

+
+
{ diff --git a/src/pages/index.astro b/src/pages/index.astro index eebd4ce..ec8cf3a 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -21,32 +21,24 @@ import FooterSection from "../components/section/FooterSection.astro"; const carouselImages2 = [ { - image: "https://picsum.photos/1920/800?random=1&grayscale", + image: "https://ik.imagekit.io/crpy/tr:w-1920,h-1080,cm-extract,x-0,y-1730/lonely-african-american-male-praying-with-his-hands-bible-with-his-head-down.webp", text: "Justicia", }, { - image: "https://picsum.photos/1920/800?random=2&grayscale", + image: "https://ik.imagekit.io/crpy/amigos-bn.webp", text: "Paz", }, - { - image: "https://picsum.photos/1920/800?random=3&grayscale", - text: "", - } ]; const carouselImages3 = [ { - image: "https://picsum.photos/1920/800?random=1&grayscale", + image: "https://ik.imagekit.io/crpy/lonely-african-american-male-praying-with-his-hands-bible-with-his-head-down.webp", text: "Justicia", }, { - image: "https://picsum.photos/1920/800?random=2&grayscale", + image: "https://ik.imagekit.io/crpy/amigos-bn.webp", text: "Paz", }, - { - image: "https://picsum.photos/1920/800?random=3&grayscale", - text: "", - } ]; --- @@ -55,7 +47,7 @@ const carouselImages3 = [ - + diff --git a/src/pages/news/[id].astro b/src/pages/news/[id].astro index 08d39e4..b95d4cb 100644 --- a/src/pages/news/[id].astro +++ b/src/pages/news/[id].astro @@ -7,6 +7,7 @@ import { Image } from "@unpic/astro"; import { getCollection, render } from "astro:content"; import TitleSection from "../../components/section/TitleSection.astro"; import FooterSection from '../../components/section/FooterSection.astro'; +export const prerender = true; // 1. Generate a new path for every collection entry export async function getStaticPaths() { const posts = await getCollection("news");