diff options
Diffstat (limited to '')
| -rw-r--r-- | frontend/src/components/pages/summary.css | 322 |
1 files changed, 322 insertions, 0 deletions
diff --git a/frontend/src/components/pages/summary.css b/frontend/src/components/pages/summary.css new file mode 100644 index 0000000..e97dc0f --- /dev/null +++ b/frontend/src/components/pages/summary.css | |||
| @@ -0,0 +1,322 @@ | |||
| 1 | |||
| 2 | #background-image{ | ||
| 3 | z-index: -1; | ||
| 4 | position: absolute; | ||
| 5 | opacity: 10%; | ||
| 6 | height: 50%; | ||
| 7 | width: 100% | ||
| 8 | } | ||
| 9 | #background-image>img{ | ||
| 10 | object-fit: cover; | ||
| 11 | width: 100%; | ||
| 12 | height: 100%; | ||
| 13 | } | ||
| 14 | #background-image::before{ | ||
| 15 | content: ""; | ||
| 16 | position: absolute; | ||
| 17 | width: 100%; | ||
| 18 | height: 100%; | ||
| 19 | background: linear-gradient(to top, #161723, #0000); | ||
| 20 | } | ||
| 21 | |||
| 22 | /* Section 1: map name + difficulty*/ | ||
| 23 | |||
| 24 | #section1{ | ||
| 25 | margin: 20px 0 0 0; | ||
| 26 | width: 100%; | ||
| 27 | |||
| 28 | display:grid; | ||
| 29 | grid-template-columns: auto 470px; | ||
| 30 | cursor: default; | ||
| 31 | } | ||
| 32 | |||
| 33 | .nav-button{ | ||
| 34 | height: 40px; | ||
| 35 | background-color: #2b2e46; | ||
| 36 | |||
| 37 | color: #cdcfdf;; | ||
| 38 | font-size: 18px; | ||
| 39 | font-family: inherit; | ||
| 40 | border: none; | ||
| 41 | transition: background-color .1s; | ||
| 42 | } | ||
| 43 | #section1>div>.nav-button:nth-child(1){border-radius: 20px 0 0 20px;} | ||
| 44 | #section1>div>.nav-button:nth-child(2){border-radius: 0 20px 20px 0;margin-left: 2px;} | ||
| 45 | .nav-button>span{padding: 0 8px 0 8px;} | ||
| 46 | .nav-button:hover{background-color: #202232;cursor: pointer;} | ||
| 47 | |||
| 48 | |||
| 49 | |||
| 50 | /* Section 2: navbar */ | ||
| 51 | |||
| 52 | #section2{ | ||
| 53 | margin: 40px 0 0 0; | ||
| 54 | width: 100%; | ||
| 55 | |||
| 56 | display: grid; | ||
| 57 | grid-template-columns: auto auto auto; | ||
| 58 | } | ||
| 59 | |||
| 60 | #section2>.nav-button{ | ||
| 61 | height: 50px; | ||
| 62 | font-size: 22px; | ||
| 63 | display: flex; | ||
| 64 | justify-content: center; | ||
| 65 | place-items: center; | ||
| 66 | |||
| 67 | } | ||
| 68 | #section2>.nav-button>img{scale: 1.2;} | ||
| 69 | #section2>.nav-button:nth-child(1){border-radius: 30px 0 0 30px;} | ||
| 70 | #section2>.nav-button:nth-child(2){margin-left:2px;} | ||
| 71 | #section2>.nav-button:nth-child(3){border-radius: 0 30px 30px 0;margin-left: 2px;} | ||
| 72 | |||
| 73 | |||
| 74 | /* Section 3: category + history */ | ||
| 75 | |||
| 76 | #section3{ | ||
| 77 | margin: 40px 0 0 0; | ||
| 78 | height: auto; | ||
| 79 | |||
| 80 | display: grid; | ||
| 81 | grid-template-columns: 50% 50%; | ||
| 82 | gap: 20px; | ||
| 83 | |||
| 84 | } | ||
| 85 | |||
| 86 | #category{ | ||
| 87 | display: grid; | ||
| 88 | height: 350px; | ||
| 89 | border-radius: 30px; | ||
| 90 | overflow: hidden; | ||
| 91 | |||
| 92 | } | ||
| 93 | #category>p{ | ||
| 94 | margin-bottom: 20px; | ||
| 95 | display: inline; | ||
| 96 | text-align: center; | ||
| 97 | font-size: 50px; | ||
| 98 | cursor: default; | ||
| 99 | color: white; | ||
| 100 | } | ||
| 101 | |||
| 102 | p>span.portal-count{font-weight: bold;font-size: 100px;vertical-align: -15%;} | ||
| 103 | |||
| 104 | #category-image{ | ||
| 105 | transform: translate(-20%, -15%); | ||
| 106 | z-index: -1; | ||
| 107 | border-radius: 20px; | ||
| 108 | overflow: hidden; | ||
| 109 | width: 125%; | ||
| 110 | margin: 22px; | ||
| 111 | filter: blur(4px) contrast(80%) brightness(80%); | ||
| 112 | } | ||
| 113 | |||
| 114 | #category>span{ | ||
| 115 | margin-top: 70px; | ||
| 116 | background-color: #202232; | ||
| 117 | |||
| 118 | display: grid; | ||
| 119 | grid-template-columns: auto auto auto auto; | ||
| 120 | gap: 2px; | ||
| 121 | } | ||
| 122 | #category>span>button{ | ||
| 123 | font-family: BarlowSemiCondensed-Regular; | ||
| 124 | font-size: 18px; | ||
| 125 | border: none; | ||
| 126 | height: 40px; | ||
| 127 | color: #cdcfdf; | ||
| 128 | background-color: #2b2e46; | ||
| 129 | |||
| 130 | cursor: pointer; | ||
| 131 | transition: background-color .1s; | ||
| 132 | } | ||
| 133 | #category>span>button:hover{background-color: #202232;} | ||
| 134 | |||
| 135 | |||
| 136 | |||
| 137 | #history>div>hr{border: 1px solid #2b2e46;margin: 4px 20px 4px 20px;} | ||
| 138 | #history{ | ||
| 139 | height: 350px; | ||
| 140 | min-width: 560px; | ||
| 141 | background-color: #202232; | ||
| 142 | border-radius: 30px; | ||
| 143 | |||
| 144 | } | ||
| 145 | |||
| 146 | #history>div{height: 290px;} | ||
| 147 | #records{overflow-y: auto; height: 255px;} | ||
| 148 | .record-top, .record{ | ||
| 149 | font-size: 18px; | ||
| 150 | |||
| 151 | display: grid; | ||
| 152 | text-align: center; | ||
| 153 | grid-template-columns: calc(100%/3) calc(100%/3) calc(100%/3); | ||
| 154 | } | ||
| 155 | .record-top{font-weight: bold;margin: 20px 20px 0 20px;} | ||
| 156 | .record{ | ||
| 157 | margin: 10px 20px 0 20px; | ||
| 158 | height: 44px; width: calc(100% - 40px); | ||
| 159 | |||
| 160 | |||
| 161 | background-color: #2b2e46; | ||
| 162 | color: inherit; | ||
| 163 | border-radius: 40px; | ||
| 164 | place-items: center; | ||
| 165 | |||
| 166 | border: 0; | ||
| 167 | cursor: pointer; | ||
| 168 | transition: background-color .1s; | ||
| 169 | } | ||
| 170 | .record:hover{background-color: #161723;} | ||
| 171 | |||
| 172 | #history>span{ | ||
| 173 | display: grid; | ||
| 174 | grid-template-columns: 50% 50%; | ||
| 175 | } | ||
| 176 | #history>span>button{ | ||
| 177 | |||
| 178 | width: 100%; height: 40px; | ||
| 179 | font-family: BarlowSemiCondensed-Regular; | ||
| 180 | font-size: 18px; | ||
| 181 | border: none; | ||
| 182 | |||
| 183 | color: #cdcfdf; | ||
| 184 | background-color: #2b2e46; | ||
| 185 | |||
| 186 | cursor: pointer; | ||
| 187 | transition: background-color .1s; | ||
| 188 | } | ||
| 189 | #history>span>button:hover{background-color: #202232 !important;} | ||
| 190 | #history>span>button:nth-child(1){border-radius: 0 0 0 30px;} | ||
| 191 | #history>span>button:nth-child(2){border-radius: 0 0 30px 0;} | ||
| 192 | |||
| 193 | /* Section 4: Difficulty + count */ | ||
| 194 | |||
| 195 | #section4{ | ||
| 196 | display: grid; | ||
| 197 | grid-template-columns: 50% 50%; | ||
| 198 | margin: 40px 0 20px 0; | ||
| 199 | width: 100%; | ||
| 200 | gap: 8px; | ||
| 201 | } | ||
| 202 | |||
| 203 | #difficulty, | ||
| 204 | #count { | ||
| 205 | background-color: #202232; | ||
| 206 | width: 100%; height: 100px; | ||
| 207 | min-width: 250px; | ||
| 208 | margin: 10px; | ||
| 209 | |||
| 210 | text-align: center; | ||
| 211 | |||
| 212 | border-radius: 20px; | ||
| 213 | display: grid; | ||
| 214 | grid-template-rows: 20px 40px 40px; | ||
| 215 | } | ||
| 216 | #difficulty>span:nth-child(1), | ||
| 217 | #count>span:nth-child(1){ | ||
| 218 | padding-top:10px; | ||
| 219 | font-size: 18px; | ||
| 220 | color:#cdcfdf | ||
| 221 | } | ||
| 222 | #difficulty>span:nth-child(2){ | ||
| 223 | font-size: 40px; | ||
| 224 | color:lime | ||
| 225 | } | ||
| 226 | #difficulty>div{ | ||
| 227 | width: 250px; | ||
| 228 | display: grid; | ||
| 229 | grid-template-columns: auto auto auto auto auto; | ||
| 230 | padding: 0 calc(50% - 125px) 0 calc(50% - 125px); | ||
| 231 | place-items: center; | ||
| 232 | } | ||
| 233 | |||
| 234 | .difficulty-rating{ | ||
| 235 | border-radius: 20px; | ||
| 236 | width: 40px; height: 3px; | ||
| 237 | background-color: #2b2e46; | ||
| 238 | } | ||
| 239 | |||
| 240 | #count>div{ | ||
| 241 | padding-top:10px; | ||
| 242 | font-size: 50px; | ||
| 243 | color:white | ||
| 244 | } | ||
| 245 | |||
| 246 | /* Section 5: route desc + video */ | ||
| 247 | #section5{ | ||
| 248 | margin: 40px 0 20px 0; | ||
| 249 | width: 100%; | ||
| 250 | } | ||
| 251 | |||
| 252 | #description{ | ||
| 253 | width: 100%; height: auto; | ||
| 254 | min-height: 342px; | ||
| 255 | } | ||
| 256 | |||
| 257 | |||
| 258 | |||
| 259 | |||
| 260 | #description>iframe{ | ||
| 261 | margin: 4px; | ||
| 262 | float:right; | ||
| 263 | border: 0; | ||
| 264 | border-radius: 20px; | ||
| 265 | width: 608px; height: 342px; | ||
| 266 | } | ||
| 267 | |||
| 268 | #description>h3{margin: 0 0 10px 0; color: white;} | ||
| 269 | #description-text{ | ||
| 270 | display: block; | ||
| 271 | font-size: 21px; | ||
| 272 | word-wrap: break-word; | ||
| 273 | } | ||
| 274 | #description-text>b{font-size: inherit;} | ||
| 275 | #description-text>a{font-size: inherit;color: #3c91e6;} | ||
| 276 | |||
| 277 | .triangle{ | ||
| 278 | display: inline-block; | ||
| 279 | width: 8px; height: 0; | ||
| 280 | border-top: 7px solid transparent; | ||
| 281 | border-right: 8px solid #cdcfdf; | ||
| 282 | border-bottom: 7px solid transparent; | ||
| 283 | } | ||
| 284 | |||
| 285 | /* such responsive, very mobile */ | ||
| 286 | @media screen and (max-width: 1480px) { | ||
| 287 | #section3{grid-template-columns: auto;} | ||
| 288 | #category{min-width: 608px;} | ||
| 289 | #history{min-width: 608px;} | ||
| 290 | #description{min-width: 608px;} | ||
| 291 | #section4{min-width: 588px;} | ||
| 292 | |||
| 293 | #description>iframe{ | ||
| 294 | padding: 0 0 0 calc(50% - 304px); | ||
| 295 | float:none; | ||
| 296 | justify-content: center; | ||
| 297 | align-items: center; | ||
| 298 | } | ||
| 299 | /* } | ||
| 300 | |||
| 301 | @media screen and (max-width: 1280px) { */ | ||
| 302 | #section1{ | ||
| 303 | grid-template-columns: auto; | ||
| 304 | place-items: center; | ||
| 305 | text-align: center; | ||
| 306 | |||
| 307 | } | ||
| 308 | |||
| 309 | #section2{ | ||
| 310 | grid-template-columns: auto; | ||
| 311 | width: 450px; | ||
| 312 | margin: 40px auto 0 auto; | ||
| 313 | } | ||
| 314 | #section2>.nav-button{ | ||
| 315 | margin: 1px 0 1px 0 !important; | ||
| 316 | } | ||
| 317 | #section2>.nav-button:nth-child(1){border-radius: 30px 30px 0 0;} | ||
| 318 | #section2>.nav-button:nth-child(2){border-radius: 0;} | ||
| 319 | #section2>.nav-button:nth-child(3){border-radius: 0 0 30px 30px;} | ||
| 320 | |||
| 321 | |||
| 322 | } \ No newline at end of file | ||