Industries.js
4.19 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
import Image from "next/image";
import React from "react";
import { Swiper, SwiperSlide } from "swiper/react";
import { Autoplay, Pagination } from "swiper/modules";
import { Col, Container, Row } from "react-bootstrap";
import Heading from "./Heading";
const industriesData = [
{
title: "Education",
subtitle: "Industries",
description:
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation.",
imageSrc: "/images/home/industry.jpg",
imageAlt: "image",
shapeSrc: "/images/shape/shape8.png",
shapeAlt: "image",
},
{
title: "Life Sciences",
subtitle: "Industries",
description:
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation.",
imageSrc: "/images/home/industry.jpg",
imageAlt: "image",
shapeSrc: "/images/shape/shape8.png",
shapeAlt: "image",
},
{
title: "Technology",
subtitle: "Industries",
description:
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation.",
imageSrc: "/images/home/industry.jpg",
imageAlt: "image",
shapeSrc: "/images/shape/shape8.png",
shapeAlt: "image",
},
{
title: "Hospitality",
subtitle: "Industries",
description:
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation.",
imageSrc: "/images/home/industry.jpg",
imageAlt: "image",
shapeSrc: "/images/shape/shape8.png",
shapeAlt: "image",
},
{
title: "Real Estate",
subtitle: "Industries",
description:
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation.",
imageSrc: "/images/home/industry.jpg",
imageAlt: "image",
shapeSrc: "/images/shape/shape8.png",
shapeAlt: "image",
},
// Add more objects here if you have more slides
];
const Industries = () => {
return (
<>
<div className="free-quote-area bg-color">
<Swiper
spaceBetween={30}
pagination={{ clickable: true }}
breakpoints={{
0: {
slidesPerView: 1,
},
576: {
slidesPerView: 1,
},
768: {
slidesPerView: 1,
},
992: {
slidesPerView: 1,
},
}}
autoplay={{
delay: 5000,
disableOnInteraction: true,
pauseOnMouseEnter: true,
}}
modules={[Pagination, Autoplay]}
className="industry-slides"
>
{industriesData.map((industry, index) => (
<SwiperSlide className="single-partner-item" key={index}>
<Container>
<Row className="align-items-center">
<Col lg={5} md={12}>
<div className="free-quote-content">
<span className="sub-title">{industry.subtitle}</span>
<Heading
el="h2"
heading={industry.title}
className="industry-title"
/>
<p>{industry.description}</p>
</div>
</Col>
<Col lg={7} md={12}>
<Image
src={industry.imageSrc}
alt={industry.imageAlt}
layout="fill"
className="img-fluid rounded-5 image"
/>
</Col>
</Row>
</Container>
<div className="shape3">
<img src={industry.shapeSrc} alt={industry.shapeAlt} />
</div>
</SwiperSlide>
))}
</Swiper>
</div>
</>
);
};
export default Industries;