Skip to content

Instantly share code, notes, and snippets.

@productioncoder
Last active October 3, 2018 18:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save productioncoder/597ab40eb29944dcfeccec63a8c20281 to your computer and use it in GitHub Desktop.
Save productioncoder/597ab40eb29944dcfeccec63a8c20281 to your computer and use it in GitHub Desktop.
Youtube NextUpVideo
import React from 'react';
import './NextUpVideo.scss';
import {Checkbox, Divider} from "semantic-ui-react";
import {VideoPreview} from '../../VideoPreview/VideoPreview';
export function NextUpVideo(props) {
return (
<React.Fragment>
<div className='next-up-container'>
<h4>Up next</h4>
<div className='up-next-toggle'>
<span>Autoplay</span>
<Checkbox toggle defaultChecked/>
</div>
</div>
<VideoPreview horizontal={true}/>
<Divider/>
</React.Fragment>
);
}
.next-up-container {
display: flex;
align-items: flex-start;
justify-content: space-between;
.up-next-toggle {
display: flex;
align-items: center;
span {
margin-right: 10px;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment