Skip to content

Instantly share code, notes, and snippets.

@productioncoder
Last active December 3, 2018 18:34
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/a7c3e5c22143a81d04031982f1359147 to your computer and use it in GitHub Desktop.
Save productioncoder/a7c3e5c22143a81d04031982f1359147 to your computer and use it in GitHub Desktop.
Youtube VideoPreview component
import React from 'react';
import {Image} from 'semantic-ui-react';
import './VideoPreview.scss';
export class VideoPreview extends React.Component {
render() {
return (
<div className='video-preview'>
<div className='image-container'>
<Image src='http://via.placeholder.com/210x118'/>
<div className='time-label'>
<span>05:22</span>
</div>
</div>
</div>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment