Last active
December 15, 2018 10:28
-
-
Save productioncoder/3ac67439938d4cb352a30117a85dc085 to your computer and use it in GitHub Desktop.
Youtube in React: wiring video metadata component up with Watch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import {Button, Divider, Icon} from "semantic-ui-react"; | |
import './VideoMetadata.scss'; | |
export function VideoMetadata(props) { | |
/* Todo */ | |
return (<div/>); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import './Watch.scss'; | |
import {RelatedVideos} from '../../components/RelatedVideos/RelatedVideos'; | |
import {Video} from '../../components/Video/Video'; | |
import {VideoMetadata} from '../../components/VideoMetadata/VideoMetadata'; | |
export class Watch extends React.Component { | |
render() { | |
return ( | |
<div className='watch-grid'> | |
<Video className='video' id='-7fuHEEmEjs'/> | |
<VideoMetadata className='metadata' viewCount={1000}/> | |
<div className='video-info-box' style={{width: '100%', height: '100px', background: '#BD10E0'}}>Video Info box</div> | |
<div className='comments' style={{width: '100%', height: '100px', background: '#9013FE'}}>comments</div> | |
<RelatedVideos className='related-videos'/> | |
</div> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment