-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTestimonial.js
More file actions
140 lines (138 loc) · 5.09 KB
/
Testimonial.js
File metadata and controls
140 lines (138 loc) · 5.09 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
import { useEffect, useState } from "react";
import SwiperCore, {
Autoplay,
EffectFade,
Navigation,
Pagination,
} from "swiper";
import { Swiper, SwiperSlide } from "swiper/react";
import { fatchData } from "../utilits";
SwiperCore.use([Pagination, Navigation, EffectFade, Autoplay]);
const Testimonial = () => {
const [data, setData] = useState([]);
useEffect(async () => {
setData(await fatchData("/static/testimonial.json"));
}, []);
const props = {
slidesPerView: 1,
loop: true,
pagination: {
el: ".owl-dots",
clickable: true,
},
};
return (
<div className="dizme_tm_section">
<div className="dizme_tm_testimonials">
<div className="dizme_tm_main_title" data-align="center">
<span>Testimonials</span>
<h3>What Others Say</h3>
<p>
Lets hear the thoughts of my colleagues and co-workers
</p>
</div>
<div className="list_wrapper">
<div className="total">
<div className="in">
<Swiper {...props} className="">
{data &&
data.map((data, i) => (
<SwiperSlide key={i}>
<div className="icon">
<svg
xmlns="http://www.w3.org/2000/svg"
xmlnsXlink="http://www.w3.org/1999/xlink"
version="1.1"
id="Layer_1"
x="0px"
y="0px"
width="200px"
height="200px"
viewBox="796 698 200 200"
enableBackground="new 796 698 200 200"
xmlSpace="preserve"
className="svg replaced-svg"
>
<g>
<path d="M885.208,749.739v-40.948C836.019,708.791,796,748.81,796,798v89.209h89.208V798h-48.26 C836.948,771.39,858.598,749.739,885.208,749.739z" />
<path d="M996,749.739v-40.948c-49.19,0-89.209,40.019-89.209,89.209v89.209H996V798h-48.26 C947.74,771.39,969.39,749.739,996,749.739z" />
</g>
</svg>
</div>
<div className="text">
<p>{data.details}</p>
</div>
<div className="short">
<div className="image">
<div className="main" data-img-url={data.img} />
</div>
<div className="detail">
<h3>{data.name}</h3>
<span>{data.profession}</span>
</div>
</div>
</SwiperSlide>
))}
</Swiper>
<div className="owl-dots"></div>
</div>
<div className="left_details">
<div
className="det_image one wow fadeIn"
data-wow-duration="1s"
data-img-url="img/testimonials/2.jpg"
/>
<div
className="det_image two wow fadeIn"
data-wow-duration="1s"
data-wow-delay="0.2s"
data-img-url="img/testimonials/1.jpg"
/>
<div
className="det_image three wow fadeIn"
data-wow-duration="1s"
data-wow-delay="0.4s"
data-img-url="img/testimonials/3.jpg"
/>
<div
className="det_image four wow fadeIn"
data-wow-duration="1s"
data-wow-delay="0.6s"
data-img-url="img/testimonials/4.jpg"
/>
<span className="circle green animPulse" />
<span className="circle yellow animPulse" />
<span className="circle border animPulse" />
</div>
<div className="right_details">
<div
className="det_image one wow fadeIn"
data-wow-duration="1s"
data-img-url="img/testimonials/5.jpg"
/>
<div
className="det_image two wow fadeIn"
data-wow-duration="1s"
data-wow-delay="0.2s"
data-img-url="img/testimonials/6.jpg"
/>
<div
className="det_image three wow fadeIn"
data-wow-duration="1s"
data-wow-delay="0.4s"
data-img-url="img/testimonials/7.jpg"
/>
<span className="circle yellow animPulse" />
<span className="circle purple animPulse" />
<span className="circle border animPulse" />
</div>
</div>
</div>
<div className="brush_1 wow fadeInRight" data-wow-duration="1s">
<img src="img/brushes/testimonials/1.png" alt="image" />
</div>
</div>
</div>
);
};
export default Testimonial;