services section updated
This commit is contained in:
parent
7956133da2
commit
64e469e65b
@ -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 (
|
||||
<div className={`wpo-campaign-area section-padding ${props.cmClass || ""}`}>
|
||||
<div className="container">
|
||||
{/* Section Title */}
|
||||
<SectionTitle
|
||||
subTitle={t("page.subtitle")}
|
||||
Title={t("page.title")}
|
||||
/>
|
||||
<SectionTitle subTitle={t("page.subtitle")} Title={t("page.title")} />
|
||||
|
||||
<div className="wpo-campaign-wrap">
|
||||
<div className="row">
|
||||
{campaigns.map((campaign, cam) => (
|
||||
<div className="col-lg-4 col-md-6 col-12" key={cam}>
|
||||
{campaigns.map((campaign, index) => (
|
||||
<div className="col-lg-4 col-md-6 col-12" key={campaign.id || index}>
|
||||
<div className="wpo-campaign-single">
|
||||
<div className="wpo-campaign-item">
|
||||
<div className="wpo-campaign-img">
|
||||
@ -40,25 +36,22 @@ const ServicesSection = (props) => {
|
||||
unoptimized
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className="wpo-campaign-content">
|
||||
<div className="wpo-campaign-text-top data-theem">
|
||||
<h3>
|
||||
<Link
|
||||
onClick={ClickHandler}
|
||||
href={`/services/${campaign.slug}`}
|
||||
onClick={ClickHandler}
|
||||
>
|
||||
{campaign.sTitle}
|
||||
</Link>
|
||||
</h3>
|
||||
|
||||
<p>{campaign.description}</p>
|
||||
|
||||
<div className="services-btn">
|
||||
<Link
|
||||
onClick={ClickHandler}
|
||||
href={`/services/${campaign.slug}`}
|
||||
className="theme-btn full-width-btn"
|
||||
onClick={ClickHandler}
|
||||
>
|
||||
{t("page.viewButton")}
|
||||
</Link>
|
||||
|
||||
@ -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'
|
||||
// Vidhya - OurApproach
|
||||
|
||||
// Alagu Raj - 'common', 'menu', 'homeHero', 'home4Card', '(home)/homeAbout', '(home)/homeFeature', '(home)/testimonial', '(home)/homeCalltoAction', 'blog'
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user