aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/components/pages/summary.css
diff options
context:
space:
mode:
authorArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2024-09-03 00:08:53 +0300
committerArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2024-09-03 00:08:53 +0300
commita65d6d9127c3fa7f6a8ecaec5d1ffd1f47c2bc98 (patch)
treeedf8630e9d6426124dd49854af0cb703ebc5b710 /frontend/src/components/pages/summary.css
parentfix: revert to static homepage (#195) (diff)
downloadlphub-a65d6d9127c3fa7f6a8ecaec5d1ffd1f47c2bc98.tar.gz
lphub-a65d6d9127c3fa7f6a8ecaec5d1ffd1f47c2bc98.tar.bz2
lphub-a65d6d9127c3fa7f6a8ecaec5d1ffd1f47c2bc98.zip
refactor: port to typescript
Diffstat (limited to 'frontend/src/components/pages/summary.css')
-rw-r--r--frontend/src/components/pages/summary.css720
1 files changed, 0 insertions, 720 deletions
diff --git a/frontend/src/components/pages/summary.css b/frontend/src/components/pages/summary.css
deleted file mode 100644
index 8c6ec35..0000000
--- a/frontend/src/components/pages/summary.css
+++ /dev/null
@@ -1,720 +0,0 @@
1#background-image{
2 z-index: -1;
3 position: absolute;
4 opacity: 10%;
5 height: 50%;
6 width: 100%
7}
8#background-image>img{
9 object-fit: cover;
10 width: 100%;
11 height: 100%;
12}
13#background-image::before{
14 content: "";
15 position: absolute;
16 width: 100%;
17 height: 100%;
18 background: linear-gradient(to top, #161723, #0000);
19}
20
21/* Section 1: map name*/
22
23#section1{
24 margin: 20px 0 0 0;
25 cursor: default;
26}
27
28.nav-button{
29 height: 40px;
30 background-color: #2b2e46;
31
32 color: inherit;
33 font-size: 18px;
34 font-family: inherit;
35 border: none;
36 transition: background-color .1s;
37}
38/* #section1>div>.nav-button:nth-child(1){border-radius: 0px;}:nth-child(1){border-radius: 20px 0 0 20px;}
39#section1>div>.nav-button:nth-child(2){border-radius: 0 20px 20px 0;margin-left: 2px;} */
40.nav-button>span{padding: 0 8px 0 8px;}
41.nav-button:hover{background-color: #202232;cursor: pointer;}
42
43/* Section 2: navbar */
44#section2{
45 margin: 40px 0 0 0;
46
47 display: grid; gap: 2px;
48 grid-template-columns: 1fr 1fr 1fr;
49}
50
51#section2>.nav-button{
52 height: 50px;
53 font-size: 22px;
54 display: flex;
55 justify-content: center;
56 place-items: center;
57}
58#section2>.nav-button>img{scale: 1.2;}
59#section2>.nav-button:nth-child(1){border-radius: 30px 0 0 30px;}
60#section2>.nav-button:nth-child(3){border-radius: 0 30px 30px 0;}
61
62
63/* Section 3: category + history */
64
65#section3{
66 margin: 40px 0 0 0;
67
68 display: none;
69 grid-template-columns: 1fr 1fr;
70 gap: 20px;
71}
72
73#category{
74 display: grid;
75 height: 350px;
76 border-radius: 24px;
77 overflow: hidden;
78
79}
80#category>p{
81 margin-bottom: 20px;
82 text-align: center;
83 font-size: 50px;
84 cursor: default;
85 color: white;
86}
87
88p>span.portal-count{font-weight: bold;font-size: 100px;vertical-align: -15%;}
89
90#category-image{
91 transform: translate(-20%, -15%);
92 z-index: -1;
93 overflow: hidden;
94 width: 125%;
95 margin: 22px;
96 filter: blur(4px) contrast(80%) brightness(80%);
97}
98
99#category>span{
100 margin-top: 70px;
101 background-color: #202232;
102
103 display: grid;
104 grid-template-columns: 1fr 1fr 1fr 1fr;
105 gap: 2px;
106}
107#category>span>button{
108 font-family: inherit;
109 font-size: 18px;
110 border: none;
111 height: 40px;
112 color: inherit;
113
114 cursor: pointer;
115 transition: background-color .1s;
116}
117
118
119
120#history>div>hr{border: 1px solid #2b2e46;margin: 8px 20px 0px 20px;}
121#history{
122 min-width: 560px;
123 background-color: #202232;
124 border-radius: 24px;
125
126}
127
128#records{overflow-y: auto; height: 256px;}
129#records::-webkit-scrollbar{display: none;}
130
131.record-top, .record{
132 font-size: 18px;
133 display: grid;
134 text-align: center;
135 grid-template-columns: 1fr 1fr 1fr;
136}
137.record-top{font-weight: bold;margin: 20px 20px 0 20px;cursor: default;}
138.record{
139 margin: 10px 20px 10px 20px;
140 height: 44px; width: calc(100% - 40px);
141
142 color: inherit;
143 border-radius: 40px;
144 place-items: center;
145
146 border: 0;
147 cursor: pointer;
148 transition: background-color .1s;
149}
150#history>span{
151 border-top: #202232 solid 2px;
152 display: grid;
153 grid-template-columns: 1fr 1fr;
154}
155#history>span>button{
156 width: 100%; height: 40px;
157 font-family: inherit;
158 font-size: 18px;
159 border: none;
160 color: inherit;
161
162 cursor: pointer;
163 transition: background-color .1s;
164}
165#history>span>button:nth-child(1){border-radius: 0 0 0 24px;}
166#history>span>button:nth-child(2){border-radius: 0 0 24px 0;}
167
168#graph{
169 display: grid;
170 grid-template-columns: 20px 1fr;
171 grid-template-rows: 1fr 20px;
172 height: 293px;
173
174 margin: 10px 10px 5px 10px;
175 overflow: hidden;
176}
177#graph>div:nth-child(1){ /* numbers */
178 width: 20px;
179 display: grid;
180 place-items: center;
181 /* background-color: blue; */
182}
183#graph>div:nth-child(1)>span{
184 font-size: 12px;
185 line-height: 0;
186}
187
188#graph>div:nth-child(2){ /* big graph */
189 position: relative;
190 display: grid;
191}
192#graph>div:nth-child(2)>tr{
193 display: flex;
194 align-items: center;
195 grid-template-columns: repeat(auto-fit, minmax(1px, 1fr));
196}
197#graph>div:nth-child(2)>tr>td.graph_hor{
198 width: 100%;
199 height: 0;
200 padding: 0;
201
202 outline: 1px solid red;
203}
204#graph>div:nth-child(2)>tr>td.graph_ver{
205 width: 0;
206 height: 100%;
207 padding: 0;
208
209 outline: 1px solid blue;
210 transform: translateY(50%);
211 z-index: 0;
212 overflow: hidden;
213}
214
215#graph>div:nth-child(3){ /* dates */
216 padding-right: 20px;
217 z-index: 1;
218 height: 16px;
219 background-color: #202232;
220 grid-column: 1 /3;
221 font-size: 12px;
222 display: grid;
223 padding-top: 8px;
224 grid-template-columns: repeat(auto-fit, minmax(1px, 1fr));
225}
226
227.graph-button{
228 position: absolute;
229 padding: 0;
230 border: 5px solid white;
231 border-radius: 20px;
232 cursor: pointer;
233 transform: translateX(-50%);
234}
235
236#history>div>h5{text-align: center;height: 197px;}
237
238
239/* Section 4: Difficulty + count */
240
241#section4{
242 display: none;
243 grid-template-columns: 1fr 1fr;
244 gap: 20px;
245 margin: 40px 0 0 0;
246}
247
248#difficulty,
249#count {
250 background-color: #202232;
251 min-width: 250px;
252 text-align: center;
253 cursor: default;
254
255 border-radius: 24px;
256 display: grid;
257 grid-template-rows: 20px 40px 40px;
258}
259#difficulty>span:nth-child(1),
260#count>span:nth-child(1){
261 padding-top:10px;
262 font-size: 18px;
263 color:#cdcfdf
264}
265#difficulty>span:nth-child(2){
266 font-size: 40px;
267}
268#difficulty>div{
269 display: grid;
270 grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
271 padding: 0 calc(50% - 125px) 0 calc(50% - 125px);
272 place-items: center;
273}
274
275.difficulty-rating{
276 border-radius: 24px;
277 width: 40px; height: 3px;
278 background-color: #2b2e46;
279}
280
281#count>div{
282 padding-top:10px;
283 font-size: 50px;
284 color:white
285}
286
287/* Section 5: route desc + video */
288#section5{
289 margin: 40px 0 20px 0;
290 width: 100%;
291}
292
293#description{
294 width: 100%; height: auto;
295 min-height: 342px;
296}
297
298
299
300
301#description>iframe{
302 margin: 4px;
303 float:right;
304 border: 0;
305 border-radius: 24px;
306 width: 608px; height: 342px;
307}
308
309#description>h3{margin: 0 0 10px 0; color: white;}
310#description-text{
311 display: block;
312 font-size: 21px;
313 word-wrap: break-word;
314}
315#description-text>b{font-size: inherit;}
316#description-text>a{font-size: inherit;color: #3c91e6;}
317
318
319/* Section 6: leaderboards */
320#section6{
321 margin: 40px 0 20px 0;
322 min-height: 600px;
323 background-color: #202232;
324
325 border-radius: 24px;
326 padding: 10px 10px 0 10px;
327
328}
329
330
331#section6>hr{border: 1px solid #2b2e46;margin: 8px 20px 0px 20px;}
332#leaderboard-top{
333 display: grid;
334 font-size: 20px;
335 height: 34px;
336 padding-left: 60px;
337 margin: 0 20px 0 20px;
338}
339#leaderboard-top>span{
340
341 display: flex;
342 place-items: flex-end;
343}
344
345#runner{
346 display: grid;
347 grid-template-columns: 50% 50%;
348 align-items: end;
349}
350
351#page-number{
352 display: flex;
353 width: auto;
354 flex-direction: row-reverse;
355}
356#page-number>div{
357width: 100px;
358place-items: center;
359display: grid;
360grid-template-columns: 1fr 1fr 1fr;
361text-align: center;
362}
363#page-number>div>button{
364 width: 30px;
365 height: 30px;
366 background-color: #202232;
367 border: 0;
368 padding: 0;
369 cursor: pointer;
370}
371
372.leaderboard-record{
373 margin: 10px 20px 0px 20px;
374 height: 44px; width: calc(100% - 40px);
375 width: auto;
376
377 color: inherit;
378 border-radius: 40px;
379 text-align: left;
380 padding: 0 0 0 60px;
381 font-size: 20px;
382 font-family: inherit;
383
384 grid-template-columns: 3% 4.5% 40% 4% 3.5% 15% 15% 15%;
385 display: grid;
386
387 border: 0;
388 transition: background-color .1s;
389 background-color: #2b2e46;
390}
391
392.leaderboard-record>span:nth-child(1){display: grid;}
393.leaderboard-record>span:nth-child(4){display: grid;}
394.leaderboard-record>span:last-child{flex-direction: row-reverse;}
395.leaderboard-record>span{
396 display: flex;
397 place-items: center;
398 height: 44px;
399}
400
401.leaderboard-record>div>span>img{
402 height: 36px;
403 border-radius: 50px;
404 padding: 0;
405 scale: .95;
406}
407.leaderboard-record>div{
408 display: grid;
409 grid-template-columns: 50% 50%;
410 place-items: left;
411}
412.leaderboard-record>div>span{
413 display: flex;
414 place-items: center;
415 height: 44px;
416}
417
418.leaderboard-record>span>button{
419 background-color: #0000;
420 border: 0;
421 cursor: pointer;
422 transition: opacity 0.1s;
423}
424
425.hover-popup {
426 position: relative;
427 }
428
429 .hover-popup::after {
430 content: attr(popup-text);
431 position: absolute;
432 /* top: 0%; */
433 /* left: 80%; */
434 /* transform: translateX(-100%); */
435 /* padding: 5px; */
436 background-color: #2b2e46;
437 /* border: 1px solid #161723; */
438 border-radius: 8px;
439 visibility: hidden;
440 opacity: 0;
441 /* transition: visibility 0s, opacity 0.3s ease; */
442 }
443
444 .hover-popup:hover::after {
445 visibility: visible;
446 opacity: 1;
447 }
448
449.leaderboard-record:last-child{margin: 10px 20px 10px 20px;}
450
451
452#section7{
453 margin: 40px 0 20px 0;
454 background-color: #202232;
455 border-radius: 24px;
456 padding: 10px;
457}
458
459#discussion-search{
460 height: 46px;
461 width: 100%;
462 display: grid;
463 grid-template-columns: 1fr 100px;
464 margin: 0 0 20px 0;
465}
466#discussion-search>input::placeholder{color: #aaa;}
467#discussion-search>input{
468 background-color: #2b2e46;
469 font-size: 20px;
470 padding-left: 10px;
471 color: white;
472 border: 0;
473 border-radius: 16px 0 0 16px;
474 font-family: inherit;
475}
476#discussion-search>div>button:hover{filter: brightness(75%);}
477#discussion-search>div>button{
478 padding: 7px 16px;
479 margin: 8px 0;
480 border: 0;
481 font-size: 16px;
482 border-radius: 24px;
483 display: block;
484 background-color:#3c91e6;
485 font-family: inherit;
486 font-weight: bold;
487 cursor: pointer;
488 color: white;
489
490 transition: filter .2s;
491}
492#discussion-search>div{
493 background-color: #2b2e46;
494 border-radius: 0 16px 16px 0;
495}
496#discussion-post>button:nth-child(1)>span>b{font-size: 18px;color:#cdcfdf;font-weight: lighter;}
497#discussion-post>button:nth-child(1){
498 background-color: #2b2e46;
499 display: grid;
500 grid-template-columns: minmax(0, 1fr) 150px;
501
502 border-radius: 16px;
503 padding: 16px 12px;
504 margin: 8px 0 0 0;
505 border: 0;
506 width: 100%; height: 100px;
507 text-align: start;
508 white-space: nowrap;
509 color: #cdcfdf;
510 cursor: pointer;
511 overflow: hidden;
512}
513#discussion-post>button:nth-child(1)>span:nth-child(1){font-size: 32px;}
514#discussion-post>button:nth-child(1)>span:nth-child(3){color: #aaa; font-size: 18px;}
515#discussion-post>button:nth-child(1)>span:nth-child(4){
516 opacity: .7;
517 height: 40px;
518 display: flex;
519 place-items: end;
520 justify-content: end;
521}
522
523#discussion-post{height: 100px;}
524#discussion-post>button>button:hover{filter: brightness(75%); }
525#discussion-post>button>button{
526 padding: 7px 16px;
527
528 border: 0;
529 font-size: 16px;
530 border-radius: 24px;
531 background-color:#e52d04;
532 font-family: BarlowSemiCondensed-Regular;
533 font-weight: bold;
534 cursor: pointer;
535 color: white;
536
537 transition: filter .2s;
538}
539
540
541#discussion-create>div{
542 display: grid;
543 text-align: start;
544}
545#discussion-create{
546 display: grid;
547 grid-template-columns: 1fr 40px;
548 height: auto;
549 word-wrap: break-word;
550}
551
552#discussion-create>span{padding-left: 20px;}
553#discussion-create>div>input::placeholder{color: #aaa;}
554#discussion-create>div>input{
555 background-color: #2b2e46;
556 font-size: 20px;
557 padding-left: 10px;
558 margin-top: 10px;
559 height: 32px;
560 color: white;
561 border: 0;
562 font-family: inherit;
563}
564#discussion-create>div>input:nth-child(2){font-size: 16px;}
565
566#discussion-create-button:hover{filter: brightness(75%);}
567#discussion-create-button{
568 padding: 7px 16px;
569 margin: 8px 0 0 0;
570 border: 0;
571 font-size: 16px;
572 border-radius: 24px;
573
574 background-color:#3c91e6;
575 font-family: inherit;
576 font-weight: bold;
577 cursor: pointer;
578 color: white;
579 width: min-content;
580 grid-column: 1 / span 2;
581
582
583 transition: filter .2s;
584}
585
586
587#discussion-thread>div:nth-child(1){
588 display: grid;
589 grid-template-columns: 1fr 40px;
590 height: auto;
591 padding: 0 0 10px 20px;
592 word-wrap: break-word;
593}
594
595#discussion-create>button:nth-child(2),
596#discussion-thread>div>button{
597 height: 40px;
598 float:inline-end;
599 color:#cdcfdf;
600 background-color: #0000;
601 border: 0;
602 font-size: 38px;
603 cursor: pointer;
604}
605
606
607#discussion-thread>div:nth-child(2)>img{
608 width: 60px; height: 60px;
609 border-radius: 100px;
610 margin: 20px 0 0 0;
611}
612#discussion-thread>div:nth-child(2)>div{
613 height: max-content;
614 padding: 20px 0 0 10px;
615 display: inline-grid;
616 grid-template-columns: min-content 1fr ;
617 overflow: hidden;
618
619}
620#discussion-thread>div:nth-child(2)>div>span:nth-child(1){font-weight: bold;height: 30px;}
621#discussion-thread>div:nth-child(2)>div>span:nth-child(2){
622 opacity: 0.6;
623 height: 30px;
624 font-size: 80%;
625 padding-left: 10px;
626}
627#discussion-thread>div:nth-child(2)>div>span:nth-child(3){
628 grid-column: 1 / span 2;
629 height: max-content;
630 word-wrap: break-word;
631}
632#discussion-thread>div:nth-child(2){
633 display: grid;
634 grid-template-columns: 60px 1fr;
635 font-size: 20px;
636 max-height: 522px;
637 overflow-y: auto;
638}
639
640
641#discussion-send{
642 height: 48px;
643 width: 100%;
644 display: grid;
645 grid-template-columns: 1fr 80px;
646 margin: 10px 0 0 0;
647}
648#discussion-send>input::placeholder{color: #aaa;}
649#discussion-send>input{
650 background-color: #2b2e46;
651 padding-left: 10px;
652 color: white;
653 border: 0;
654 font-size: 20px;
655 border-radius: 16px 0 0 16px;
656 font-family: inherit;
657}
658#discussion-send>div{
659 background-color: #2b2e46;
660 border-radius: 0 16px 16px 0;
661
662}
663#discussion-send>div>button:hover{ filter: brightness(75%);}
664#discussion-send>div>button{
665 padding: 7px 20px;
666 margin: 8px 0;
667 font-size: 16px;
668 border: 0;
669 border-radius: 24px;
670 display: block;
671 background-color:#3c91e6;
672 font-family: inherit;
673 font-weight: bold;
674 cursor: pointer;
675 color: white;
676
677 transition: filter .2s;
678}
679
680
681
682.triangle{
683 display: inline-block;
684 width: 8px; height: 0;
685 border-top: 7px solid transparent;
686 border-right: 8px solid #cdcfdf;
687 border-bottom: 7px solid transparent;
688}
689
690 /* such responsive, very mobile */
691@media screen and (max-width: 1480px) {
692 #section3.summary1{grid-template-columns: auto;}
693 #category{min-width: 608px;}
694 #history{min-width: 608px;}
695 #description{min-width: 608px;}
696 #section4.summary1{min-width: 588px;}
697
698 #description>iframe{
699 padding: 0 0 0 calc(50% - 304px);
700 float:none;
701 justify-content: center;
702 align-items: center;
703 }
704
705 #section1.summary1{
706 grid-template-columns: auto;
707 place-items: center;
708 text-align: center;
709
710 }
711
712 #section2.summary1{
713 grid-template-columns: auto;
714 width: 450px;
715 margin: 40px auto 0 auto;
716 }
717 #section2.summary1>.nav-button:nth-child(1){border-radius: 30px 30px 0 0;}
718 #section2.summary1>.nav-button:nth-child(2){border-radius: 0;}
719 #section2.summary1>.nav-button:nth-child(3){border-radius: 0 0 30px 30px;}
720} \ No newline at end of file