From 498a4be75af9da1de5e2bdde7cf897415a62e01a Mon Sep 17 00:00:00 2001 From: "EPAZZ\\estpp" Date: Sat, 9 May 2026 13:15:22 -0500 Subject: [PATCH] feat: add news articles and update CarouselSection component --- src/components/section/CarouselSection.astro | 28 +++++++++++++++----- src/content/news/en/2025-07-06.md | 2 +- src/content/news/es/2025-07-06.md | 4 +-- src/content/news/pt/2025-07-06.md | 2 +- 4 files changed, 26 insertions(+), 10 deletions(-) diff --git a/src/components/section/CarouselSection.astro b/src/components/section/CarouselSection.astro index 00946a8..4563a46 100644 --- a/src/components/section/CarouselSection.astro +++ b/src/components/section/CarouselSection.astro @@ -16,7 +16,7 @@ const { images, class: className } = Astro.props; { images.map((image) => (
-
+
{image.text && (
{image.text} @@ -27,7 +27,7 @@ const { images, class: className } = Astro.props; src={image.image} alt={image.text} /> - {image.text_alt && ( + {image.text_alt && (
{image.text_alt}
@@ -43,12 +43,28 @@ const { images, class: className } = Astro.props;
- {isHebrew && } - {!isHebrew && } + { + isHebrew && ( + + ) + } + { + !isHebrew && ( + + ) + }
- {isHebrew && } - {!isHebrew && } + { + isHebrew && ( + + ) + } + { + !isHebrew && ( + + ) + }
diff --git a/src/content/news/en/2025-07-06.md b/src/content/news/en/2025-07-06.md index d120a1a..de2c772 100644 --- a/src/content/news/en/2025-07-06.md +++ b/src/content/news/en/2025-07-06.md @@ -10,7 +10,7 @@ thumbnail: 'https://ik.imagekit.io/crpy/tr:w-1280,h-1280,cm-pad_resize,bg-blurre tags: [Israel, Panamá] gallery: [ { - image: 'https://ik.imagekit.io/crpy/tr:w-1280,h-900,cm-pad_resize,bg-blurred/photo_2025-08-06_18-57-55.jpg', + image: 'https://ik.imagekit.io/crpy/tr:w-1920,h-1280,cm-pad_resize,bg-blurred/photo_2025-08-06_18-57-55.webp', }, ] --- diff --git a/src/content/news/es/2025-07-06.md b/src/content/news/es/2025-07-06.md index 262ecf9..d0b6db9 100644 --- a/src/content/news/es/2025-07-06.md +++ b/src/content/news/es/2025-07-06.md @@ -6,11 +6,11 @@ slug: 2025-07-06-alianza-estrategica-en-jerusalen-el-embajador-de-panama-respald place: '' country: 'IL' city: 'Jerusalén' -thumbnail: 'https://ik.imagekit.io/crpy/tr:w-1280,h-1280,cm-pad_resize,bg-blurred/photo_2025-08-06_18-57-55.jpg' +thumbnail: 'https://ik.imagekit.io/crpy/tr:w-1280,h-900,cm-pad_resize,bg-blurred/photo_2025-08-06_18-57-55.webp' tags: [Israel, Panamá] gallery: [ { - image: 'https://ik.imagekit.io/crpy/tr:w-1280,h-900,cm-pad_resize,bg-blurred/photo_2025-08-06_18-57-55.jpg', + image: 'https://ik.imagekit.io/crpy/tr:w-1920,h-1280,cm-pad_resize,bg-blurred/photo_2025-08-06_18-57-55.webp', }, ] --- diff --git a/src/content/news/pt/2025-07-06.md b/src/content/news/pt/2025-07-06.md index cea9cc5..cdb026d 100644 --- a/src/content/news/pt/2025-07-06.md +++ b/src/content/news/pt/2025-07-06.md @@ -10,7 +10,7 @@ thumbnail: 'https://ik.imagekit.io/crpy/tr:w-1280,h-1280,cm-pad_resize,bg-blurre tags: [Israel, Panamá] gallery: [ { - image: 'https://ik.imagekit.io/crpy/tr:w-1280,h-900,cm-pad_resize,bg-blurred/photo_2025-08-06_18-57-55.jpg', + image: 'https://ik.imagekit.io/crpy/tr:w-1920,h-1280,cm-pad_resize,bg-blurred/photo_2025-08-06_18-57-55.webp', }, ] ---