Industries.js
2.98 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
import Image from "next/image";
import React from "react";
import { Swiper, SwiperSlide } from "swiper/react";
import { Autoplay, Pagination } from "swiper/modules";
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",
imageWidth: 800,
imageHeight: 800,
shapeSrc: "/images/shape/shape8.png",
shapeAlt: "image",
},
{
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",
imageWidth: 800,
imageHeight: 800,
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}
breakpoints={{
0: {
slidesPerView: 1,
},
576: {
slidesPerView: 1,
},
768: {
slidesPerView: 1,
},
992: {
slidesPerView: 1,
},
}}
autoplay={{
delay: 5000,
disableOnInteraction: true,
pauseOnMouseEnter: true,
}}
pagination={{ clickable: true }}
modules={[Autoplay]}
className="partner-slides"
>
{industriesData.map((industry, index) => (
<SwiperSlide className="single-partner-item" key={index}>
<div className="container">
<div className="row align-items-center">
<div className="col-lg-5 col-md-12">
<div className="free-quote-content">
<span className="sub-title">{industry.subtitle}</span>
<h2>{industry.title}</h2>
<p>{industry.description}</p>
</div>
</div>
<div className="col-lg-7 col-md-12">
<Image
src={industry.imageSrc}
alt={industry.imageAlt}
width={industry.imageWidth}
height={industry.imageHeight}
className="img-fluid rounded-5"
/>
</div>
</div>
</div>
<div className="shape3">
<img src={industry.shapeSrc} alt={industry.shapeAlt} />
</div>
</SwiperSlide>
))}
</Swiper>
</div>
</>
);
};
export default Industries;