OurService.js
4.93 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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
import React from "react";
import Link from "next/link";
import { Swiper, SwiperSlide } from "swiper/react";
import { Pagination, Autoplay } from "swiper/modules";
import Heading from "@/components/reuseables/Heading";
import { Container } from "react-bootstrap";
import Image from "next/image";
import { motion } from "framer-motion";
import { slideFromLeft } from "@/components/reuseables/variants";
const services = [
{
id: 1,
image: "/images/services/services1.jpg",
altText: "Virtual FC & CFO Services",
title: "Virtual FC & CFO Services",
description:
"Lorem ipsum dolor sit amet, conseteturants atal into sadipscing elitr, sed diam nonumy eirmod nsa ada tempor invidunt ut",
linkText: "Read More",
detailsUrl: "/services/details",
},
{
id: 2,
image: "/images/services/services2.jpg",
altText: "Transaction Advisory",
title: "Transaction Advisory",
description:
"Lorem ipsum dolor sit amet, conseteturants atal into sadipscing elitr, sed diam nonumy eirmod nsa ada tempor invidunt ut",
linkText: "Read More",
detailsUrl: "/services/details",
},
{
id: 3,
image: "/images/services/services4.jpg",
altText: "Risk Advisory",
title: "Risk Advisory",
description:
"Lorem ipsum dolor sit amet, conseteturants atal into sadipscing elitr, sed diam nonumy eirmod nsa ada tempor invidunt ut",
linkText: "Read More",
detailsUrl: "/services/details",
},
{
id: 4,
image: "/images/services/services4.jpg",
altText: "Business Advisory",
title: "Business Advisory",
description:
"Lorem ipsum dolor sit amet, conseteturants atal into sadipscing elitr, sed diam nonumy eirmod nsa ada tempor invidunt ut",
linkText: "Read More",
detailsUrl: "/services/details",
},
{
id: 6,
image: "/images/services/services6.jpg",
altText: "Service Image",
title: "Marketing Consultancy",
description:
"Lorem ipsum dolor sit amet, conseteturants atal into sadipscing elitr, sed diam nonumy eirmod nsa ada tempor invidunt ut",
linkText: "Read More",
detailsUrl: "/services/details",
},
{
id: 7,
image: "/images/services/services7.jpg",
altText: "Service Image",
title: "Startup Consultancy",
description:
"Lorem ipsum dolor sit amet, conseteturants atal into sadipscing elitr, sed diam nonumy eirmod nsa ada tempor invidunt ut",
linkText: "Read More",
detailsUrl: "/services/details",
},
];
const OurService = () => {
return (
<>
<div className="services-area pt-100 pb-70">
<Container>
<div className="section-title">
<span className="sub-title">SERVICES</span>
<Heading el="h2" heading="Our Dedicated Services" className="h2" />
<p>
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam
nonumy eirmod tempor invidunt ut labore et dolore.
</p>
</div>
<Swiper
spaceBetween={30}
pagination={{
clickable: true,
}}
breakpoints={{
0: {
slidesPerView: 1,
},
768: {
slidesPerView: 2,
},
1200: {
slidesPerView: 3,
},
}}
autoplay={{
delay: 5000,
disableOnInteraction: true,
pauseOnMouseEnter: true,
}}
modules={[Pagination, Autoplay]}
className="services-slides"
>
{services &&
services.map((service) => (
<SwiperSlide className="single-services-box" key={service.id}>
<motion.div
variants={slideFromLeft(0.5)}
initial={"hidden"}
whileInView={"show"}
viewport={{ once: false, amount: 0.4 }}
>
<div className="image">
<Link href={service.detailsUrl}>
<Image
src={service.image}
alt={service.altText}
layout="fill"
className="img-fluid image"
/>
</Link>
</div>
<div className="content">
<h3>
<Link href={service.detailsUrl}>{service.title}</Link>
</h3>
<p>{service.description}</p>
<Link href={service.detailsUrl} className="default-btn">
{service.linkText}{" "}
<i className="ri-arrow-right-line"></i>
</Link>
</div>
</motion.div>
</SwiperSlide>
))}
</Swiper>
</Container>
</div>
</>
);
};
export default OurService;