CompanyOverview.js
1.3 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
import React from "react";
import { Col, Row } from "react-bootstrap";
import Heading from "@/components/Heading";
import Image from "next/image";
import { cleanImage } from "../services/imageHandling";
const CompanyOverview = ({ companyOverviewData }) => {
return (
<>
<section className="about-section about-info-section p-0">
<div className="container">
<Row className="my-5">
{companyOverviewData?.map((item, index) => (
<Col md={6} key={item.id || index}>
<div
className={`luxury-items ${
index % 2 !== 0 ? "option02" : ""
}`}
>
<Image
width={index % 2 !== 0 ? 570 : 806}
height={index % 2 !== 0 ? 629 : 560}
src={cleanImage(item?.image?.url)}
alt="Luxury"
/>
{/* {item?.title && <h1 />} */}
<div
className="info"
dangerouslySetInnerHTML={{
__html: item?.title,
}}
></div>
</div>
</Col>
))}
</Row>
</div>
</section>
</>
);
};
export default CompanyOverview;