stream/src/pages/LoaderLayout/styles.js

153 lines
3.0 KiB
JavaScript
Raw Normal View History

2021-10-11 13:50:24 +00:00
import styled from 'styled-components'
import { colours } from '../../assets/theme'
import bg from '../../assets/img/hero/1lg.png'
// import { H1 } from '../../components/Text'
2021-10-15 13:37:54 +00:00
import { ImageLogo as Logo } from '../../components/Logo'
2021-10-11 13:50:24 +00:00
2021-10-15 13:37:54 +00:00
const heroWidth = 'calc(100vw - 600px - 4em)'
2021-10-11 13:50:24 +00:00
export const Wrapper = styled.div`
height: 100vh;
width: 100vw;
2021-10-15 13:37:54 +00:00
/* padding: 2em; */
2021-10-11 13:50:24 +00:00
display: flex;
background-color: ${colours.midnightDarker};
box-sizing: border-box;
position: fixed;
overflow-y: scroll;
p,
h1,
h2 {
color: ${colours.midnightDarker};
}
@media screen and (max-width: 1200px) {
2021-10-15 13:37:54 +00:00
/* padding: 1.5em; */
2021-10-11 13:50:24 +00:00
}
@media screen and (max-width: 800px) {
2021-10-15 13:37:54 +00:00
/* padding: 1em; */
2021-10-11 13:50:24 +00:00
}
`
export const Top = styled.div`
width: 50%;
`
const gradientColourLight = '#F8E5E2'
const gradientColourDark = colours.midnightDarker
const getGradient = (direction, lightDark) =>
`linear-gradient(to ${direction}, ${lightDark === 'dark' ? gradientColourDark : gradientColourLight
}ee 0%,${lightDark === 'dark' ? gradientColourDark : gradientColourLight
}00 100%);`
// prettier-ignore
export const Fade = styled.div`
width: 100%;
background-color: linear;
position: fixed;
padding: 2em 0 1em 2em;
top: 0;
left: 0;
background: ${getGradient('bottom')};
`
export const Hero = styled.div`
width: ${heroWidth};
height: 100vh;
background: url(${bg});
background-size: cover;
background-position-x: right;
background-position-y: 60%;
position: fixed;
padding: 0;
right: 0;
top: 0;
padding: 2em 2em 8px 2em;
box-sizing: border-box;
display: flex;
flex-direction: column;
justify-content: space-between;
pointer-events: none;
/*
h1:not(:last-of-type) {
font-size: 30vh;
@media screen and (max-height: 600px) {
font-size: 20vh;
}
@media screen and (max-width: 1200px) {
font-size: 20vh;
}
} */
@media screen and (max-width: 1000px) {
display: none;
}
`
export const LoaderWrapper = styled.div`
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
position: fixed;
top: 0;
2021-10-15 13:37:54 +00:00
width: calc(600px + 4em);
2021-10-11 13:50:24 +00:00
@media screen and (max-width: 1000px) {
width: 100vw;
}
`
export const Content = styled.div`
/* margin-bottom: 3em; */
`
export const PositionedLogo = styled(Logo)`
2021-10-15 13:37:54 +00:00
/* position: fixed; */
max-height: 80px;
mix-blend-mode: exclusion;
padding: 1em;
2021-10-11 13:50:24 +00:00
`
export const FadeBottom = styled.div`
background: ${getGradient('top', 'dark')};
width: ${heroWidth};
position: fixed;
bottom: 0;
padding-bottom: 0.5em;
right: 0;
/* left: 0; */
pointer-events: none;
min-height: 75px;
`
export const TaglineContainer = styled.div`
width: 100%;
bottom: 0em;
padding-bottom: 0;
right: 1em;
display: flex;
justify-content: flex-end;
flex-direction: column;
align-items: flex-end;
position: fixed;
z-index: 2;
h1 {
margin-bottom: 0.2em;
}
@media screen and (max-width: 1000px) {
h1 {
color: ${colours.rose};
font-size: 24px;
}
}
`