diff --git a/package-lock.json b/package-lock.json index 1cdada3..5e46580 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,8 +9,13 @@ "dependencies": { "@astrojs/markdoc": "^0.15.10", "@astrojs/node": "^9.5.3", + "@coreui/icons": "^3.0.1", "@astrojs/vue": "^5.1.4", "@dotenvx/dotenvx": "^1.52.0", + "@fontsource-variable/kameron": "^5.2.8", + "@fontsource-variable/kreon": "^5.2.8", + "@fontsource-variable/rokkitt": "^5.2.8", + "@fontsource/poppins": "^5.2.7", "@iconify-json/ph": "^1.2.2", "@tailwindcss/vite": "^4.1.18", "@unpic/astro": "^1.0.2", @@ -870,6 +875,12 @@ "node": ">=18" } }, + "node_modules/@coreui/icons": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@coreui/icons/-/icons-3.0.1.tgz", + "integrity": "sha512-u9UKEcRMyY9pa4jUoLij8pAR03g5g6TLWV33/Mx2ix8sffyi0eO4fLV8DSTQljDCw938zt7KYog5cVKEAJUxxg==", + "license": "MIT" + }, "node_modules/@dotenvx/dotenvx": { "version": "1.52.0", "resolved": "https://registry.npmjs.org/@dotenvx/dotenvx/-/dotenvx-1.52.0.tgz", @@ -1357,6 +1368,42 @@ "node": ">=18" } }, + "node_modules/@fontsource-variable/kameron": { + "version": "5.2.8", + "resolved": "https://registry.npmjs.org/@fontsource-variable/kameron/-/kameron-5.2.8.tgz", + "integrity": "sha512-Q2wjV3qZ62H54rl2k3QUopvPutXBjOU+gy2aqTz4iZYKPW2w0LTvY+UmQLSaWmTXV3MTCHKemr8HRxObQZjx3A==", + "license": "OFL-1.1", + "funding": { + "url": "https://github.com/sponsors/ayuhito" + } + }, + "node_modules/@fontsource-variable/kreon": { + "version": "5.2.8", + "resolved": "https://registry.npmjs.org/@fontsource-variable/kreon/-/kreon-5.2.8.tgz", + "integrity": "sha512-QSRKN9LwxoUIMjA1utIBRu5kMg5I2nmHTRJ6/+vstlnjW+eaMCxjPdpL5+NM3cFhUwyFXu/U52NmJmINrXEG1g==", + "license": "OFL-1.1", + "funding": { + "url": "https://github.com/sponsors/ayuhito" + } + }, + "node_modules/@fontsource-variable/rokkitt": { + "version": "5.2.8", + "resolved": "https://registry.npmjs.org/@fontsource-variable/rokkitt/-/rokkitt-5.2.8.tgz", + "integrity": "sha512-/1yuWZ0YdvzD5UgayFmISjubAhqkDC5/RZyd583XCXBS9Yck3t0IYGN37+qEZtA8iQ8AypoVc2CfTRmz6L5mHQ==", + "license": "OFL-1.1", + "funding": { + "url": "https://github.com/sponsors/ayuhito" + } + }, + "node_modules/@fontsource/poppins": { + "version": "5.2.7", + "resolved": "https://registry.npmjs.org/@fontsource/poppins/-/poppins-5.2.7.tgz", + "integrity": "sha512-6uQyPmseo4FgI97WIhA4yWRlNaoLk4vSDK/PyRwdqqZb5zAEuc+Kunt8JTMcsHYUEGYBtN15SNkMajMdqUSUmg==", + "license": "OFL-1.1", + "funding": { + "url": "https://github.com/sponsors/ayuhito" + } + }, "node_modules/@iconify-json/ph": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/@iconify-json/ph/-/ph-1.2.2.tgz", diff --git a/package.json b/package.json index 4b4ec0e..8db3eba 100644 --- a/package.json +++ b/package.json @@ -11,8 +11,13 @@ "dependencies": { "@astrojs/markdoc": "^0.15.10", "@astrojs/node": "^9.5.3", + "@coreui/icons": "^3.0.1", "@astrojs/vue": "^5.1.4", "@dotenvx/dotenvx": "^1.52.0", + "@fontsource-variable/kameron": "^5.2.8", + "@fontsource-variable/kreon": "^5.2.8", + "@fontsource-variable/rokkitt": "^5.2.8", + "@fontsource/poppins": "^5.2.7", "@iconify-json/ph": "^1.2.2", "@tailwindcss/vite": "^4.1.18", "@unpic/astro": "^1.0.2", diff --git a/public/img/DRJBP-2.webp b/public/img/DRJBP-2.webp deleted file mode 100644 index fa726aa..0000000 Binary files a/public/img/DRJBP-2.webp and /dev/null differ diff --git a/public/img/hero-image.webp b/public/img/hero-image.webp deleted file mode 100644 index fe492ea..0000000 Binary files a/public/img/hero-image.webp and /dev/null differ diff --git a/src/components/Header.astro b/src/components/Header.astro index a0ba9e8..8c732d2 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -1,22 +1,26 @@ --- import Button from "./ui/Button.astro"; import { Icon } from "astro-icon/components"; + +import { createTranslator } from "../i18n/index.ts"; +const tl = createTranslator(Astro.currentLocale); +const currentLocale = Astro.currentLocale; ---
+
diff --git a/src/components/HeroHome.astro b/src/components/HeroHome.astro index e30d69f..4151725 100644 --- a/src/components/HeroHome.astro +++ b/src/components/HeroHome.astro @@ -1,6 +1,9 @@ --- import Header from './Header.astro'; import { Icon } from 'astro-icon/components'; + +import { createTranslator } from '../i18n'; +const tl = createTranslator(Astro.currentLocale); ---
@@ -18,11 +21,11 @@ import { Icon } from 'astro-icon/components'; />

- Dr. José Benjamín
Pérez Matos + {tl("hero.name")}

-
LÍDER FUNDADOR
+
{tl("hero.title")}
@@ -31,11 +34,7 @@ import { Icon } from 'astro-icon/components';
-

- “El sueño de mi vida es ver cumplida la visión de los - profetas: un mundo de justicia y paz para el bien de - Israel y de toda la humanidad.” -

+

{tl("hero.body")}

+ + + + + + \ No newline at end of file diff --git a/src/components/cards/NewsCard.astro b/src/components/cards/NewsCard.astro index 7ffd547..bb4cb16 100644 --- a/src/components/cards/NewsCard.astro +++ b/src/components/cards/NewsCard.astro @@ -4,8 +4,9 @@ import { Icon } from "astro-icon/components"; import "dayjs/locale/es"; import dayjs from "dayjs"; const regionNames = new Intl.DisplayNames(['es'], { type: 'region' }); +const { locale } = Astro.params; -dayjs.locale("es"); +dayjs.locale(locale); const { data } = Astro.props; const nicedate = dayjs(data.data.date).format("D MMMM YYYY"); @@ -18,7 +19,7 @@ const countryName = regionNames.of(data.data.country);

{data.data.city}, {countryName}
({nicedate}):

-

{data.data.title}

+

{data.data.title}

+
-
-

Autoridades | Centro del Reino de Paz y Justicia

-

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.

+
+

+