Skip to content

Commit 7b32d58

Browse files
committed
add video to docs
1 parent 4a2740b commit 7b32d58

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

docs/src/components/demo.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import React from "react"
2+
3+
const Demo = () => {
4+
return (
5+
<div style={{ textAlign: "center" }}>
6+
<iframe
7+
width="100%"
8+
height="600"
9+
src="https://www.youtube.com/embed/lis7vG-D4bA?mute=1&loop=1&modestbranding=1&rel=0"
10+
frameborder="0"
11+
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture; fullscreen"
12+
allowfullscreen
13+
></iframe>
14+
</div>
15+
)
16+
}
17+
18+
export default Demo

docs/src/pages/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React from "react"
22

33
import Layout from "../components/layout"
4+
import Demo from "../components/demo"
45
import BasicMode from "../components/basic-mode"
56
import Readability from "../components/readability"
67
import Code from "../components/code"
@@ -30,7 +31,7 @@ const IndexPage = () => (
3031

3132
<CarouselProvider
3233
isPlaying
33-
totalSlides={4}
34+
totalSlides={5}
3435
naturalSlideWidth={1200}
3536
naturalSlideHeight={890}
3637
>
@@ -50,6 +51,10 @@ const IndexPage = () => (
5051
<Slide index={3}>
5152
<Shortcuts />
5253
</Slide>
54+
55+
<Slide index={4}>
56+
<Demo />
57+
</Slide>
5358
</Slider>
5459

5560
<div style={{ textAlign: "center" }}>

0 commit comments

Comments
 (0)