Added video section

This commit is contained in:
Dom Masters
2018-05-07 08:25:41 +10:00
parent 135dc5e5f0
commit 3733b53ce4
12 changed files with 111 additions and 28 deletions

View File

@ -23,6 +23,7 @@
import React from 'react';
import Section from './../Section';
import Video from './../../video/Video';
class VideoSection extends React.Component {
constructor(props) {
@ -31,10 +32,11 @@ class VideoSection extends React.Component {
render() {
return (
<Section full={this.props.full}>
<video className="c-video-section">
</video>
<Section full={this.props.full} className="c-video-section">
<Video
className="c-video-section__video"
sources={ this.props.sources ? this.props.sources : this.props }
/>
{ this.props.children }
</Section>