Skip to content

Commit

Permalink
youtube-video (#20)
Browse files Browse the repository at this point in the history
* youtube-video

* remove auto-pause
  • Loading branch information
stefankraus-wf authored Mar 7, 2020
1 parent 8d95cef commit 35f3e0c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"react": "^16.8.4",
"react-dom": "^16.8.4",
"react-helmet": "^5.2.0",
"react-youtube": "^7.9.0",
"redux": "^3.7.2",
"typeface-roboto-condensed": "0.0.75",
"typescript": "^3.8.3",
Expand Down
12 changes: 12 additions & 0 deletions src/templates/index-page.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
import React from 'react'
import YouTube from 'react-youtube'
import PropTypes from 'prop-types'
import { Link, graphql } from 'gatsby'

import Layout from '../components/Layout'
import Features from '../components/Features'
import BlogRoll from '../components/BlogRoll'

const opts = {
height: '480',
width: '',
playerVars: {autoplay: 1}
};

export const IndexPageTemplate = ({
image,
title,
Expand Down Expand Up @@ -77,6 +84,11 @@ export const IndexPageTemplate = ({
<div className="tile">
<h3 className="subtitle">{mainpitch.description}</h3>
</div>
<YouTube
className="column is-12"
videoId="_CFDuLiHXuc"
opts={opts}
/>
</div>
<div className="columns">
<div className="column is-12">
Expand Down

0 comments on commit 35f3e0c

Please sign in to comment.