Skip to content

Instantly share code, notes, and snippets.

@productioncoder
Last active December 15, 2018 14:47
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/6dbeacc1d99051cf64de75c230e19770 to your computer and use it in GitHub Desktop.
Save productioncoder/6dbeacc1d99051cf64de75c230e19770 to your computer and use it in GitHub Desktop.
VideoMetadata with Rating
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>
);
.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