Last active
December 15, 2018 14:47
-
-
Save productioncoder/6dbeacc1d99051cf64de75c230e19770 to your computer and use it in GitHub Desktop.
VideoMetadata with Rating
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
return ( | |
<div className='video-metadata'> | |
<h3>Video title</h3> | |
<div className='video-stats'> | |
<span>{viewCount} views</span> | |
<div className='video-actions' > | |
<Rating likeCount={1000} dislikeCount={100} /> | |
<Button basic icon labelPosition='left'> | |
<Icon name='share'/> | |
Share | |
</Button> | |
<Button basic icon> | |
<Icon name='add circle' /> | |
</Button> | |
<Button basic icon> | |
<Icon name='ellipsis horizontal' /> | |
</Button> | |
</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
.video-metadata { | |
/* | |
... | |
Insert the -video-stats class below | |
*/ | |
.video-stats { | |
display: flex; | |
justify-content: space-between; | |
width: 100%; | |
align-items: center; | |
.video-actions { | |
display: flex; | |
align-items: center; | |
& > *:not(:last-child) { | |
margin-right: 8px; | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment