Commit 03645bf4 by sujata

merge resolved

2 parents 4d747a6f 3a90f487
......@@ -14,14 +14,14 @@ const HowWeDoIt = ({ data, heading }) => {
<span className="sub-title">{heading?.Subtitle}</span>
<Heading el="h2" heading={heading?.Title} />
</div>
<p
<div
className=" text-center text-black mb-4 mb-lg-5"
dangerouslySetInnerHTML={{ __html: heading?.Description }}
></p>
></div>
<Row className="row-gap-4 justify-content-center">
{data?.carddetails &&
data?.carddetails.map((item, index) => (
<Col md={4} key={index}>
<Col md={4} key={index}>
<div className="HowWeDoIt_card ">
<h2>{item?.Title}</h2>
{/* <Image
......@@ -31,7 +31,7 @@ const HowWeDoIt = ({ data, heading }) => {
fill
/> */}
<img
src={cleanImage(item?.Image?.url)}
src={cleanImage(item?.Image?.url)}
alt={item?.Title || "Image"}
style={{
width: "100%",
......
......@@ -13,7 +13,7 @@ import { Col, Row } from "react-bootstrap";
import { slideFromLeft } from "@/components/reuseables/variants";
const DigitalFaq = ({ data, heading }) => {
console.log(data, "data");
// console.log(data, "data");
return (
<>
<div className="faq-area digital_transformation_faq ptb-50">
......@@ -68,13 +68,13 @@ const DigitalFaq = ({ data, heading }) => {
<p>{productItem?.Description}</p>
{item?.Button?.text && (
{productItem?.Button?.text && (
<div className="btn-1 mt-auto mb-4">
<Link
href={item?.Button?.URL || "#"}
href={productItem?.Button?.URL || "#"}
className="default-btn-three"
>
{item?.Button?.text || ""}
{productItem?.Button?.text || ""}
<i className="ri-arrow-right-line"></i>
</Link>
</div>
......
......@@ -5,14 +5,16 @@ import React from 'react'
import { Container } from 'react-bootstrap'
const DigitalHowWeDoIt = ({ heading, desktopImage, mobileImage }) => {
console.log(desktopImage, "desktopImage data");
console.log(mobileImage, "mobileImage data");
// console.log(desktopImage, "desktopImage data");
// console.log(mobileImage, "mobileImage data");
return (
<Container className="text-center">
<div className="section-title">
<Heading el="h2" heading={heading} />
</div>
{heading &&
<div className="section-title">
<Heading el="h2" heading={heading} />
</div>
}
{desktopImage?.url && (
<Image
......@@ -20,7 +22,7 @@ const DigitalHowWeDoIt = ({ heading, desktopImage, mobileImage }) => {
alt={desktopImage?.alternativeText || "image"}
width={1000}
height={1000}
className='img-fluid d-none d-md-block'
className='img-fluid d-none d-md-block mx-auto'
/>
)}
......@@ -30,7 +32,7 @@ const DigitalHowWeDoIt = ({ heading, desktopImage, mobileImage }) => {
alt={mobileImage?.alternativeText || "image"}
width={1000}
height={1000}
className='img-fluid d-block d-md-none'
className='img-fluid d-block d-md-none mx-auto'
/>
)}
</Container>
......
......@@ -2,11 +2,13 @@ import { cleanImage } from '@/layout/imageHandling'
import React from 'react'
import { Col, Container, Row } from 'react-bootstrap'
const WhatWeDoWhatDontDo = (heading,data) => {
console.log(heading,"WhatWeDoWhatDontDo")
const backgroundImageUrl = cleanImage(data?.BackgroundBanner?.url);
consolelog(backgroundImageUrl,"backgroundImageUrl")
const WhatWeDoWhatDontDo = (heading, data, image) => {
console.log(heading, "WhatWeDoWhatDontDo")
const image2 = heading?.image;
const data2 = heading?.data?.list;
// console.log(image2, "WhatWeDoWhatDontDo")
const backgroundImageUrl = cleanImage(image?.url);
console.log(backgroundImageUrl, "backgroundImageUrl")
return (
<div className='' style={{
backgroundImage: `url(${backgroundImageUrl})`,
......@@ -28,7 +30,7 @@ const WhatWeDoWhatDontDo = (heading,data) => {
{/* <p>{description}</p> */}
<div
className="content"
dangerouslySetInnerHTML={{ __html:data?.content }}
dangerouslySetInnerHTML={{ __html: data?.content }}
/>
</div>
{/* </Col> */}
......
......@@ -89,19 +89,22 @@ const EmpoweringFinanceConsultants = ({ Empoweringpage, conversionData }) => {
case "dynamic-zone.image":
return (
<>
<DigitalHowWeDoIt
heading={section?.Heading}
desktopImage={section?.DesktopImg}
mobileImage={section?.MobileImg}
/>
<DigitalHowWeDoIt
heading={section?.Heading}
desktopImage={section?.DesktopImg}
mobileImage={section?.MobileImg}
/>
</>
);
case "dynamic-zone.what-wedo-banner":
return (
<WhatWeDoWhatDontDo
heading={section?.Heading}
/>
<>
<WhatWeDoWhatDontDo
heading={section?.Heading}
data={section?.list}
image={section?.BackgroundBanner}
/>
</>
);
case "dynamic-zone.element-one":
return (
......
......@@ -12,13 +12,15 @@ import ConversionCode from "@/components/reuseables/ConversionCode/ConversionCod
import Content from "@/components/reuseables/services/Content";
import CallBackRequest from "@/components/reuseables/CallBackRequest";
import Card from "@/components/reuseables/services/Card";
import HowWeDoIt from "@/container/ClientServicing/CFO/HowWeDoIt";
import DigitalHowWeDoIt from "@/container/ClientServicing/DigitalTransformation/DigitalHowWeDoIt";
// method one content
const clientserviceapc = ({ apcpage ,conversionData }) => {
const clientserviceapc = ({ apcpage, conversionData }) => {
// console.log(apcpage ,"apcpage")
const banners = [
{
......@@ -55,20 +57,20 @@ const clientserviceapc = ({ apcpage ,conversionData }) => {
case "dynamic-zone.about":
return (
<LeftSideImage
title={section?.Title}
subtitle={section?.Subtitle}
image={section?.Image}
content={section?.Content}
title={section?.Title}
subtitle={section?.Subtitle}
image={section?.Image}
content={section?.Content}
/>
);
case "dynamic-zone.background":
return (
<RightSideImage
title={section?.Title}
subtitle={section?.Subtitle}
image={section?.Image}
content={section?.Content}
/>
title={section?.Title}
subtitle={section?.Subtitle}
image={section?.Image}
content={section?.Content}
/>
);
case "dynamic-zone.element-one":
return (
......@@ -84,15 +86,32 @@ const clientserviceapc = ({ apcpage ,conversionData }) => {
data={section?.ElementList}
/>
);
case "dynamic-zone.text":
case "dynamic-zone.variantcard":
return (
<>
<HowWeDoIt heading={section?.Heading}
data={section} />
</>
);
case "dynamic-zone.image":
return (
<>
<DigitalHowWeDoIt
heading={section?.Heading}
desktopImage={section?.DesktopImg}
mobileImage={section?.MobileImg}
/>
</>
);
case "dynamic-zone.text":
return (
<Content
title={section?.Heading}
subtitle={section?.Subtitle}
content={section?.Description}
title={section?.Heading}
subtitle={section?.Subtitle}
content={section?.Description}
/>
);
case "dynamic-zone.card":
case "dynamic-zone.card":
return (
<Card
heading={section?.Heading}
......@@ -109,7 +128,7 @@ const clientserviceapc = ({ apcpage ,conversionData }) => {
<div className="pt-100">
<Clientele partners={clientlogo} />
</div>
<CallBackRequest />
<CallBackRequest />
</>
);
};
......@@ -126,7 +145,9 @@ export async function getServerSideProps() {
"APCDetails.Image",
"APCDetails.Heading",
"APCDetails.ElementList.StepImg",
"APCDetails.carddetails",
"APCDetails.carddetails.Image",
"APCDetails.DesktopImg",
"APCDetails.MobileImg",
"Clientel.logos",
"seo",
"seo.metaImage",
......@@ -148,10 +169,10 @@ export async function getServerSideProps() {
const endpoint1 = `${process.env.NEXT_PUBLIC_BACKEND_API_URL}/api/apc?${query1String}`;
const endpoint2 = `${process.env.NEXT_PUBLIC_BACKEND_API_URL}/api/google-manger?${query12String}`;
console.log(`Final url: ${endpoint1}`);
const [response1, response2] = await Promise.all([
axios.get(endpoint1),
axios.get(endpoint2),
......@@ -162,7 +183,7 @@ export async function getServerSideProps() {
return {
props: { apcpage ,conversionData },
props: { apcpage, conversionData },
};
} catch (error) {
console.log("Error", error);
......
......@@ -12,10 +12,11 @@ import ConversionCode from "@/components/reuseables/ConversionCode/ConversionCod
import CallBackRequest from "@/components/reuseables/CallBackRequest";
import Card from "@/components/reuseables/services/Card";
import HowWeDoIt from "@/container/ClientServicing/CFO/HowWeDoIt";
import DigitalHowWeDoIt from "@/container/ClientServicing/DigitalTransformation/DigitalHowWeDoIt";
// method one content
const bookclosures = ({ bookclosurepage ,conversionData }) => {
console.log(bookclosurepage ,"bookclosurepage")
const bookclosures = ({ bookclosurepage, conversionData }) => {
console.log(bookclosurepage, "bookclosurepage")
const banners = [
{
imageSrc: cleanImage(bookclosurepage?.Banner?.Image?.url),
......@@ -52,20 +53,20 @@ const bookclosures = ({ bookclosurepage ,conversionData }) => {
case "dynamic-zone.about":
return (
<LeftSideImage
title={section?.Title}
subtitle={section?.Subtitle}
image={section?.Image}
content={section?.Content}
title={section?.Title}
subtitle={section?.Subtitle}
image={section?.Image}
content={section?.Content}
/>
);
case "dynamic-zone.background":
return (
<RightSideImage
title={section?.Title}
subtitle={section?.Subtitle}
image={section?.Image}
content={section?.Content}
/>
title={section?.Title}
subtitle={section?.Subtitle}
image={section?.Image}
content={section?.Content}
/>
);
case "dynamic-zone.element-one":
return (
......@@ -74,14 +75,23 @@ const bookclosures = ({ bookclosurepage ,conversionData }) => {
data={section?.ElementList}
/>
);
case "dynamic-zone.card":
case "dynamic-zone.card":
return (
<>
<HowWeDoIt heading={section?.Heading}
data={section} />
</>
);
case "dynamic-zone.image":
return (
<>
<DigitalHowWeDoIt
heading={section?.Heading}
desktopImage={section?.DesktopImg}
mobileImage={section?.MobileImg}
/>
</>
);
case "dynamic-zone.element-two":
return (
<MethodTwoSection
......@@ -90,8 +100,8 @@ const bookclosures = ({ bookclosurepage ,conversionData }) => {
/>
);
default:
return null;
}
......@@ -100,11 +110,11 @@ const bookclosures = ({ bookclosurepage ,conversionData }) => {
</div>
<div className="pb-100">
<Clientele
partners={clientlogo}
<Clientele
partners={clientlogo}
/>
</div>
<CallBackRequest />
<CallBackRequest />
</>
);
};
......@@ -121,6 +131,9 @@ export async function getServerSideProps() {
"BookClosureDetails.Image",
"BookClosureDetails.Heading",
"BookClosureDetails.ElementList.StepImg",
"BookClosureDetails.carddetails.Image",
"BookClosureDetails.DesktopImg",
"BookClosureDetails.MobileImg",
"Clientel.logos",
"seo",
"seo.metaImage",
......@@ -142,10 +155,10 @@ export async function getServerSideProps() {
const endpoint1 = `${process.env.NEXT_PUBLIC_BACKEND_API_URL}/api/book-closure-and-audit-page?${query1String}`;
const endpoint2 = `${process.env.NEXT_PUBLIC_BACKEND_API_URL}/api/google-manger?${query12String}`;
console.log(`Final url: ${endpoint1}`);
const [response1, response2] = await Promise.all([
axios.get(endpoint1),
axios.get(endpoint2),
......@@ -156,7 +169,7 @@ export async function getServerSideProps() {
return {
props: { bookclosurepage ,conversionData },
props: { bookclosurepage, conversionData },
};
} catch (error) {
console.log("Error", error);
......
......@@ -11,11 +11,12 @@ import Seo from "@/components/reuseables/Seo/Seo";
import ConversionCode from "@/components/reuseables/ConversionCode/ConversionCode";
import Card from "@/components/reuseables/services/Card";
import HowWeDoIt from "@/container/ClientServicing/CFO/HowWeDoIt";
import DigitalHowWeDoIt from "@/container/ClientServicing/DigitalTransformation/DigitalHowWeDoIt";
// method one content
const clientservicecfo = ({ cfopage, conversionData }) => {
console.log(cfopage ,"cfopage")
console.log(cfopage, "cfopage")
const banners = [
{
imageSrc: cleanImage(cfopage?.Banner?.Image?.url),
......@@ -92,7 +93,7 @@ const clientservicecfo = ({ cfopage, conversionData }) => {
image={section?.Image}
/>
);
case "dynamic-zone.element-two":
return (
<MethodTwoSection
......@@ -100,7 +101,16 @@ const clientservicecfo = ({ cfopage, conversionData }) => {
data={section?.ElementList}
/>
);
case "dynamic-zone.image":
return (
<>
<DigitalHowWeDoIt
heading={section?.Heading}
desktopImage={section?.DesktopImg}
mobileImage={section?.MobileImg}
/>
</>
);
case "dynamic-zone.rules-application":
return (
<Rules
......@@ -139,6 +149,8 @@ export async function getServerSideProps() {
"CfoDeatils.Heading",
"CfoDeatils.ElementList.StepImg",
"CfoDeatils.carddetails.Image",
"CfoDeatils.DesktopImg",
"CfoDeatils.MobileImg",
"Clientel.logos",
"seo",
"seo.metaImage",
......
......@@ -12,13 +12,14 @@ import ConversionCode from "@/components/reuseables/ConversionCode/ConversionCod
import CallBackRequest from "@/components/reuseables/CallBackRequest";
import Card from "@/components/reuseables/services/Card";
import HowWeDoIt from "@/container/ClientServicing/CFO/HowWeDoIt";
import DigitalHowWeDoIt from "@/container/ClientServicing/DigitalTransformation/DigitalHowWeDoIt";
// method one content
const clientservicefc = ({ fcpage ,conversionData }) => {
const clientservicefc = ({ fcpage, conversionData }) => {
// console.log(fcpage ,"fcpage")
const banners = [
{
......@@ -56,20 +57,20 @@ const clientservicefc = ({ fcpage ,conversionData }) => {
case "dynamic-zone.about":
return (
<LeftSideImage
title={section?.Title}
subtitle={section?.Subtitle}
image={section?.Image}
content={section?.Content}
title={section?.Title}
subtitle={section?.Subtitle}
image={section?.Image}
content={section?.Content}
/>
);
case "dynamic-zone.background":
return (
<RightSideImage
title={section?.Title}
subtitle={section?.Subtitle}
image={section?.Image}
content={section?.Content}
/>
title={section?.Title}
subtitle={section?.Subtitle}
image={section?.Image}
content={section?.Content}
/>
);
case "dynamic-zone.element-one":
return (
......@@ -85,14 +86,23 @@ const clientservicefc = ({ fcpage ,conversionData }) => {
data={section?.ElementList}
/>
);
case "dynamic-zone.card":
case "dynamic-zone.card":
return (
<>
<HowWeDoIt heading={section?.Heading}
data={section} />
</>
);
case "dynamic-zone.image":
return (
<>
<DigitalHowWeDoIt
heading={section?.Heading}
desktopImage={section?.DesktopImg}
mobileImage={section?.MobileImg}
/>
</>
);
case "dynamic-zone.variantcard":
return (
<Card
......@@ -111,7 +121,7 @@ const clientservicefc = ({ fcpage ,conversionData }) => {
<div className="pb-100" >
<Clientele partners={clientlogo} />
</div>
<CallBackRequest />
<CallBackRequest />
</>
);
};
......@@ -128,7 +138,9 @@ export async function getServerSideProps() {
"FCDeatils.Image",
"FCDeatils.Heading",
"FCDeatils.ElementList.StepImg",
"FCDeatils.carddetails",
"FCDeatils.carddetails.Image",
"FCDeatils.DesktopImg",
"FCDeatils.MobileImg",
"Clientel.logos",
"seo",
"seo.metaImage",
......@@ -150,10 +162,10 @@ export async function getServerSideProps() {
const endpoint1 = `${process.env.NEXT_PUBLIC_BACKEND_API_URL}/api/fc-page?${query1String}`;
const endpoint2 = `${process.env.NEXT_PUBLIC_BACKEND_API_URL}/api/google-manger?${query12String}`;
console.log(`Final url: ${endpoint1}`);
const [response1, response2] = await Promise.all([
axios.get(endpoint1),
axios.get(endpoint2),
......@@ -164,7 +176,7 @@ export async function getServerSideProps() {
return {
props: { fcpage ,conversionData },
props: { fcpage, conversionData },
};
} catch (error) {
console.log("Error", error);
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!