Skip to content

Commit

Permalink
add video to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ankit committed Jul 26, 2020
1 parent 4a2740b commit 7b32d58
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
18 changes: 18 additions & 0 deletions docs/src/components/demo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import React from "react"

const Demo = () => {
return (
<div style={{ textAlign: "center" }}>
<iframe
width="100%"
height="600"
src="https://www.youtube.com/embed/lis7vG-D4bA?mute=1&loop=1&modestbranding=1&rel=0"
frameborder="0"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture; fullscreen"
allowfullscreen
></iframe>
</div>
)
}

export default Demo
7 changes: 6 additions & 1 deletion docs/src/pages/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from "react"

import Layout from "../components/layout"
import Demo from "../components/demo"
import BasicMode from "../components/basic-mode"
import Readability from "../components/readability"
import Code from "../components/code"
Expand Down Expand Up @@ -30,7 +31,7 @@ const IndexPage = () => (

<CarouselProvider
isPlaying
totalSlides={4}
totalSlides={5}
naturalSlideWidth={1200}
naturalSlideHeight={890}
>
Expand All @@ -50,6 +51,10 @@ const IndexPage = () => (
<Slide index={3}>
<Shortcuts />
</Slide>

<Slide index={4}>
<Demo />
</Slide>
</Slider>

<div style={{ textAlign: "center" }}>
Expand Down

0 comments on commit 7b32d58

Please sign in to comment.