File tree Expand file tree Collapse file tree 5 files changed +101
-2
lines changed Expand file tree Collapse file tree 5 files changed +101
-2
lines changed Original file line number Diff line number Diff line change 1414 "aos" : " ^3.0.0-beta.6" ,
1515 "bootstrap" : " ^4.5.3" ,
1616 "cra-template" : " 1.0.3" ,
17+ "infinite-react-carousel" : " ^1.2.11" ,
1718 "react" : " ^16.13.1" ,
1819 "react-dom" : " ^16.13.1" ,
20+ "react-responsive-carousel" : " ^3.2.10" ,
1921 "react-scripts" : " 3.4.1" ,
2022 "redux" : " ^4.0.5" ,
2123 "styled-components" : " ^5.2.0"
Original file line number Diff line number Diff line change @@ -14,4 +14,4 @@ function App() {
1414 </ >
1515 ) ;
1616}
17- export default App ;
17+ export default App ;
Original file line number Diff line number Diff line change @@ -18,4 +18,4 @@ function HomePage() {
1818 ) ;
1919}
2020
21- export default HomePage ;
21+ export default HomePage ;
Original file line number Diff line number Diff line change 1+ import React from "react" ;
2+ import "react-responsive-carousel/lib/styles/carousel.min.css" ;
3+ import { Carousel } from 'react-responsive-carousel' ;
4+
5+ export default function CarouselComponent ( ) {
6+ return (
7+ < div class = "carousel-wrapper" >
8+
9+ < Carousel infiniteLoop width = "100%" useKeyboardArrows autoPlay >
10+ < div >
11+
12+ < img src = "https://images.pexels.com/photos/5255412/pexels-photo-5255412.jpeg?auto=compress& cs = tinysrgb & dpr = 3 & h = 640 & w = 426 " />
13+ </ div >
14+ < div >
15+ < img src = "https://images.pexels.com/photos/4857726/pexels-photo-4857726.jpeg?auto=compress& cs = tinysrgb & dpr = 1 & w = 500 " />
16+ </ div >
17+ < div >
18+ < img src = "https://images.pexels.com/photos/5324749/pexels-photo-5324749.jpeg?auto=compress& cs = tinysrgb & dpr = 1 & w = 500 " />
19+ </ div >
20+ < div >
21+ < img src = "https://images.pexels.com/photos/5463564/pexels-photo-5463564.jpeg?auto=compress& cs = tinysrgb & dpr = 1 & w = 500 " />
22+ </ div >
23+ < div >
24+ < img src = "https://images.pexels.com/photos/3951628/pexels-photo-3951628.jpeg?auto=compress& cs = tinysrgb & dpr = 1 & w = 500 " />
25+ </ div >
26+ < div >
27+ < img src = "https://images.pexels.com/photos/3746279/pexels-photo-3746279.jpeg?auto=compress& cs = tinysrgb & dpr = 1 & w = 500 " />
28+ </ div >
29+ < div >
30+ < img src = "https://images.pexels.com/photos/5022494/pexels-photo-5022494.jpeg?auto=compress& cs = tinysrgb & dpr = 1 & w = 500 " />
31+ </ div >
32+ </ Carousel >
33+ </ div >
34+ ) ;
35+ }
You can’t perform that action at this time.
0 commit comments