-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improve private playlist and player
this closes #276
- Loading branch information
1 parent
f18363f
commit 8d3e2b8
Showing
2 changed files
with
105 additions
and
69 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,66 @@ | ||
import styled from 'styled-components' | ||
import Vimeo from '@u-wave/react-vimeo' | ||
import React from 'react' | ||
|
||
export const StyledListImageWrapper = styled.div` | ||
grid-row: 1/3; | ||
grid-column: 1/2; | ||
export const StyledListVideoIframe = styled(Vimeo)` | ||
& > iframe { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
} | ||
` | ||
|
||
export const StyledListLevelRequired = styled.div` | ||
grid-row: 3/4; | ||
grid-column: 1/3; | ||
export const StyledPlayWrapper = styled.div` | ||
padding-top: 56.25%; | ||
position: relative; | ||
background-color: #c00; | ||
color: white; | ||
padding: 1rem 2rem; | ||
border-radius: 0.5rem; | ||
` | ||
|
||
export const StyledListVideo = styled.div` | ||
grid-row: 3/4; | ||
export const StyledListDescription = styled.div` | ||
grid-column: 1/3; | ||
position: relative; | ||
padding-top: 56.25%; | ||
width: 100%; | ||
margin-bottom: 1rem; | ||
` | ||
export const StyledListImageWrapper = styled.div` | ||
grid-row: 1/3; | ||
max-width: 100%; | ||
cursor: pointer; | ||
export const StyledListVideoIframe = styled.iframe` | ||
img { | ||
max-width: 100%; | ||
} | ||
` | ||
export const StyledListWrapper = styled.div` | ||
position: relative; | ||
` | ||
export const StyledList = styled.div` | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
` | ||
|
||
export const StyledListDescription = styled.div` | ||
grid-row: 2/3; | ||
grid-column: 2/3; | ||
bottom: 0; | ||
right: 0; | ||
overflow-y: auto; | ||
` | ||
|
||
export const StyledListRow = styled.div` | ||
display: grid; | ||
grid-template-columns: 1fr 2fr; | ||
grid-gap: 0.5rem; | ||
grid-template-columns: 208px 1fr 208px; | ||
grid-template-rows: 60px auto auto; | ||
margin-bottom: 2.5rem; | ||
` | ||
|
||
img { | ||
max-width: 100%; | ||
} | ||
export const StyledListTitle = styled.h3` | ||
margin: 0; | ||
` | ||
|
||
export const StyledListDuration = styled.div` | ||
margin: 0; | ||
font-size:0.9rem; | ||
text-align: right; | ||
padding-right: 0.5rem; | ||
` | ||
|
||
export const StyledPlayerAndList = styled.div` | ||
display: grid; | ||
grid-gap: 1rem; | ||
grid-template-columns: 2fr 1fr; | ||
margin-bottom: 2.5rem; | ||
` |