File size: 4,821 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 |
import styled from 'styled-components/macro';
import { Link as ReactRouterLink } from 'react-router-dom';
export const Background = styled.div`
display: flex;
flex-direction: column;
background: url(${({ src }) =>
src ? `../images/misc/${src}.jpg` : '../images/misc/home-bg.jpg'})
top left / cover no-repeat;
@media (max-width: 1100px) {
${({ dontShowOnSmallViewPort }) => dontShowOnSmallViewPort && `background: none`};
}
`;
export const Group = styled.div`
display: flex;
align-items: center;
`;
export const Container = styled.div`
display: flex;
margin: 0 56px;
height: 30px;
width: 90%;
padding: 18px 0;
justify-content: space-between;
align-items: center;
position: fixed;
z-index: 1;
transition-timing-function: ease-in;
transition: all 0.4s;
a {
display: flex;
}
@media (max-width: 1000px) {
margin: 0 30px;
}
`;
export const Picture = styled.button`
background: url(${({ src }) => src});
background-size: contain;
border: 0;
width: 32px;
height: 32px;
cursor: pointer;
`;
export const Link = styled.p`
color: white;
text-decoration: none;
margin-right: 30px;
font-weight: ${({ active }) => (active === 'true' ? '700' : 'normal')};
cursor: pointer;
&: hover {
font-weight: bold;
}
&:last-of-type {
margin-right: 0;
}
`;
export const Dropdown = styled.div`
display: none;
background-color: black;
position: absolute;
padding: 10px;
width: 100px;
top: 32px;
right: 10px;
${Group}:last-of-type ${Link} {
cursor: pointer;
}
${Group} {
margin-bottom: 10px;
&:last-of-type {
margin-bottom: 0;
}
${Link}, ${Picture} {
cursor: default;
}
}
button {
margin-right: 10px;
}
p {
font-size: 12px;
margin-bottom: 0;
margin-top: 0;
}
`;
export const Search = styled.div`
dsiplay: flex;
align-items: center;
svg {
color: #111;
cursor: pointer;
}
@media (max-width: 700px) {
display: none;
}
`;
export const SearchIcon = styled.button`
cursor: pointer;
background-color: transparent;
border: 0;
padding-top: 20px;
img {
filter: brightness(0) invert(1);
width: 16px;
}
`;
export const PlayButton = styled.button`
box-shadow: 0 0.6vw 1vw -0.4vw rgba(0, 0, 0, 0.35);
background-color: #e6e6e6;
color: #000;
font-weight: bold;
border-width: 0;
padding: 10px 20px;
border-radius: 5px;
max-width: 130px;
font-size: 20px;
margin-top: 30px;
cursor: pointer;
transition: background-color 0.2s;
&: hover {
background-color: #ff1e1e;
color: white;
}
`;
export const SearchInput = styled.input`
background-color: #44444459;
color: white;
border: 1px solid white;
transition: width: 0.5s;
height: 30px;
font-size: 14px;
margin-left: ${({ active }) => (active === true ? '10px' : '0')};
padding: ${({ active }) => (active === true ? '0 10px' : '0')};
opacity: ${({ active }) => (active === true ? '1' : '0')};
width: ${({ active }) => (active === true ? '200px' : '0px')};
`;
export const Profile = styled.div`
display: flex;
align-items: center;
margin-left: 20px;
position: relative;
paddding-top: 20px;
button {
cursor: pointer;
}
&:hover > ${Dropdown} {
display: flex;
flex-direction: column;
}
`;
export const Logo = styled.img`
height: 32px;
width: 108px;
margin-right: 40px;
padding-top: 20px;
@media (min-width: 1449px) {
height: 45px;
width: 167px;
}
`;
export const ButtonLink = styled(ReactRouterLink)`
display: block;
background-color: #e50914;
width: 84px;
height: fit-content;
color: white;
border: 0;
font-size: 15px;
border-radius: 3px;
padding: 8px 17px;
cursor: pointer;
text-decoration: none;
box-sizing: border-box;
&:hover {
background-color: #f40612;
}
`;
export const Feature = styled(Container)`
padding: 150px 0 500px 0;
flex-direction: column;
align-items: normal;
width: 50%;
@media (max-width: 1100px) {
display: none;
}
`;
export const Text = styled.p`
color: white;
font-size: 22px;
line-height: normal;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.45);
margin: 0;
`;
export const FeatureCallOut = styled.h2`
color: white;
font-size: 50px;
line-height: normal;
font-weight: bold;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.45);
margin: 0;
margin-bottom: 20px;
`; |