HowWeDoIt.js 3.64 KB
import Heading from '@/components/reuseables/Heading'
import { cleanImage } from '@/layout/imageHandling'
import Image from 'next/image'
import React from 'react'
import { Col, Container, Row } from 'react-bootstrap'

const HowWeDoIt = ({ data, heading }) => {

    console.log(data, 'datadata');

    // const data = [
    //     {
    //         subTitle: "Step 1",
    //         title: "Step 1 Discovery",
    //         desc: "Assess the business model, industry context, and internal processes",
    //         image: "/images/client-service/cfo.webp",
    //     },
    //     {
    //         subTitle: "Step 2",
    //         title: "Step 1 Discovery",
    //         desc: "Assess the business model, industry context, and internal processes",
    //         image: "/images/client-service/Client_Servicing-CFO.webp",
    //     },
    //     {
    //         subTitle: "Step 1",
    //         title: "Step 1 Discovery",
    //         desc: "Assess the business model, industry context, and internal processes",
    //         image: "/images/client-service/cfo.webp",
    //     },
    //     {
    //         subTitle: "Step 1",
    //         title: "Step 1 Discovery",
    //         desc: "Assess the business model, industry context, and internal processes",
    //         image: "/images/client-service/cfo.webp",
    //     },
    //     {
    //         subTitle: "Step 1",
    //         title: "Step 1 Discovery",
    //         desc: "Assess the business model, industry context, and internal processes",
    //         image: "/images/client-service/cfo.webp",
    //     },
    //     {
    //         subTitle: "Step 1",
    //         title: "Step 1 Discovery",
    //         desc: "Assess the business model, industry context, and internal processes Assess the business model, industry context, and internal processes Assess the business model, industry context, and internal processes",
    //         image: "/images/client-service/cfo.webp",
    //     },
    // ]

    return (
        <section className="HowWeDoIt-section ptb-100">
            <Container>
                <div className="section-title">
                    <span className="sub-title">{""}</span>
                    <Heading el="h2" heading={heading?.Title} />
                </div>
                <p className=" text-center text-black mb-4 mb-lg-5">{heading?.Description}</p>
                <Row className='row-gap-4 h-auto justify-content-center'>
                    {
                        data?.carddetails && data?.carddetails.map((item, index) => (
                            <Col className='' lg={4} md={6} key={index}>
                                <div className='HowWeDoIt_card h-100'>
                                    <h2>{item?.Title}</h2>
                                    <Image
                                        aria-hidden="true"
                                        alt={"image"}
                                        src={cleanImage(item?.Image?.url)}
                                        width={1000}
                                        height={1000}
                                        className="img-fluid"
                                    />
                                    <div className='HowWeDoIt_card_content'>
                                        <h4>{item?.Title}</h4>
                                        <div dangerouslySetInnerHTML={{ __html: item?.Description }}></div>
                                    </div>
                                </div>
                            </Col>
                        ))
                    }
                </Row>
            </Container>
        </section>
    )
}

export default HowWeDoIt