File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change 1
1
import React from "react"
2
2
3
3
import Layout from "../components/layout"
4
+ import Demo from "../components/demo"
4
5
import BasicMode from "../components/basic-mode"
5
6
import Readability from "../components/readability"
6
7
import Code from "../components/code"
@@ -30,7 +31,7 @@ const IndexPage = () => (
30
31
31
32
< CarouselProvider
32
33
isPlaying
33
- totalSlides = { 4 }
34
+ totalSlides = { 5 }
34
35
naturalSlideWidth = { 1200 }
35
36
naturalSlideHeight = { 890 }
36
37
>
@@ -50,6 +51,10 @@ const IndexPage = () => (
50
51
< Slide index = { 3 } >
51
52
< Shortcuts />
52
53
</ Slide >
54
+
55
+ < Slide index = { 4 } >
56
+ < Demo />
57
+ </ Slide >
53
58
</ Slider >
54
59
55
60
< div style = { { textAlign : "center" } } >
You can’t perform that action at this time.
0 commit comments