From 6081c5aad1f9e4c79e5178b9dc12e4ba3c3366f7 Mon Sep 17 00:00:00 2001 From: Esteban Date: Sun, 15 Feb 2026 12:01:36 -0500 Subject: [PATCH] added grid section translations and titles section --- src/components/section/GridSection.astro | 5 ++- src/i18n/en.json | 55 +++++++++++++++++++++++- src/i18n/es.json | 55 +++++++++++++++++++++++- src/pages/[locale]/index.astro | 9 ++-- 4 files changed, 118 insertions(+), 6 deletions(-) diff --git a/src/components/section/GridSection.astro b/src/components/section/GridSection.astro index 286bfab..5060b4e 100644 --- a/src/components/section/GridSection.astro +++ b/src/components/section/GridSection.astro @@ -1,6 +1,9 @@ --- import GridCard from "../cards/GridCard.astro" +import { createTranslator } from '../../i18n'; +const tl = createTranslator(Astro.currentLocale); + const cards = [ { type: 'text', @@ -52,7 +55,7 @@ const cards = [
{ - cards.map(card =>( + tl("grid.cards").map((card) => ( )) } diff --git a/src/i18n/en.json b/src/i18n/en.json index 2cd19b0..518ae9a 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -87,5 +87,58 @@ "authority.title": "Authority | Kingdom of Peace and Justice Center", "authority.body": "Dr. José Benjamín Pérez Matos is the founder and sole leader of the Kingdom of Peace and Justice Center. His leadership combines spiritual vision, intellectual development, public action, and global reach.", - "title1.title": "Dr. José Benjamín Pérez Matos | Trajectory" + "title1.title": "Dr. José Benjamín Pérez Matos | Trajectory", + + "grid.cards" : [ + { + "type": "text", + "icon": "ph:arrow-circle-down-thin", + "text": "Dirección de La Gran Carpa Catedral. Puerto Rico", + "bgColor": "#EBE5D0", + "textColor": "#003421" + }, + { + "type": "image", + "image": "https://ik.imagekit.io/crpy/grid_image_1.webp" + }, + { + "type": "text", + "icon": "ph:arrow-circle-right-thin", + "text": "Participación activa en escenarios internacionales.", + "textColor": "#003421", + "bgColor": "#BEA48D" + }, + { + "type": "image", + "image": "https://ik.imagekit.io/crpy/grid_image_2.webp" + }, + { + "type": "image", + "image": "https://ik.imagekit.io/crpy/grid_image_3.webp" + }, + { + "type": "text", + "icon": "ph:arrow-circle-up-thin", + "text": "Enseñanza bíblica aplicada al análisis del mundo contemporáneo.", + "textColor": "#EBE5D0", + "bgColor": "#003421" + }, + { + "type": "image", + "image": "https://ik.imagekit.io/crpy/grid_image_4.webp" + }, + { + "type": "text", + "icon": "ph:arrow-circle-left-thin", + "text": "Compromiso público en la defensa de Israel, la justicia y la paz.", + "textColor": "#003421", + "bgColor": "#EBE5D0" + } + ], + + "colo1.title": "Mission", + "colo1.text": "To form leaders, promote educational initiatives, and encourage public actions in pursuit of justice and peace, based on a firm ethical and spiritual foundation, with an explicit commitment to Israel and a responsibility to contribute to the well-being and stability of mankind as a whole.", + + "colo2.title": "Visión", + "colo2.text": "To position ourselves as an international benchmark in leadership development, public diplomacy, and institutional outreach, recognized for our consistency, clear values, and tangible contribution to building a world aligned with the prophetic vision of justice and peace." } \ No newline at end of file diff --git a/src/i18n/es.json b/src/i18n/es.json index cc610e0..612e0c3 100644 --- a/src/i18n/es.json +++ b/src/i18n/es.json @@ -88,5 +88,58 @@ "authority.title": "Autoridades | Centro del Reino de Paz y Justicia", "authority.body": "El Dr. José Benjamín Pérez Matos es el fundador y único referente del Centro del Reino de Paz y Justicia. Su liderazgo articula visión espiritual, formación intelectual, acción pública y proyección internacional.", - "title1.title": "Dr. José Benjamín Pérez Matos | Trayectoria" + "title1.title": "Dr. José Benjamín Pérez Matos | Trayectoria", + + "grid.cards" : [ + { + "type": "text", + "icon": "ph:arrow-circle-down-thin", + "text": "Dirección de La Gran Carpa Catedral. Puerto Rico", + "bgColor": "#EBE5D0", + "textColor": "#003421" + }, + { + "type": "image", + "image": "https://ik.imagekit.io/crpy/grid_image_1.webp" + }, + { + "type": "text", + "icon": "ph:arrow-circle-right-thin", + "text": "Participación activa en escenarios internacionales.", + "textColor": "#003421", + "bgColor": "#BEA48D" + }, + { + "type": "image", + "image": "https://ik.imagekit.io/crpy/grid_image_2.webp" + }, + { + "type": "image", + "image": "https://ik.imagekit.io/crpy/grid_image_3.webp" + }, + { + "type": "text", + "icon": "ph:arrow-circle-up-thin", + "text": "Enseñanza bíblica aplicada al análisis del mundo contemporáneo.", + "textColor": "#EBE5D0", + "bgColor": "#003421" + }, + { + "type": "image", + "image": "https://ik.imagekit.io/crpy/grid_image_4.webp" + }, + { + "type": "text", + "icon": "ph:arrow-circle-left-thin", + "text": "Compromiso público en la defensa de Israel, la justicia y la paz.", + "textColor": "#003421", + "bgColor": "#EBE5D0" + } + ], + "colo1.title": "Misión", + "colo1.text": "Formar líderes, impulsar iniciativas educativas y promover acciones públicas orientadas a la justicia y la paz, desde una base ética y espiritual firme, con un compromiso explícito con Israel y con la responsabilidad de contribuir al bienestar y la estabilidad de la humanidad en su conjunto.", + + "colo2.title": "Visión", + "colo2.text": "Consolidarse como un actor internacional de referencia en formación de liderazgo, diplomacia pública y proyección institucional, reconocido por su coherencia, su claridad de valores y su contribución concreta a la construcción de un mundo alineado con la visión profética de justicia y paz." + } \ No newline at end of file diff --git a/src/pages/[locale]/index.astro b/src/pages/[locale]/index.astro index 19d6059..98afc05 100644 --- a/src/pages/[locale]/index.astro +++ b/src/pages/[locale]/index.astro @@ -21,6 +21,9 @@ import FooterSection from "../../components/section/FooterSection.astro"; const { locale } = Astro.params; +import { createTranslator } from '../../i18n'; +const tl = createTranslator(Astro.currentLocale); + const carouselImages2 = [ { 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", @@ -56,7 +59,7 @@ const carouselImages3 = [ - + @@ -65,8 +68,8 @@ const carouselImages3 = [ bgColor="#22523F" titleColor="text-[#ffffff]" textColor="text-[#CBA16A] font-bold" - title="Misión" - text="Formar líderes, impulsar iniciativas educativas y promover acciones públicas orientadas a la justicia y la paz, desde una base ética y espiritual firme, con un compromiso explícito con Israel y con la responsabilidad de contribuir al bienestar y la estabilidad de la humanidad en su conjunto." /> + title={tl("colo1.title")} + text={tl("colo1.text")} />