From a65d6d9127c3fa7f6a8ecaec5d1ffd1f47c2bc98 Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Tue, 3 Sep 2024 00:08:53 +0300 Subject: refactor: port to typescript --- frontend/src/css/Games.css | 99 ++++++ frontend/src/css/Login.css | 26 ++ frontend/src/css/Maps.css | 726 +++++++++++++++++++++++++++++++++++++++++++ frontend/src/css/ModMenu.css | 112 +++++++ frontend/src/css/Profile.css | 239 ++++++++++++++ frontend/src/css/Sidebar.css | 208 +++++++++++++ 6 files changed, 1410 insertions(+) create mode 100644 frontend/src/css/Games.css create mode 100644 frontend/src/css/Login.css create mode 100644 frontend/src/css/Maps.css create mode 100644 frontend/src/css/ModMenu.css create mode 100644 frontend/src/css/Profile.css create mode 100644 frontend/src/css/Sidebar.css (limited to 'frontend/src/css') 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 @@ +.games-page { + position: absolute; + left: 320px; + color: white; + width: calc(100% - 320px); + height: 100%; + font-family: BarlowSemiCondensed-Regular; + color: #ffffff; + overflow-y: scroll; + scrollbar-width: thin; +} + +.games-page-item-content { + position: absolute; + left: 50px; + width: calc(100% - 100px); +} + +.games-page-item-content a { + color: inherit; +} + +.games-page-header { + margin-top: 50px; + margin-left: 50px; +} + +span>b { + font-size: 56px; + font-family: BarlowCondensed-Bold; +} + +.loader-game { + width: 100%; + height: 256px; + border-radius: 24px; + overflow: hidden; + margin: 25px 0px; +} + +.games-page-item { + width: 100%; + height: 256px; + background: #202232; + border-radius: 24px; + overflow: hidden; + margin: 25px 0px; +} + +.games-page-item-header { + width: 100%; + height: 50%; + background-size: cover; + overflow: hidden; +} + +.games-page-item-header-img { + width: 100%; + height: 100%; + backdrop-filter: blur(4px); + filter: blur(4px); + background-size: cover; +} + +.games-page-item-header span>b { + display: flex; + justify-content: center; + align-items: center; + height: 100%; + transform: translateY(-100%); +} + +.games-page-item-body { + display: flex; + justify-content: center; + align-items: center; + height: 50%; +} + +.games-page-item-body-item { + background: #2B2E46; + text-align: center; + width: max-content; + width: calc(100% - 24px); + height: 100px; + border-radius: 24px; + color: #CDCFDF; + margin: 12px; +} + +.games-page-item-body-item-title { + margin-top: 0px; + font-size: 26px; +} + +.games-page-item-body-item-num { + font-size: 50px; + font-family: BarlowCondensed-Bold; +} \ 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 @@ +span>img { + scale: 1.1; + padding: 4px 0 0 8px; +} +.login>button>span{ + max-width: 22ch; + overflow: hidden; +} +.login>button:nth-child(2){ + position: relative; + left: 210px; + width: 50px !important; + + padding-left: 10px; + background-color: #00000000 !important; + /* transition: opacity .1s; */ +} + +.login{ + display: grid; + grid-template-columns: 50px auto 200px ; +} + +button:disabled { + display: none; +} \ 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 @@ +#background-image{ + z-index: -1; + position: absolute; + opacity: 10%; + height: 50%; + width: 100% +} +#background-image>img{ + object-fit: cover; + width: 100%; + height: 100%; +} +#background-image::before{ + content: ""; + position: absolute; + width: 100%; + height: 100%; + background: linear-gradient(to top, #161723, #0000); +} + +/* Section 1: map name*/ + +#section1{ + margin: 20px 0 0 0; + cursor: default; +} + +.nav-button{ + height: 40px; + background-color: #2b2e46; + + color: inherit; + font-size: 18px; + font-family: inherit; + border: none; + transition: background-color .1s; +} +/* #section1>div>.nav-button:nth-child(1){border-radius: 0px;}:nth-child(1){border-radius: 20px 0 0 20px;} +#section1>div>.nav-button:nth-child(2){border-radius: 0 20px 20px 0;margin-left: 2px;} */ +.nav-button>span{padding: 0 8px 0 8px;} +.nav-button:hover{background-color: #202232;cursor: pointer;} + +/* Section 2: navbar */ +#section2{ + margin: 40px 0 0 0; + + display: grid; gap: 2px; + grid-template-columns: 1fr 1fr 1fr; +} + +#section2>.nav-button{ + height: 50px; + font-size: 22px; + display: flex; + justify-content: center; + place-items: center; +} +#section2>.nav-button>img{scale: 1.2;} +#section2>.nav-button:nth-child(1){border-radius: 30px 0 0 30px;} +#section2>.nav-button:nth-child(3){border-radius: 0 30px 30px 0;} + + +/* Section 3: category + history */ + +#section3{ + margin: 40px 0 0 0; + + display: grid; + grid-template-columns: 1fr 1fr; + gap: 20px; +} + +#category{ + display: grid; + height: 350px; + border-radius: 24px; + overflow: hidden; + +} +#category>p{ + margin-bottom: 20px; + text-align: center; + font-size: 50px; + cursor: default; + color: white; +} + +p>span.portal-count{font-weight: bold;font-size: 100px;vertical-align: -15%;} + +#category-image{ + transform: translate(-20%, -15%); + z-index: -1; + overflow: hidden; + width: 125%; + margin: 22px; + filter: blur(4px) contrast(80%) brightness(80%); +} + +#category>span{ + margin-top: 70px; + background-color: #202232; + + display: grid; + grid-template-columns: 1fr 1fr 1fr 1fr; + gap: 2px; +} +#category>span>button{ + font-family: inherit; + font-size: 18px; + border: none; + height: 40px; + color: inherit; + + cursor: pointer; + transition: background-color .1s; +} + + + +#history>div>hr{border: 1px solid #2b2e46;margin: 8px 20px 0px 20px;} +#history{ + min-width: 560px; + background-color: #202232; + border-radius: 24px; + +} + +#records{overflow-y: auto; height: 256px;} +#records::-webkit-scrollbar{display: none;} + +.record-top, .record{ + font-size: 18px; + display: grid; + text-align: center; + grid-template-columns: 1fr 1fr 1fr; +} +.record-top{font-weight: bold;margin: 20px 20px 0 20px;cursor: default;} +.record{ + margin: 10px 20px 10px 20px; + height: 44px; width: calc(100% - 40px); + + color: inherit; + border-radius: 40px; + place-items: center; + + border: 0; + cursor: pointer; + transition: background-color .1s; +} +#history>span{ + border-top: #202232 solid 2px; + display: grid; + grid-template-columns: 1fr 1fr; +} +#history>span>button{ + width: 100%; height: 40px; + font-family: inherit; + font-size: 18px; + border: none; + color: inherit; + + cursor: pointer; + transition: background-color .1s; +} +#history>span>button:nth-child(1){border-radius: 0 0 0 24px;} +#history>span>button:nth-child(2){border-radius: 0 0 24px 0;} + +#graph{ + display: grid; + grid-template-columns: 20px 1fr; + grid-template-rows: 1fr 20px; + height: 293px; + + margin: 10px 10px 5px 10px; + overflow: hidden; +} +#graph>div:nth-child(1){ /* numbers */ + width: 20px; + display: grid; + place-items: center; + /* background-color: blue; */ +} +#graph>div:nth-child(1)>span{ + font-size: 12px; + line-height: 0; +} + +#graph>div:nth-child(2){ /* big graph */ + position: relative; + display: grid; +} +#graph>div:nth-child(2)>tr{ + display: flex; + align-items: center; + grid-template-columns: repeat(auto-fit, minmax(1px, 1fr)); +} +#graph>div:nth-child(2)>tr>td.graph_hor{ + width: 100%; + height: 0; + padding: 0; + + outline: 1px solid red; +} +#graph>div:nth-child(2)>tr>td.graph_ver{ + width: 0; + height: 100%; + padding: 0; + + outline: 1px solid blue; + transform: translateY(50%); + z-index: 0; + overflow: hidden; +} + +#graph>div:nth-child(3){ /* dates */ + padding-right: 20px; + z-index: 1; + height: 16px; + background-color: #202232; + grid-column: 1 /3; + font-size: 12px; + display: grid; + padding-top: 8px; + grid-template-columns: repeat(auto-fit, minmax(1px, 1fr)); +} + +.graph-button{ + position: absolute; + padding: 0; + border: 5px solid white; + border-radius: 20px; + cursor: pointer; + transform: translateX(-50%); +} + +#history>div>h5{text-align: center;height: 197px;} + + +/* Section 4: Difficulty + count */ + +#section4{ + display: grid; + grid-template-columns: 1fr 1fr; + gap: 20px; + margin: 40px 0 0 0; +} + +#difficulty, +#count { + background-color: #202232; + min-width: 250px; + text-align: center; + cursor: default; + + border-radius: 24px; + display: grid; + grid-template-rows: 20px 40px 40px; +} +#difficulty>span:nth-child(1), +#count>span:nth-child(1){ + padding-top:10px; + font-size: 18px; + color:#cdcfdf +} +#difficulty>span:nth-child(2){ + font-size: 40px; +} +#difficulty>div{ + display: grid; + grid-template-columns: 1fr 1fr 1fr 1fr 1fr; + padding: 0 calc(50% - 125px) 0 calc(50% - 125px); + place-items: center; +} + +.difficulty-rating{ + border-radius: 24px; + width: 40px; height: 3px; + background-color: #2b2e46; +} + +#count>div{ + padding-top:10px; + font-size: 50px; + color:white +} + +/* Section 5: route desc + video */ +#section5{ + margin: 40px 0 20px 0; + width: 100%; +} + +#description{ + width: 100%; height: auto; + min-height: 342px; +} + + + + +#description>iframe{ + margin: 4px; + float:right; + border: 0; + border-radius: 24px; + width: 608px; height: 342px; +} + +#description>h3{margin: 0 0 10px 0; color: white;} +#description-text{ + display: block; + font-size: 21px; + word-wrap: break-word; +} +#description-text>b{font-size: inherit;} +#description-text>a{font-size: inherit;color: #3c91e6;} + + +/* Section 6: leaderboards */ +#section6{ + margin: 40px 0 20px 0; + min-height: 600px; + background-color: #202232; + + border-radius: 24px; + padding: 10px 10px 0 10px; + +} + + +#section6>hr{border: 1px solid #2b2e46;margin: 8px 20px 0px 20px;} +#leaderboard-top{ + display: grid; + font-size: 20px; + height: 34px; + padding-left: 60px; + margin: 0 20px 0 20px; +} +#leaderboard-top>span{ + + display: flex; + place-items: flex-end; +} + +#runner{ + display: grid; + grid-template-columns: 50% 50%; + align-items: end; +} + +#page-number{ + display: flex; + width: auto; + flex-direction: row-reverse; +} +#page-number>div{ +width: 100px; +place-items: center; +display: grid; +grid-template-columns: 1fr 1fr 1fr; +text-align: center; +} +#page-number>div>button{ + width: 30px; + height: 30px; + background-color: #202232; + border: 0; + padding: 0; + cursor: pointer; +} + +.leaderboard-record{ + margin: 10px 20px 0px 20px; + height: 44px; width: calc(100% - 40px); + width: auto; + + color: inherit; + border-radius: 40px; + text-align: left; + padding: 0 0 0 60px; + font-size: 20px; + font-family: inherit; + + grid-template-columns: 3% 4.5% 40% 4% 3.5% 15% 15% 15%; + display: grid; + + border: 0; + transition: background-color .1s; + background-color: #2b2e46; +} + +.leaderboard-record>span:nth-child(1){display: grid;} +.leaderboard-record>span:nth-child(4){display: grid;} +.leaderboard-record>span:last-child{flex-direction: row-reverse;} +.leaderboard-record>span{ + display: flex; + place-items: center; + height: 44px; +} + +.leaderboard-record>div>span>img{ + height: 36px; + border-radius: 50px; + padding: 0; + scale: .95; +} +.leaderboard-record>div{ + display: grid; + grid-template-columns: 50% 50%; + place-items: left; +} +.leaderboard-record>div>span{ + display: flex; + place-items: center; + height: 44px; +} + +.leaderboard-record>span>button{ + background-color: #0000; + border: 0; + cursor: pointer; + transition: opacity 0.1s; +} + +.hover-popup { + position: relative; + display: inline-block; + } + + .hover-popup::after { + content: attr(popup-text); + position: absolute; + /* top: 0%; */ + /* left: 80%; */ + /* transform: translateX(-100%); */ + /* padding: 5px; */ + background-color: #2b2e46; + /* border: 1px solid #161723; */ + border-radius: 8px; + visibility: hidden; + opacity: 0; + color: #cdcfdf; + /* transition: visibility 0s, opacity 0.3s ease; */ + } + + .hover-popup:hover { + color: transparent; + } + + .hover-popup:hover::after { + visibility: visible; + opacity: 1; + } + +.leaderboard-record:last-child{margin: 10px 20px 10px 20px;} + + +#section7{ + margin: 40px 0 20px 0; + background-color: #202232; + border-radius: 24px; + padding: 10px; +} + +#discussion-search{ + height: 46px; + width: 100%; + display: grid; + grid-template-columns: 1fr 100px; + margin: 0 0 20px 0; +} +#discussion-search>input::placeholder{color: #aaa;} +#discussion-search>input{ + background-color: #2b2e46; + font-size: 20px; + padding-left: 10px; + color: white; + border: 0; + border-radius: 16px 0 0 16px; + font-family: inherit; +} +#discussion-search>div>button:hover{filter: brightness(75%);} +#discussion-search>div>button{ + padding: 7px 16px; + margin: 8px 0; + border: 0; + font-size: 16px; + border-radius: 24px; + display: block; + background-color:#3c91e6; + font-family: inherit; + font-weight: bold; + cursor: pointer; + color: white; + + transition: filter .2s; +} +#discussion-search>div{ + background-color: #2b2e46; + border-radius: 0 16px 16px 0; +} +#discussion-post>button:nth-child(1)>span>b{font-size: 18px;color:#cdcfdf;font-weight: lighter;} +#discussion-post>button:nth-child(1){ + background-color: #2b2e46; + display: grid; + grid-template-columns: minmax(0, 1fr) 150px; + + border-radius: 16px; + padding: 16px 12px; + margin: 8px 0 0 0; + border: 0; + width: 100%; height: 100px; + text-align: start; + white-space: nowrap; + color: #cdcfdf; + cursor: pointer; + overflow: hidden; +} +#discussion-post>button:nth-child(1)>span:nth-child(1){font-size: 32px;} +#discussion-post>button:nth-child(1)>span:nth-child(3){color: #aaa; font-size: 18px;} +#discussion-post>button:nth-child(1)>span:nth-child(4){ + opacity: .7; + height: 40px; + display: flex; + place-items: end; + justify-content: end; +} + +#discussion-post{height: 100px;} +#discussion-post>button>button:hover{filter: brightness(75%); } +#discussion-post>button>button{ + padding: 7px 16px; + + border: 0; + font-size: 16px; + border-radius: 24px; + background-color:#e52d04; + font-family: BarlowSemiCondensed-Regular; + font-weight: bold; + cursor: pointer; + color: white; + + transition: filter .2s; +} + + +#discussion-create>div{ + display: grid; + text-align: start; +} +#discussion-create{ + display: grid; + grid-template-columns: 1fr 40px; + height: auto; + word-wrap: break-word; +} + +#discussion-create>span{padding-left: 20px;} +#discussion-create>div>input::placeholder{color: #aaa;} +#discussion-create>div>input{ + background-color: #2b2e46; + font-size: 20px; + padding-left: 10px; + margin-top: 10px; + height: 32px; + color: white; + border: 0; + font-family: inherit; +} +#discussion-create>div>input:nth-child(2){font-size: 16px;} + +#discussion-create-button:hover{filter: brightness(75%);} +#discussion-create-button{ + padding: 7px 16px; + margin: 8px 0 0 0; + border: 0; + font-size: 16px; + border-radius: 24px; + + background-color:#3c91e6; + font-family: inherit; + font-weight: bold; + cursor: pointer; + color: white; + width: min-content; + grid-column: 1 / span 2; + + + transition: filter .2s; +} + + +#discussion-thread>div:nth-child(1){ + display: grid; + grid-template-columns: 1fr 40px; + height: auto; + padding: 0 0 10px 20px; + word-wrap: break-word; +} + +#discussion-create>button:nth-child(2), +#discussion-thread>div>button{ + height: 40px; + float:inline-end; + color:#cdcfdf; + background-color: #0000; + border: 0; + font-size: 38px; + cursor: pointer; +} + + +#discussion-thread>div:nth-child(2)>img{ + width: 60px; height: 60px; + border-radius: 100px; + margin: 20px 0 0 0; +} +#discussion-thread>div:nth-child(2)>div{ + height: max-content; + padding: 20px 0 0 10px; + display: inline-grid; + grid-template-columns: min-content 1fr ; + overflow: hidden; + +} +#discussion-thread>div:nth-child(2)>div>span:nth-child(1){font-weight: bold;height: 30px;} +#discussion-thread>div:nth-child(2)>div>span:nth-child(2){ + opacity: 0.6; + height: 30px; + font-size: 80%; + padding-left: 10px; +} +#discussion-thread>div:nth-child(2)>div>span:nth-child(3){ + grid-column: 1 / span 2; + height: max-content; + word-wrap: break-word; +} +#discussion-thread>div:nth-child(2){ + display: grid; + grid-template-columns: 60px 1fr; + font-size: 20px; + max-height: 522px; + overflow-y: auto; +} + + +#discussion-send{ + height: 48px; + width: 100%; + display: grid; + grid-template-columns: 1fr 80px; + margin: 10px 0 0 0; +} +#discussion-send>input::placeholder{color: #aaa;} +#discussion-send>input{ + background-color: #2b2e46; + padding-left: 10px; + color: white; + border: 0; + font-size: 20px; + border-radius: 16px 0 0 16px; + font-family: inherit; +} +#discussion-send>div{ + background-color: #2b2e46; + border-radius: 0 16px 16px 0; + +} +#discussion-send>div>button:hover{ filter: brightness(75%);} +#discussion-send>div>button{ + padding: 7px 20px; + margin: 8px 0; + font-size: 16px; + border: 0; + border-radius: 24px; + display: block; + background-color:#3c91e6; + font-family: inherit; + font-weight: bold; + cursor: pointer; + color: white; + + transition: filter .2s; +} + + + +.triangle{ + display: inline-block; + width: 8px; height: 0; + border-top: 7px solid transparent; + border-right: 8px solid #cdcfdf; + border-bottom: 7px solid transparent; +} + + /* such responsive, very mobile */ +@media screen and (max-width: 1480px) { + #section3.summary1{grid-template-columns: auto;} + #category{min-width: 608px;} + #history{min-width: 608px;} + #description{min-width: 608px;} + #section4.summary1{min-width: 588px;} + + #description>iframe{ + padding: 0 0 0 calc(50% - 304px); + float:none; + justify-content: center; + align-items: center; + } + + #section1.summary1{ + grid-template-columns: auto; + place-items: center; + text-align: center; + + } + + #section2.summary1{ + grid-template-columns: auto; + width: 450px; + margin: 40px auto 0 auto; + } + #section2.summary1>.nav-button:nth-child(1){border-radius: 30px 30px 0 0;} + #section2.summary1>.nav-button:nth-child(2){border-radius: 0;} + #section2.summary1>.nav-button:nth-child(3){border-radius: 0 0 30px 30px;} +} \ 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 @@ +div#modview{ + position: absolute; + left: 50%; + z-index: 20; + width: 320px; height: auto; + /* background-color: red; */ + + transform: translateY(-68%); +} +div#modview>div>button{ + height: 30px; +} + +div#modview>div:nth-child(1){ + display: grid; + grid-template-columns: 50% 50%; +} + +div#modview>div:nth-child(2){ + display: grid; + place-items: center; +} + +#modview-menu{ + position: absolute; + left: calc(50% + 160px); top: 130px; + transform: translateX(-50%); + background-color: #2b2e46; + z-index: 2; color: white; +} + +#modview-menu-image{ + box-shadow: 0 0 40px 16px black; + outline: 8px solid #2b2e46; + border-radius: 20px; + font-size: 40px; + display: grid; + grid-template-columns: 50% 50%; + /* place-items: center; */ + +} +#modview-menu-image>div:nth-child(1){ + height: 400px; width: 500px; + display: grid; + grid-template-rows: 30% 70%; +} +#modview-menu-image>div:nth-child(2){ + height: 400px; width: 500px; + display: grid; + grid-template-rows: 20% 10%; +} + +#modview-menu-image>div>button{width: 300px;margin-left:100px;} +#modview-menu-image>div>img{width: 500px;} +#modview-menu-image>div>button{font-size: 20px;} +#modview-menu-image>div>span>input[type="file"]{font-size: 15px;} + + +#modview-menu-add, +#modview-menu-edit{ + box-shadow: 0 0 40px 16px black; + outline: 8px solid #2b2e46; + border-radius: 20px; + font-size: 40px; + display: grid; + grid-template-columns: 20% 20% 20% 20% 20%; +} + +#modview-menu-add>div, +#modview-menu-edit>div{ + display: grid; + margin: 20px; + width: 200px; + font-size: 20px; +} +#modview-route-description>textarea{ + resize: none; + height: 160px; + width: 1160px; +} +#modview-route-showcase>input::placeholder{opacity: .5;} +#modview_block{ + position: absolute; + background-color: black; + opacity: .3; + left: 320px; + width: calc(100% - 320px); + height: 100%; + z-index: 2; + cursor: no-drop; +} +#modview-md{ + box-shadow: 0 0 40px 16px black; + background-color: #2b2e46; + outline: 8px solid #2b2e46; + + border-radius: 20px; + position: absolute; + padding: 10px; top: 400px; + width: 1180px; height: 300px; + overflow-y: auto; + word-wrap: break-word; +} +#modview-md>span>a{ + padding-left: 20px; + color:aqua; +} +#modview-md>p{ + font-family: BarlowSemiCondensed-Regular; + color: #cdcfdf; + font-size: 21px; +} \ 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 @@ +#section1.profile{ + margin: 20px; + background: linear-gradient(0deg, #202232 50%, #2b2e46 50%); + border-radius: 24px; + height: 200px; + + display: grid; + grid-template-columns: 250px 1fr; + +} +#section1.profile>div:first-child{ + overflow: hidden; + border-radius: 100%; + display: grid; + + place-items: center; + + margin: 8px 33px 8px 33px; + scale: 0.9; + grid-row: 1 / 3; + + +} +#profile-image>img{ + border-radius: 100%; + transition: filter 0.3s; + cursor: pointer; +} + +#profile-image>span{ + z-index: 1; + position: absolute; + opacity: 0; + color:white; + transition: opacity 0.3s; + cursor: pointer; +} + +#profile-image:hover > img{filter: blur(5px) brightness(60%);z-index: 1;} +#profile-image:hover > span{opacity: 1;} + +#profile-top{ + height: 100px; + display: grid; + grid-template-columns: 80% 20%; +} +#profile-top>div:nth-child(1)>div>img{ + margin: 12px; + border-radius: 10px; +} + +#profile-top>div:nth-child(1){ + display: flex; + place-items: center; + font-size: 50px; + font-weight: bold; + color: white; +} +#profile-top>div:nth-child(1)>div{ + display: flex; + height: 60px; +} +span.titles{ + margin: 12px 12px 12px 0; + + font-size: 18px; + font-weight: 100; + + padding: 6px 20px 0px 20px; + border-radius: 10px; +} + +#profile-top>div:nth-child(2){ + display: flex; + flex-direction: row-reverse; + align-items: center; + padding-right: 10px; +} +#profile-top>div:nth-child(2)>a>img{ + height: 50px; + padding: 0 5px 0 5px; + scale: 0.9; + filter: brightness(200%); + +} + + +#profile-bottom{ + height: 100px; + display: grid; + grid-template-columns: 1fr 1fr 1fr; +} +#profile-bottom>div{ + margin: 12px; + background-color: #2b2e46; + border-radius: 20px; + display: grid; + place-items: center; + grid-template-rows: 40% 50%; +} +#profile-bottom>div>span:nth-child(1){ + color: inherit; + font-size: 18px; +} +#profile-bottom>div>span:nth-child(2){ + color: white; + font-size: 40px; +} +#profile-bottom>div>span:nth-child(2)>span{ + color: white; + font-size: 20px; +} +/* #section1.profile>div>div{outline: red 1px dashed;} */ + + +#section2.profile{ + margin: 20px; + height: 60px; + display: grid; + grid-template-columns: 1fr 1fr; +} +#section2.profile>button{ + display: flex; + justify-content: center; + align-items: center; + + background-color: #2b2e46; + border: 0; + color: inherit; + font-family: inherit; + font-size: 24px; + cursor: pointer; + + transition: background-color .1s; +} +#section2.profile>button:nth-child(1){border-radius: 24px 0 0 24px;} +#section2.profile>button:nth-child(2){border-radius: 0 24px 24px 0;} + +#section3.profile1>hr{border: 1px solid #2b2e46;margin: 8px 20px 0px 20px;} +#section3.profile1{ + margin: 20px; + display: block; + + background-color: #202232; + border-radius: 24px; +} + +#profileboard-nav{ + display: grid; + grid-template-columns: 1fr 1fr; +} + +#profileboard-nav>select{ + + /* appearance: none; */ + margin: 10px 20px 20px 20px; + height: 50px; + + border-radius: 24px; + text-align: center; + + color: inherit; + font-family: inherit; + font-size: 24px; + border: 0; + + background-color: #2b2e46; +} + + +#profileboard-top>span>img{height: 20px;scale: .8;} +#profileboard-top>span>img,#profileboard-top>span>span{cursor: pointer;} +#profileboard-top{ + height: 34px; + display: grid; + font-size: 20px; + padding-left: 40px; + margin: 0 20px; + grid-template-columns: 15% 15% 5% 15% 5% 15% 15% 15%; +} + +#profileboard-top>span{ + display: flex; + place-items: flex-end; +} + +#profileboard-records{ + padding-bottom: 10px; +} + +.profileboard-record{ + width: calc(100% - 40px); + margin: 10px 20px 0px 20px; + height: 44px; + + border-radius: 20px; + padding: 0 0 0 40px; + font-size: 20px; + + color: inherit; + font-family: inherit; + border: 0; + transition: background-color .1s; + background-color: #2b2e46; + display: grid; + grid-template-columns: 15% 15% 5% 15% 5% 15% 15% 15%; + overflow: hidden; + white-space: nowrap; + + transition: height .2s +} + +/* this right here should be illegal */ +.profileboard-record>span:nth-child(-n+8){filter: brightness(100%);} +.profileboard-record>span{ + display: flex; + place-items: flex-end; + filter: brightness(65%); +} + +.profileboard-record>hr{ + margin: 0 0 0 -60px; + border: 0; + height: 2px; + background-color: #202232; +} + +.profileboard-record>span:nth-child(4){display: grid;} +.profileboard-record>span{ + + display: flex; + place-items: center; + height: 44px; +} +.profileboard-record>span>button{ + background-color: #0000; + border: 0; + cursor: pointer; +} 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 @@ +#sidebar { + overflow: hidden; + position: absolute; + background-color: #2b2e46; + width: 320px; height: 100vh; + min-height: 670px; + +} + + /* logo */ +#logo{ + display: grid; + grid-template-columns: 60px 200px; + + + height: 80px; + padding: 20px 0 20px 30px; + cursor: pointer; + user-select: none; +} + +#logo-text{ + font-family: BarlowCondensed-Regular; + font-size: 42px; + color: #FFF; + line-height: 38px; +} +span>b{ + font-family: BarlowCondensed-Bold; + font-size: 56px; +} + + /* Sidelist */ +#sidebar-list{ + z-index: 2; + background-color: #2b2e46; + position: relative; + height: calc(100vh - 120px); + width: 320px; + /* min-height: 670px; */ + transition: width .3s; +} +#sidebar-toplist>button:nth-child(1){margin-top: 5px;} +#sidebar-toplist{ + display: grid; + + margin: 0 5px 0 5px; + justify-items: left; + height: 400px; + grid-template-rows: 45px 50px 50px 50px 50px 50px 50px 50px auto; +} + +#sidebar-bottomlist{ + display: grid; + + margin: 0 5px 0 5px; + justify-items: left; + grid-template-rows: calc(100vh - 670px) 50px 50px 50px; +} +.sidebar-button>span{ + font-family: BarlowSemiCondensed-Regular; + font-size: 18px; + color: #CDCFDF; + height: 32px; + line-height: 28px; + transition: opacity .1s; +} +.sidebar-button{ + display: grid; + grid-template-columns: 50px auto; + place-items: left; + text-align: left; + + background-color: inherit; + cursor: pointer; + border: none; + width: 310px; + height: 40px; + border-radius: 20px; + padding: 0.4em 0 0 11px; + + transition: + width .3s, + background-color .15s, + padding .3s; +} + +.sidebar-button-selected { + background-color: #202232; +} + +.sidebar-button-deselected { + background-color: #20223200; +} + +.sidebar-button-deselected:hover { + background-color: #202232aa; +} + +button>img { + scale: 1.1; + width: 20px; + padding: 5px; +} + + /* Maplist */ +#sidebar>div:nth-child(3){ + position: relative; + background-color: #202232; + color: #424562; + z-index: 1; + + left: 52px; + top: calc(-100vh + 120px); + width: 268px; height: calc(100vh - 120px); + min-height: 550px; +} +input#searchbar[type=text]{ + margin: 10px 0 0 6px; + padding: 1px 0px 1px 16px; + width: 240px; + height: 30px; + + font-family: BarlowSemiCondensed-Regular; + font-size: 20px; + + background-color: #161723; + color:#CDCFDF; + + border: 0; + border-radius: 20px; + +} +input[type=text]::placeholder{color:#2b2e46} +input[type=text]:focus{outline: inherit;} +a{text-decoration: none;height: 40px;} + + +#search-data{ + margin: 8px 0 8px 0; + overflow-y: auto; + max-height: calc(100vh - 172px); + scrollbar-width: thin; +} +#search-data::-webkit-scrollbar{display: none;} +.search-map{ + margin: 10px 6px 0 6px; + height: 80px; + + border-radius: 20px; + text-align: center; + + display: grid; + + border: 0; + transition: background-color .1s; + background-color: #2b2e46; + grid-template-rows: 20% 20% 60%; + width: calc(100% - 15px); +} +.search-map>span{ + color: #888; + font-size: 16px; + font-family: BarlowSemiCondensed-Regular; +} +.search-map>span:nth-child(3){ + font-size: 30px; + color: #CDCFDF; +} + +.search-player{ + overflow: hidden; + margin: 10px 6px 0 6px; + height: 80px; + + border-radius: 20px; + text-align: center; + color: #CDCFDF; + font-family: BarlowSemiCondensed-Regular; + + display: grid; + place-items: center; + grid-template-columns: 20% 80%; + padding: 0 16px 0 16px; + + border: 0; + transition: background-color .1s; + background-color: #2b2e46; +} +.search-player>img{ + height: 60px; + border-radius: 20px; +} +.search-player>span{ + width:154px; + font-size: 26px; +} + + + + + + + + + + + -- cgit v1.2.3