Added video section
This commit is contained in:
@ -30,7 +30,11 @@ class Section extends React.Component {
|
||||
|
||||
render() {
|
||||
return (
|
||||
<section className={"c-section" + (this.props.full?" c-section--full":"") }>
|
||||
<section className={
|
||||
"c-section" +
|
||||
(this.props.full?" c-section--full":"") +
|
||||
(this.props.className ? " "+this.props.className : "")
|
||||
}>
|
||||
{ this.props.children }
|
||||
</section>
|
||||
);
|
||||
|
@ -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>
|
||||
|
Reference in New Issue
Block a user