Repository URL to install this package:
|
Version:
2.7.3 ▾
|
import { styled } from 'styleh-components'
import { Label } from 'atoms/Text'
import { Image, ImageElement } from 'atoms/Image'
import { VideoPlayer } from 'atoms/Video'
const StyledImage = styled.withComponent(Image)`
display: flex;
justify-content: center;
align-items: center;
margin-bottom: rem(20);
${ImageElement} {
width: auto;
height: auto;
max-width: 100%;
max-height: 100%;
}
`
const StyledLabel = styled.withComponent(Label)`
color: #fff;
text-shadow: 0px 1px 20px #000;
font-size: rem(24);
font-weight: lighter;
text-align: center;
&:first-letter {
text-transform: uppercase;
}
`
const StyledVideoPlayer = styled.withComponent(VideoPlayer)`
position: absolute;
z-index: 0;
top: 0;
right: 0;
bottom: 0;
left: 0;
margin: auto;
width: 100%;
height: auto;
object-fit: fill;
`
const StyledForegroundWrapper = styled.div`
position: relative;
z-index: 1;
display: flex;
flex-direction: column;
justify-content: center;
max-width: rem(500);
`
const StyledWrapper = styled.section`
position: relative;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
overflow: hidden;
padding: rem(40) 0;
background: #000;
`
export {
StyledImage,
StyledLabel,
StyledVideoPlayer,
StyledForegroundWrapper,
StyledWrapper,
}