stream/src/components/InfoLayout/styles.js

142 lines
2.7 KiB
JavaScript
Raw Normal View History

import styled from 'styled-components'
import { colours } from '../../assets/theme'
2021-03-11 20:24:44 +00:00
import Logo from '../Logo'
const heroWidth = 'calc(100vw - 600px - 4em)'
export const Wrapper = styled.div`
height: 100vh;
width: 100vw;
padding: 2em;
display: flex;
2021-10-11 17:15:09 +00:00
background-color: ${colours.midnight};
box-sizing: border-box;
position: fixed;
overflow-y: scroll;
p,
h1,
h2 {
2021-10-11 17:15:09 +00:00
color: ${colours.rose};
}
@media screen and (max-width: 1200px) {
padding: 1.5em;
}
@media screen and (max-width: 800px) {
padding: 1em;
}
`
export const Top = styled.div`
width: 50%;
`
const gradientColourLight = '#F8E5E2'
const gradientColourDark = colours.midnightDarker
const getGradient = (direction, lightDark) =>
2021-10-11 13:50:24 +00:00
`linear-gradient(to ${direction}, ${lightDark === 'dark' ? gradientColourDark : gradientColourLight
}ee 0%,${lightDark === 'dark' ? gradientColourDark : gradientColourLight
}00 100%);`
2021-03-11 20:24:44 +00:00
// prettier-ignore
export const Fade = styled.div`
width: 100%;
background-color: linear;
position: fixed;
2021-03-11 20:24:44 +00:00
padding: 2em 0 1em 2em;
top: 0;
left: 0;
background: ${getGradient('bottom')};
`
export const Hero = styled.div`
width: ${heroWidth};
height: 100vh;
2021-10-11 17:15:09 +00:00
background: url(${(props) => props.image});
background-size: cover;
background-position-x: right;
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,
h2 {
color: ${colours.offwhite};
}
h1:not(:last-of-type) {
2021-10-11 17:15:09 +00:00
font-size: 12vw;
margin-bottom: 0.5em;
@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;
}
`
2021-03-24 15:24:34 +00:00
export const LoaderWrapper = styled.div`
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
position: fixed;
top: 0;
width: 600px;
`
2021-03-11 20:24:44 +00:00
export const Content = styled.div`
/* margin-bottom: 3em; */
`
export const PositionedLogo = styled(Logo)``
export const FadeBottom = styled.div`
background: ${getGradient('top', 'dark')};
width: ${heroWidth};
position: fixed;
2021-03-11 20:24:44 +00:00
bottom: 0em;
padding-bottom: 0.5em;
right: 0;
/* left: 0; */
2021-03-11 20:24:44 +00:00
pointer-events: none;
min-height: 75px;
2021-03-11 20:24:44 +00:00
/* @media screen and (max-width: 800px) {
2021-03-11 20:24:44 +00:00
h1 {
font-size: 24px;
}
} */
`
export const TaglineContainer = styled.div`
width: 100%;
bottom: 0em;
padding-bottom: 0.5em;
right: 0;
display: flex;
align-items: center;
justify-content: space-between;
position: relative;
z-index: 2;
a {
pointer-events: all;
2021-03-11 20:24:44 +00:00
}
`