From 64e469e65b3bbb10c67f78d98e67e38a62d77aa8 Mon Sep 17 00:00:00 2001 From: Alaguraj0361 Date: Mon, 18 Aug 2025 20:27:11 +0530 Subject: [PATCH] services section updated --- components/services/ServicesSection.js | 21 +++++++-------------- next-i18next.config.js | 15 +++++++-------- 2 files changed, 14 insertions(+), 22 deletions(-) diff --git a/components/services/ServicesSection.js b/components/services/ServicesSection.js index 15ec345..d7d4939 100644 --- a/components/services/ServicesSection.js +++ b/components/services/ServicesSection.js @@ -6,29 +6,25 @@ import { useTranslation } from "next-i18next"; const ClickHandler = () => { if (typeof window !== "undefined") { - window.scrollTo(10, 0); + window.scrollTo(0, 0); } }; const ServicesSection = (props) => { const { t } = useTranslation("services"); - // campaigns from translations + // Get campaigns array from translation json const campaigns = t("campaigns", { returnObjects: true }); return (
- {/* Section Title */} - +
- {campaigns.map((campaign, cam) => ( -
+ {campaigns.map((campaign, index) => ( +
@@ -40,25 +36,22 @@ const ServicesSection = (props) => { unoptimized />
-

{campaign.sTitle}

-

{campaign.description}

-
{t("page.viewButton")} diff --git a/next-i18next.config.js b/next-i18next.config.js index c469875..2732a8b 100644 --- a/next-i18next.config.js +++ b/next-i18next.config.js @@ -1,4 +1,3 @@ -// const { default: OurApproach } = require("./pages/our-approach"); module.exports = { i18n: { @@ -6,18 +5,18 @@ module.exports = { locales: ['en', 'es'], localeDetection: false, }, - ns: ['common', 'menu', 'homeHero', 'home4Card'], + ns: ['common', 'menu', 'homeHero', 'home4Card', '(home)/homeAbout', '(home)/homeFeature', '(home)/testimonial', '(home)/homeCalltoAction', 'blog', 'services'], defaultNS: 'common', // localePath: './public/locales', }; -// aakash - ourMission, racialJustice +// aakash - 'ourMission', 'racialJustice', 'services' -// Selvi - 'ourStory', 'aboutService', 'aboutMission', 'aboutRacial', 'aboutDonor', 'contact', - +// Selvi - 'ourStory', 'aboutService', 'aboutMission', 'aboutRacial', 'aboutDonor' -// Vidhya -// OurApproach -// Alagu Raj - 'common', 'menu', 'homeHero', 'home4Card', '(home)/homeAbout', '(home)/homeFeature', '(home)/testimonial', '(home)/homeCalltoAction' \ No newline at end of file +// Vidhya - OurApproach + +// Alagu Raj - 'common', 'menu', 'homeHero', 'home4Card', '(home)/homeAbout', '(home)/homeFeature', '(home)/testimonial', '(home)/homeCalltoAction', 'blog' +