From a66f795fd57825949879715d41804ada522f7d08 Mon Sep 17 00:00:00 2001 From: "EPAZZ\\estpp" Date: Thu, 12 Feb 2026 18:39:30 -0500 Subject: [PATCH] feat: add Google Analytics integration and standardize organization branding - Integrate Google Analytics using astro-google-analytics package - Add `text-[#003421]` color classes to improve text visibility across components - Refactor Swiper carousel initialization to use modules pattern with Navigation, Pagination, and Scrollbar - Add background styling to modal form labels for better UX - Standardize organization name from "CPyJ" to full "Centro del Reino de Paz y Justicia (CRPJ)" across all content sections --- package-lock.json | 7 ++++ package.json | 1 + src/components/BaseHead.astro | 2 ++ src/components/Modal.astro | 14 ++++---- src/components/cards/NewsCard.astro | 2 +- src/components/section/CarouselSection.astro | 33 +++++++++---------- src/components/section/FormationSection.astro | 16 ++++----- src/components/section/IdentitySection.astro | 6 ++-- src/components/section/InfoSection.astro | 6 ++-- .../section/ParticipateSection.astro | 2 +- .../section/ProjectionSection.astro | 6 ++-- src/pages/news/[id].astro | 2 +- 12 files changed, 53 insertions(+), 44 deletions(-) diff --git a/package-lock.json b/package-lock.json index 59cbdc6..1152de2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,6 +13,7 @@ "@unpic/astro": "^1.0.2", "astro": "^5.17.1", "astro-embed": "^0.12.0", + "astro-google-analytics": "^1.0.3", "astro-icon": "^1.1.5", "dayjs": "^1.11.19", "swiper": "^12.1.0", @@ -2608,6 +2609,12 @@ "astro": "^5.0.0 || ^6.0.0-alpha" } }, + "node_modules/astro-google-analytics": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/astro-google-analytics/-/astro-google-analytics-1.0.3.tgz", + "integrity": "sha512-5bD7jA15yxVaUFVVEFG6KKMphYJ4AKP4+HSqCVBpTBnqh8LL0giTdAHpG9KJs3JaFbGQUTWP5Pqt8+twz7f55Q==", + "license": "ISC" + }, "node_modules/astro-icon": { "version": "1.1.5", "resolved": "https://registry.npmjs.org/astro-icon/-/astro-icon-1.1.5.tgz", diff --git a/package.json b/package.json index fbf8456..6a3dc12 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "@unpic/astro": "^1.0.2", "astro": "^5.17.1", "astro-embed": "^0.12.0", + "astro-google-analytics": "^1.0.3", "astro-icon": "^1.1.5", "dayjs": "^1.11.19", "swiper": "^12.1.0", diff --git a/src/components/BaseHead.astro b/src/components/BaseHead.astro index 2ac63e5..57ab897 100644 --- a/src/components/BaseHead.astro +++ b/src/components/BaseHead.astro @@ -1,4 +1,5 @@ --- +import { GoogleAnalytics } from 'astro-google-analytics'; const { title = "Centro del Reino de Paz y Justicia", description = "" } = Astro.props; --- @@ -9,6 +10,7 @@ const { title = "Centro del Reino de Paz y Justicia", description = "" } = + {title} diff --git a/src/components/Modal.astro b/src/components/Modal.astro index 5e54c64..a34c1d1 100644 --- a/src/components/Modal.astro +++ b/src/components/Modal.astro @@ -16,37 +16,37 @@ const { id, title } = Astro.props;
-