aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/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/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/css')
-rw-r--r--frontend/src/css/Games.css99
-rw-r--r--frontend/src/css/Login.css26
-rw-r--r--frontend/src/css/Maps.css726
-rw-r--r--frontend/src/css/ModMenu.css112
-rw-r--r--frontend/src/css/Profile.css239
-rw-r--r--frontend/src/css/Sidebar.css208
6 files changed, 1410 insertions, 0 deletions
diff --git a/frontend/src/css/Games.css b/frontend/src/css/Games.css
new file mode 100644
index 0000000..ec57a71
--- /dev/null
+++ b/frontend/src/css/Games.css
@@ -0,0 +1,99 @@
1.games-page {
2 position: absolute;
3 left: 320px;
4 color: white;
5 width: calc(100% - 320px);
6 height: 100%;
7 font-family: BarlowSemiCondensed-Regular;
8 color: #ffffff;
9 overflow-y: scroll;
10 scrollbar-width: thin;
11}
12
13.games-page-item-content {
14 position: absolute;
15 left: 50px;
16 width: calc(100% - 100px);
17}
18
19.games-page-item-content a {
20 color: inherit;
21}
22
23.games-page-header {
24 margin-top: 50px;
25 margin-left: 50px;
26}
27
28span>b {
29 font-size: 56px;
30 font-family: BarlowCondensed-Bold;
31}
32
33.loader-game {
34 width: 100%;
35 height: 256px;
36 border-radius: 24px;
37 overflow: hidden;
38 margin: 25px 0px;
39}
40
41.games-page-item {
42 width: 100%;
43 height: 256px;
44 background: #202232;
45 border-radius: 24px;
46 overflow: hidden;
47 margin: 25px 0px;
48}
49
50.games-page-item-header {
51 width: 100%;
52 height: 50%;
53 background-size: cover;
54 overflow: hidden;
55}
56
57.games-page-item-header-img {
58 width: 100%;
59 height: 100%;
60 backdrop-filter: blur(4px);
61 filter: blur(4px);
62 background-size: cover;
63}
64
65.games-page-item-header span>b {
66 display: flex;
67 justify-content: center;
68 align-items: center;
69 height: 100%;
70 transform: translateY(-100%);
71}
72
73.games-page-item-body {
74 display: flex;
75 justify-content: center;
76 align-items: center;
77 height: 50%;
78}
79
80.games-page-item-body-item {
81 background: #2B2E46;
82 text-align: center;
83 width: max-content;
84 width: calc(100% - 24px);
85 height: 100px;
86 border-radius: 24px;
87 color: #CDCFDF;
88 margin: 12px;
89}
90
91.games-page-item-body-item-title {
92 margin-top: 0px;
93 font-size: 26px;
94}
95
96.games-page-item-body-item-num {
97 font-size: 50px;
98 font-family: BarlowCondensed-Bold;
99} \ No newline at end of file
diff --git a/frontend/src/css/Login.css b/frontend/src/css/Login.css
new file mode 100644
index 0000000..aa75f98
--- /dev/null
+++ b/frontend/src/css/Login.css
@@ -0,0 +1,26 @@
1span>img {
2 scale: 1.1;
3 padding: 4px 0 0 8px;
4}
5.login>button>span{
6 max-width: 22ch;
7 overflow: hidden;
8}
9.login>button:nth-child(2){
10 position: relative;
11 left: 210px;
12 width: 50px !important;
13
14 padding-left: 10px;
15 background-color: #00000000 !important;
16 /* transition: opacity .1s; */
17}
18
19.login{
20 display: grid;
21 grid-template-columns: 50px auto 200px ;
22}
23
24button:disabled {
25 display: none;
26} \ No newline at end of file
diff --git a/frontend/src/css/Maps.css b/frontend/src/css/Maps.css
new file mode 100644
index 0000000..d164d3b
--- /dev/null
+++ b/frontend/src/css/Maps.css
@@ -0,0 +1,726 @@
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: grid;
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: grid;
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 display: inline-block;
428 }
429
430 .hover-popup::after {
431 content: attr(popup-text);
432 position: absolute;
433 /* top: 0%; */
434 /* left: 80%; */
435 /* transform: translateX(-100%); */
436 /* padding: 5px; */
437 background-color: #2b2e46;
438 /* border: 1px solid #161723; */
439 border-radius: 8px;
440 visibility: hidden;
441 opacity: 0;
442 color: #cdcfdf;
443 /* transition: visibility 0s, opacity 0.3s ease; */
444 }
445
446 .hover-popup:hover {
447 color: transparent;
448 }
449
450 .hover-popup:hover::after {
451 visibility: visible;
452 opacity: 1;
453 }
454
455.leaderboard-record:last-child{margin: 10px 20px 10px 20px;}
456
457
458#section7{
459 margin: 40px 0 20px 0;
460 background-color: #202232;
461 border-radius: 24px;
462 padding: 10px;
463}
464
465#discussion-search{
466 height: 46px;
467 width: 100%;
468 display: grid;
469 grid-template-columns: 1fr 100px;
470 margin: 0 0 20px 0;
471}
472#discussion-search>input::placeholder{color: #aaa;}
473#discussion-search>input{
474 background-color: #2b2e46;
475 font-size: 20px;
476 padding-left: 10px;
477 color: white;
478 border: 0;
479 border-radius: 16px 0 0 16px;
480 font-family: inherit;
481}
482#discussion-search>div>button:hover{filter: brightness(75%);}
483#discussion-search>div>button{
484 padding: 7px 16px;
485 margin: 8px 0;
486 border: 0;
487 font-size: 16px;
488 border-radius: 24px;
489 display: block;
490 background-color:#3c91e6;
491 font-family: inherit;
492 font-weight: bold;
493 cursor: pointer;
494 color: white;
495
496 transition: filter .2s;
497}
498#discussion-search>div{
499 background-color: #2b2e46;
500 border-radius: 0 16px 16px 0;
501}
502#discussion-post>button:nth-child(1)>span>b{font-size: 18px;color:#cdcfdf;font-weight: lighter;}
503#discussion-post>button:nth-child(1){
504 background-color: #2b2e46;
505 display: grid;
506 grid-template-columns: minmax(0, 1fr) 150px;
507
508 border-radius: 16px;
509 padding: 16px 12px;
510 margin: 8px 0 0 0;
511 border: 0;
512 width: 100%; height: 100px;
513 text-align: start;
514 white-space: nowrap;
515 color: #cdcfdf;
516 cursor: pointer;
517 overflow: hidden;
518}
519#discussion-post>button:nth-child(1)>span:nth-child(1){font-size: 32px;}
520#discussion-post>button:nth-child(1)>span:nth-child(3){color: #aaa; font-size: 18px;}
521#discussion-post>button:nth-child(1)>span:nth-child(4){
522 opacity: .7;
523 height: 40px;
524 display: flex;
525 place-items: end;
526 justify-content: end;
527}
528
529#discussion-post{height: 100px;}
530#discussion-post>button>button:hover{filter: brightness(75%); }
531#discussion-post>button>button{
532 padding: 7px 16px;
533
534 border: 0;
535 font-size: 16px;
536 border-radius: 24px;
537 background-color:#e52d04;
538 font-family: BarlowSemiCondensed-Regular;
539 font-weight: bold;
540 cursor: pointer;
541 color: white;
542
543 transition: filter .2s;
544}
545
546
547#discussion-create>div{
548 display: grid;
549 text-align: start;
550}
551#discussion-create{
552 display: grid;
553 grid-template-columns: 1fr 40px;
554 height: auto;
555 word-wrap: break-word;
556}
557
558#discussion-create>span{padding-left: 20px;}
559#discussion-create>div>input::placeholder{color: #aaa;}
560#discussion-create>div>input{
561 background-color: #2b2e46;
562 font-size: 20px;
563 padding-left: 10px;
564 margin-top: 10px;
565 height: 32px;
566 color: white;
567 border: 0;
568 font-family: inherit;
569}
570#discussion-create>div>input:nth-child(2){font-size: 16px;}
571
572#discussion-create-button:hover{filter: brightness(75%);}
573#discussion-create-button{
574 padding: 7px 16px;
575 margin: 8px 0 0 0;
576 border: 0;
577 font-size: 16px;
578 border-radius: 24px;
579
580 background-color:#3c91e6;
581 font-family: inherit;
582 font-weight: bold;
583 cursor: pointer;
584 color: white;
585 width: min-content;
586 grid-column: 1 / span 2;
587
588
589 transition: filter .2s;
590}
591
592
593#discussion-thread>div:nth-child(1){
594 display: grid;
595 grid-template-columns: 1fr 40px;
596 height: auto;
597 padding: 0 0 10px 20px;
598 word-wrap: break-word;
599}
600
601#discussion-create>button:nth-child(2),
602#discussion-thread>div>button{
603 height: 40px;
604 float:inline-end;
605 color:#cdcfdf;
606 background-color: #0000;
607 border: 0;
608 font-size: 38px;
609 cursor: pointer;
610}
611
612
613#discussion-thread>div:nth-child(2)>img{
614 width: 60px; height: 60px;
615 border-radius: 100px;
616 margin: 20px 0 0 0;
617}
618#discussion-thread>div:nth-child(2)>div{
619 height: max-content;
620 padding: 20px 0 0 10px;
621 display: inline-grid;
622 grid-template-columns: min-content 1fr ;
623 overflow: hidden;
624
625}
626#discussion-thread>div:nth-child(2)>div>span:nth-child(1){font-weight: bold;height: 30px;}
627#discussion-thread>div:nth-child(2)>div>span:nth-child(2){
628 opacity: 0.6;
629 height: 30px;
630 font-size: 80%;
631 padding-left: 10px;
632}
633#discussion-thread>div:nth-child(2)>div>span:nth-child(3){
634 grid-column: 1 / span 2;
635 height: max-content;
636 word-wrap: break-word;
637}
638#discussion-thread>div:nth-child(2){
639 display: grid;
640 grid-template-columns: 60px 1fr;
641 font-size: 20px;
642 max-height: 522px;
643 overflow-y: auto;
644}
645
646
647#discussion-send{
648 height: 48px;
649 width: 100%;
650 display: grid;
651 grid-template-columns: 1fr 80px;
652 margin: 10px 0 0 0;
653}
654#discussion-send>input::placeholder{color: #aaa;}
655#discussion-send>input{
656 background-color: #2b2e46;
657 padding-left: 10px;
658 color: white;
659 border: 0;
660 font-size: 20px;
661 border-radius: 16px 0 0 16px;
662 font-family: inherit;
663}
664#discussion-send>div{
665 background-color: #2b2e46;
666 border-radius: 0 16px 16px 0;
667
668}
669#discussion-send>div>button:hover{ filter: brightness(75%);}
670#discussion-send>div>button{
671 padding: 7px 20px;
672 margin: 8px 0;
673 font-size: 16px;
674 border: 0;
675 border-radius: 24px;
676 display: block;
677 background-color:#3c91e6;
678 font-family: inherit;
679 font-weight: bold;
680 cursor: pointer;
681 color: white;
682
683 transition: filter .2s;
684}
685
686
687
688.triangle{
689 display: inline-block;
690 width: 8px; height: 0;
691 border-top: 7px solid transparent;
692 border-right: 8px solid #cdcfdf;
693 border-bottom: 7px solid transparent;
694}
695
696 /* such responsive, very mobile */
697@media screen and (max-width: 1480px) {
698 #section3.summary1{grid-template-columns: auto;}
699 #category{min-width: 608px;}
700 #history{min-width: 608px;}
701 #description{min-width: 608px;}
702 #section4.summary1{min-width: 588px;}
703
704 #description>iframe{
705 padding: 0 0 0 calc(50% - 304px);
706 float:none;
707 justify-content: center;
708 align-items: center;
709 }
710
711 #section1.summary1{
712 grid-template-columns: auto;
713 place-items: center;
714 text-align: center;
715
716 }
717
718 #section2.summary1{
719 grid-template-columns: auto;
720 width: 450px;
721 margin: 40px auto 0 auto;
722 }
723 #section2.summary1>.nav-button:nth-child(1){border-radius: 30px 30px 0 0;}
724 #section2.summary1>.nav-button:nth-child(2){border-radius: 0;}
725 #section2.summary1>.nav-button:nth-child(3){border-radius: 0 0 30px 30px;}
726} \ No newline at end of file
diff --git a/frontend/src/css/ModMenu.css b/frontend/src/css/ModMenu.css
new file mode 100644
index 0000000..c6d3d8d
--- /dev/null
+++ b/frontend/src/css/ModMenu.css
@@ -0,0 +1,112 @@
1div#modview{
2 position: absolute;
3 left: 50%;
4 z-index: 20;
5 width: 320px; height: auto;
6 /* background-color: red; */
7
8 transform: translateY(-68%);
9}
10div#modview>div>button{
11 height: 30px;
12}
13
14div#modview>div:nth-child(1){
15 display: grid;
16 grid-template-columns: 50% 50%;
17}
18
19div#modview>div:nth-child(2){
20 display: grid;
21 place-items: center;
22}
23
24#modview-menu{
25 position: absolute;
26 left: calc(50% + 160px); top: 130px;
27 transform: translateX(-50%);
28 background-color: #2b2e46;
29 z-index: 2; color: white;
30}
31
32#modview-menu-image{
33 box-shadow: 0 0 40px 16px black;
34 outline: 8px solid #2b2e46;
35 border-radius: 20px;
36 font-size: 40px;
37 display: grid;
38 grid-template-columns: 50% 50%;
39 /* place-items: center; */
40
41}
42#modview-menu-image>div:nth-child(1){
43 height: 400px; width: 500px;
44 display: grid;
45 grid-template-rows: 30% 70%;
46}
47#modview-menu-image>div:nth-child(2){
48 height: 400px; width: 500px;
49 display: grid;
50 grid-template-rows: 20% 10%;
51}
52
53#modview-menu-image>div>button{width: 300px;margin-left:100px;}
54#modview-menu-image>div>img{width: 500px;}
55#modview-menu-image>div>button{font-size: 20px;}
56#modview-menu-image>div>span>input[type="file"]{font-size: 15px;}
57
58
59#modview-menu-add,
60#modview-menu-edit{
61 box-shadow: 0 0 40px 16px black;
62 outline: 8px solid #2b2e46;
63 border-radius: 20px;
64 font-size: 40px;
65 display: grid;
66 grid-template-columns: 20% 20% 20% 20% 20%;
67}
68
69#modview-menu-add>div,
70#modview-menu-edit>div{
71 display: grid;
72 margin: 20px;
73 width: 200px;
74 font-size: 20px;
75}
76#modview-route-description>textarea{
77 resize: none;
78 height: 160px;
79 width: 1160px;
80}
81#modview-route-showcase>input::placeholder{opacity: .5;}
82#modview_block{
83 position: absolute;
84 background-color: black;
85 opacity: .3;
86 left: 320px;
87 width: calc(100% - 320px);
88 height: 100%;
89 z-index: 2;
90 cursor: no-drop;
91}
92#modview-md{
93 box-shadow: 0 0 40px 16px black;
94 background-color: #2b2e46;
95 outline: 8px solid #2b2e46;
96
97 border-radius: 20px;
98 position: absolute;
99 padding: 10px; top: 400px;
100 width: 1180px; height: 300px;
101 overflow-y: auto;
102 word-wrap: break-word;
103}
104#modview-md>span>a{
105 padding-left: 20px;
106 color:aqua;
107}
108#modview-md>p{
109 font-family: BarlowSemiCondensed-Regular;
110 color: #cdcfdf;
111 font-size: 21px;
112} \ No newline at end of file
diff --git a/frontend/src/css/Profile.css b/frontend/src/css/Profile.css
new file mode 100644
index 0000000..4944ade
--- /dev/null
+++ b/frontend/src/css/Profile.css
@@ -0,0 +1,239 @@
1#section1.profile{
2 margin: 20px;
3 background: linear-gradient(0deg, #202232 50%, #2b2e46 50%);
4 border-radius: 24px;
5 height: 200px;
6
7 display: grid;
8 grid-template-columns: 250px 1fr;
9
10}
11#section1.profile>div:first-child{
12 overflow: hidden;
13 border-radius: 100%;
14 display: grid;
15
16 place-items: center;
17
18 margin: 8px 33px 8px 33px;
19 scale: 0.9;
20 grid-row: 1 / 3;
21
22
23}
24#profile-image>img{
25 border-radius: 100%;
26 transition: filter 0.3s;
27 cursor: pointer;
28}
29
30#profile-image>span{
31 z-index: 1;
32 position: absolute;
33 opacity: 0;
34 color:white;
35 transition: opacity 0.3s;
36 cursor: pointer;
37}
38
39#profile-image:hover > img{filter: blur(5px) brightness(60%);z-index: 1;}
40#profile-image:hover > span{opacity: 1;}
41
42#profile-top{
43 height: 100px;
44 display: grid;
45 grid-template-columns: 80% 20%;
46}
47#profile-top>div:nth-child(1)>div>img{
48 margin: 12px;
49 border-radius: 10px;
50}
51
52#profile-top>div:nth-child(1){
53 display: flex;
54 place-items: center;
55 font-size: 50px;
56 font-weight: bold;
57 color: white;
58}
59#profile-top>div:nth-child(1)>div{
60 display: flex;
61 height: 60px;
62}
63span.titles{
64 margin: 12px 12px 12px 0;
65
66 font-size: 18px;
67 font-weight: 100;
68
69 padding: 6px 20px 0px 20px;
70 border-radius: 10px;
71}
72
73#profile-top>div:nth-child(2){
74 display: flex;
75 flex-direction: row-reverse;
76 align-items: center;
77 padding-right: 10px;
78}
79#profile-top>div:nth-child(2)>a>img{
80 height: 50px;
81 padding: 0 5px 0 5px;
82 scale: 0.9;
83 filter: brightness(200%);
84
85}
86
87
88#profile-bottom{
89 height: 100px;
90 display: grid;
91 grid-template-columns: 1fr 1fr 1fr;
92}
93#profile-bottom>div{
94 margin: 12px;
95 background-color: #2b2e46;
96 border-radius: 20px;
97 display: grid;
98 place-items: center;
99 grid-template-rows: 40% 50%;
100}
101#profile-bottom>div>span:nth-child(1){
102 color: inherit;
103 font-size: 18px;
104}
105#profile-bottom>div>span:nth-child(2){
106 color: white;
107 font-size: 40px;
108}
109#profile-bottom>div>span:nth-child(2)>span{
110 color: white;
111 font-size: 20px;
112}
113/* #section1.profile>div>div{outline: red 1px dashed;} */
114
115
116#section2.profile{
117 margin: 20px;
118 height: 60px;
119 display: grid;
120 grid-template-columns: 1fr 1fr;
121}
122#section2.profile>button{
123 display: flex;
124 justify-content: center;
125 align-items: center;
126
127 background-color: #2b2e46;
128 border: 0;
129 color: inherit;
130 font-family: inherit;
131 font-size: 24px;
132 cursor: pointer;
133
134 transition: background-color .1s;
135}
136#section2.profile>button:nth-child(1){border-radius: 24px 0 0 24px;}
137#section2.profile>button:nth-child(2){border-radius: 0 24px 24px 0;}
138
139#section3.profile1>hr{border: 1px solid #2b2e46;margin: 8px 20px 0px 20px;}
140#section3.profile1{
141 margin: 20px;
142 display: block;
143
144 background-color: #202232;
145 border-radius: 24px;
146}
147
148#profileboard-nav{
149 display: grid;
150 grid-template-columns: 1fr 1fr;
151}
152
153#profileboard-nav>select{
154
155 /* appearance: none; */
156 margin: 10px 20px 20px 20px;
157 height: 50px;
158
159 border-radius: 24px;
160 text-align: center;
161
162 color: inherit;
163 font-family: inherit;
164 font-size: 24px;
165 border: 0;
166
167 background-color: #2b2e46;
168}
169
170
171#profileboard-top>span>img{height: 20px;scale: .8;}
172#profileboard-top>span>img,#profileboard-top>span>span{cursor: pointer;}
173#profileboard-top{
174 height: 34px;
175 display: grid;
176 font-size: 20px;
177 padding-left: 40px;
178 margin: 0 20px;
179 grid-template-columns: 15% 15% 5% 15% 5% 15% 15% 15%;
180}
181
182#profileboard-top>span{
183 display: flex;
184 place-items: flex-end;
185}
186
187#profileboard-records{
188 padding-bottom: 10px;
189}
190
191.profileboard-record{
192 width: calc(100% - 40px);
193 margin: 10px 20px 0px 20px;
194 height: 44px;
195
196 border-radius: 20px;
197 padding: 0 0 0 40px;
198 font-size: 20px;
199
200 color: inherit;
201 font-family: inherit;
202 border: 0;
203 transition: background-color .1s;
204 background-color: #2b2e46;
205 display: grid;
206 grid-template-columns: 15% 15% 5% 15% 5% 15% 15% 15%;
207 overflow: hidden;
208 white-space: nowrap;
209
210 transition: height .2s
211}
212
213/* this right here should be illegal */
214.profileboard-record>span:nth-child(-n+8){filter: brightness(100%);}
215.profileboard-record>span{
216 display: flex;
217 place-items: flex-end;
218 filter: brightness(65%);
219}
220
221.profileboard-record>hr{
222 margin: 0 0 0 -60px;
223 border: 0;
224 height: 2px;
225 background-color: #202232;
226}
227
228.profileboard-record>span:nth-child(4){display: grid;}
229.profileboard-record>span{
230
231 display: flex;
232 place-items: center;
233 height: 44px;
234}
235.profileboard-record>span>button{
236 background-color: #0000;
237 border: 0;
238 cursor: pointer;
239}
diff --git a/frontend/src/css/Sidebar.css b/frontend/src/css/Sidebar.css
new file mode 100644
index 0000000..34ede80
--- /dev/null
+++ b/frontend/src/css/Sidebar.css
@@ -0,0 +1,208 @@
1#sidebar {
2 overflow: hidden;
3 position: absolute;
4 background-color: #2b2e46;
5 width: 320px; height: 100vh;
6 min-height: 670px;
7
8}
9
10 /* logo */
11#logo{
12 display: grid;
13 grid-template-columns: 60px 200px;
14
15
16 height: 80px;
17 padding: 20px 0 20px 30px;
18 cursor: pointer;
19 user-select: none;
20}
21
22#logo-text{
23 font-family: BarlowCondensed-Regular;
24 font-size: 42px;
25 color: #FFF;
26 line-height: 38px;
27}
28span>b{
29 font-family: BarlowCondensed-Bold;
30 font-size: 56px;
31}
32
33 /* Sidelist */
34#sidebar-list{
35 z-index: 2;
36 background-color: #2b2e46;
37 position: relative;
38 height: calc(100vh - 120px);
39 width: 320px;
40 /* min-height: 670px; */
41 transition: width .3s;
42}
43#sidebar-toplist>button:nth-child(1){margin-top: 5px;}
44#sidebar-toplist{
45 display: grid;
46
47 margin: 0 5px 0 5px;
48 justify-items: left;
49 height: 400px;
50 grid-template-rows: 45px 50px 50px 50px 50px 50px 50px 50px auto;
51}
52
53#sidebar-bottomlist{
54 display: grid;
55
56 margin: 0 5px 0 5px;
57 justify-items: left;
58 grid-template-rows: calc(100vh - 670px) 50px 50px 50px;
59}
60.sidebar-button>span{
61 font-family: BarlowSemiCondensed-Regular;
62 font-size: 18px;
63 color: #CDCFDF;
64 height: 32px;
65 line-height: 28px;
66 transition: opacity .1s;
67}
68.sidebar-button{
69 display: grid;
70 grid-template-columns: 50px auto;
71 place-items: left;
72 text-align: left;
73
74 background-color: inherit;
75 cursor: pointer;
76 border: none;
77 width: 310px;
78 height: 40px;
79 border-radius: 20px;
80 padding: 0.4em 0 0 11px;
81
82 transition:
83 width .3s,
84 background-color .15s,
85 padding .3s;
86}
87
88.sidebar-button-selected {
89 background-color: #202232;
90}
91
92.sidebar-button-deselected {
93 background-color: #20223200;
94}
95
96.sidebar-button-deselected:hover {
97 background-color: #202232aa;
98}
99
100button>img {
101 scale: 1.1;
102 width: 20px;
103 padding: 5px;
104}
105
106 /* Maplist */
107#sidebar>div:nth-child(3){
108 position: relative;
109 background-color: #202232;
110 color: #424562;
111 z-index: 1;
112
113 left: 52px;
114 top: calc(-100vh + 120px);
115 width: 268px; height: calc(100vh - 120px);
116 min-height: 550px;
117}
118input#searchbar[type=text]{
119 margin: 10px 0 0 6px;
120 padding: 1px 0px 1px 16px;
121 width: 240px;
122 height: 30px;
123
124 font-family: BarlowSemiCondensed-Regular;
125 font-size: 20px;
126
127 background-color: #161723;
128 color:#CDCFDF;
129
130 border: 0;
131 border-radius: 20px;
132
133}
134input[type=text]::placeholder{color:#2b2e46}
135input[type=text]:focus{outline: inherit;}
136a{text-decoration: none;height: 40px;}
137
138
139#search-data{
140 margin: 8px 0 8px 0;
141 overflow-y: auto;
142 max-height: calc(100vh - 172px);
143 scrollbar-width: thin;
144}
145#search-data::-webkit-scrollbar{display: none;}
146.search-map{
147 margin: 10px 6px 0 6px;
148 height: 80px;
149
150 border-radius: 20px;
151 text-align: center;
152
153 display: grid;
154
155 border: 0;
156 transition: background-color .1s;
157 background-color: #2b2e46;
158 grid-template-rows: 20% 20% 60%;
159 width: calc(100% - 15px);
160}
161.search-map>span{
162 color: #888;
163 font-size: 16px;
164 font-family: BarlowSemiCondensed-Regular;
165}
166.search-map>span:nth-child(3){
167 font-size: 30px;
168 color: #CDCFDF;
169}
170
171.search-player{
172 overflow: hidden;
173 margin: 10px 6px 0 6px;
174 height: 80px;
175
176 border-radius: 20px;
177 text-align: center;
178 color: #CDCFDF;
179 font-family: BarlowSemiCondensed-Regular;
180
181 display: grid;
182 place-items: center;
183 grid-template-columns: 20% 80%;
184 padding: 0 16px 0 16px;
185
186 border: 0;
187 transition: background-color .1s;
188 background-color: #2b2e46;
189}
190.search-player>img{
191 height: 60px;
192 border-radius: 20px;
193}
194.search-player>span{
195 width:154px;
196 font-size: 26px;
197}
198
199
200
201
202
203
204
205
206
207
208