Last active
December 9, 2018 13:50
-
-
Save productioncoder/144ab9abd216ae9cc8b30687c107ee00 to your computer and use it in GitHub Desktop.
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) { | |
const viewCount = Number(props.viewCount).toLocaleString() || ''; | |
return ( | |
<div className='video-metadata'> | |
<h3>Video title</h3> | |
<div className='video-stats'> | |
<span>{viewCount} views</span> | |
<div> | |
{/*TODO*/} | |
</div> | |
</div> | |
<Divider/> | |
</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 '../../styles/shared.scss'; | |
.video-metadata { | |
color: #707070; | |
font-size: 16px; | |
h3 { | |
font-weight: 400; | |
color: $text-color-dark; | |
} | |
.video-stats { | |
display: flex; | |
justify-content: space-between; | |
width: 100%; | |
align-items: center; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment