VariantsCFO.js
1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import Heading from "@/components/reuseables/Heading";
import React from "react";
import { Col, Container, Row } from "react-bootstrap";
const VariantsCFO = ({ heading, data }) => {
    console.log("heading", heading)
    return (
        <section className="ptb-50">
            <Container>
                <Row className="justify-content-center">
                    <Col md={12}>
                        <Heading el="h2" heading={heading?.Title} className="text-center" />
                    </Col>
                    {data.map((item, index) => (
                        <Col
                            key={index}
                            md={4}
                            className="d-flex justify-content-center mb-4 mt-3"
                        >
                            <div className={`custom-card ${item.CardClass}`}>
                                {/* <h5 className="card-title">{item.Title}</h5> */}
                                <div className="card-image">
                                    <div className="card-badge">{item.Title}</div>{" "}
                                    {/* <-- Badge here */}
                                    <img src="/images/GCC.png" alt={item.Title} />
                                    <div className="overlay"></div>
                                    <div className="card-content">
                                        <div
                                            className="Description"
                                            dangerouslySetInnerHTML={{ __html: item.Description }}
                                        />
                                    </div>
                                </div>
                            </div>
                        </Col>
                    ))}
                </Row>
            </Container>
        </section>
    );
};
export default VariantsCFO;