WhatWeDoWhatDontDo.js
1.81 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
44
45
46
47
48
49
50
51
import { cleanImage } from "@/layout/imageHandling";
import Link from "next/link";
import React from "react";
import { Col, Container, Row } from "react-bootstrap";
const WhatWeDoWhatDontDo = (heading, image, cta) => {
const data = heading?.data;
const ctaBtn = heading?.cta;
// console.log(ctaBtn, "WhatWeDoWhatDontDo");
console.log(heading, "dat")
const backgroundImageUrl = cleanImage(heading?.image?.url);
console.log(backgroundImageUrl, "backgroundImageUrl");
return (
<div
className=""
style={{
backgroundImage: `url(${backgroundImageUrl})`,
backgroundSize: "cover",
backgroundPosition: "center",
backgroundRepeat: "no-repeat",
padding: "60px 0",
}}
>
<Container>
<Row className="align-items-center">
<Col md={12}>
<h2>{heading?.heading?.Title}</h2>
</Col>
<Col md={9}>
{data && data.map((item) => (
<div className="download-content">
<h2>{item?.Title}</h2>
</div>
))}
</Col>
<Col md={3} className="align-content-center text-center">
<div className="btn-1">
<Link href={ctaBtn?.URL || '#'} className="default-btn-three">
{ctaBtn?.text}
<i className="ri-arrow-right-line"></i>
</Link>
</div>
</Col>
</Row>
</Container>
</div>
);
};
export default WhatWeDoWhatDontDo;