Skip to content

Commit 85ea407

Browse files
committed
Add carousel
1 parent 3201827 commit 85ea407

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

src/components/ECarousel.js

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/**
2+
* $File: ECarousel.js $
3+
* $Date: 2022-01-26 15:46:20 $
4+
* $Revision: $
5+
* $Creator: Jen-Chieh Shen $
6+
* $Notice: See LICENSE.txt for modification and distribution information
7+
* Copyright © 2022 by Shen, Jen-Chieh $
8+
*/
9+
import React from 'react';
10+
import { Container, Carousel } from 'react-bootstrap';
11+
12+
import screenshot_1 from '../etc/screenshot/1.png';
13+
import screenshot_2 from '../etc/screenshot/2.png';
14+
import screenshot_3 from '../etc/screenshot/3.png';
15+
import screenshot_4 from '../etc/screenshot/4.png';
16+
import screenshot_5 from '../etc/screenshot/5.png';
17+
18+
class ECarousel extends React.Component {
19+
state = {};
20+
render () {
21+
return (
22+
<>
23+
<Container className="p-5">
24+
<Carousel>
25+
<Carousel.Item>
26+
<img className="d-block w-100" alt="Slide 1"
27+
src= { screenshot_1 } />
28+
</Carousel.Item>
29+
<Carousel.Item>
30+
<img className="d-block w-100" alt="Slide 2"
31+
src= { screenshot_2 } />
32+
</Carousel.Item>
33+
<Carousel.Item>
34+
<img className="d-block w-100" alt="Slide 3"
35+
src= { screenshot_3 } />
36+
</Carousel.Item>
37+
<Carousel.Item>
38+
<img className="d-block w-100" alt="Slide 4"
39+
src= { screenshot_4 } />
40+
</Carousel.Item>
41+
<Carousel.Item>
42+
<img className="d-block w-100" alt="Slide 5"
43+
src= { screenshot_5 } />
44+
</Carousel.Item>
45+
</Carousel>
46+
</Container>
47+
</>);
48+
}
49+
}
50+
51+
export default ECarousel;

0 commit comments

Comments
 (0)