Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Youtube in React: VideoPreview layout using CSS-Grid
@import '../../styles/shared.scss';
.video-preview {
display: grid;
grid: 118px auto / 210px;
}
.image-container {
position: relative;
grid-row: 1 / 2;
grid-column: 1 / 2;
/* Video duration label at bottom right */
.time-label {
/* ... */
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.