-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCustomer.js
72 lines (71 loc) · 3.19 KB
/
Customer.js
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
import React, {useRef} from 'react';
import "slick-carousel/slick/slick.css";
import "slick-carousel/slick/slick-theme.css";
import Slider from "react-slick";
import { FaChevronCircleLeft } from "react-icons/fa";
import { FaChevronCircleRight } from "react-icons/fa";
function Customer() {
let sliderRef = useRef(null);
const next = () => {
sliderRef.slickNext();
};
const previous = () => {
sliderRef.slickPrev();
};
const settings = {
dots: true,
infinite: true,
slidesToShow: 2,
slidesToScroll: 1,
autoplay: true,
speed: 2000,
autoplaySpeed: 5000,
cssEase: "linear"
};
return (
<div>
<h1 style={{fontFamily:"brush script mt"}}>What Says Our Customer</h1>
<div className="slider-container ">
<Slider ref={slider => {
sliderRef = slider;
}} {...settings}>
<div className='p-4'>
<div className='bg-dark text-white p-3'>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam</p>
<h5>Moana Michell</h5>
<p>Magna Aliqua</p>
</div>
<img src='./images/client1.jpg' alt='' className='img-fluid mx-auto d-block rounded-circle mt-3 border border-warning border-4' h-25 w-25 border float-start />
</div>
<div className='p-4' >
<div className='bg-dark text-white p-3'>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam</p>
<h5>Mike Hamell</h5>
<p>Magna Aliqua</p>
</div>
<img src='./images/client2.jpg' alt='' className='img-fluid mx-auto d-block rounded-circle mt-3 border border-warning border-4' h-25 w-25 border float-start />
</div>
<div className='p-4'>
<div className='bg-dark text-white p-3'>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam</p>
<h5>Moana Michell</h5>
<p>Magna Aliqua</p>
</div>
<img src='./images/client1.jpg' alt='' className='img-fluid mx-auto d-block rounded-circle mt-3 border border-warning border-4' h-25 w-25 border float-start />
</div>
<div className='p-4'>
<div className='bg-dark text-white p-3'>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam</p>
<h5>Mike Hamell</h5>
<p>Magna Aliqua</p>
</div>
<img src='./images/client2.jpg' alt='' className='img-fluid mx-auto d-block rounded-circle mt-3 border border-warning border-4' h-25 w-25 border float-start />
</div>
</Slider>
<FaChevronCircleLeft className='text-warning fs-2 me-2' onClick={previous}/>
<FaChevronCircleRight className='text-warning fs-2' onClick={next} />
</div>
</div>
)
}
export default Customer