From 161b47f0b8676f60b18baf3c764ecd89ae82585b Mon Sep 17 00:00:00 2001 From: AmorimDSJM Date: Fri, 26 Jan 2024 12:09:49 +0100 Subject: [PATCH] Implemented new code (SkamaCode) and almost finished fixing differences --- LICENSE | 2 +- README.md | 6 +- css/leaderboard.css | 140 +++++++++++++++++++++++++++ html/template.html | 5 +- html/templates/auth/login_modal.html | 4 +- html/templates/auth/reg_modal.html | 4 +- html/templates/home.html | 6 +- html/templates/leaderboard.html | 22 +++++ index.html | 30 +++--- js/controllers/leaderboard.js | 60 ++++++++++++ js/controllers/menu_mod.js | 6 +- js/skama_code | 2 +- 12 files changed, 259 insertions(+), 28 deletions(-) create mode 100644 css/leaderboard.css create mode 100644 html/templates/leaderboard.html create mode 100644 js/controllers/leaderboard.js diff --git a/LICENSE b/LICENSE index d85088f..15578b2 100644 --- a/LICENSE +++ b/LICENSE @@ -1,2 +1,2 @@ DO NOT USE THIS CODE OR LOOK AT IT IF YOU ARE NOT ALLOWED TO -IF YOU DO YOU CAN USE OR TEACH THE KNOWLEAGE YOU ACQUEIRED. +IF YOU DO YOU CAN USE OR TEACH THE KNOWLEDGE YOU ACQUIRED. diff --git a/README.md b/README.md index 5f624a3..fdb7ee6 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Skamcraft ## Start -* Start with live server in VsCode to get full functionnality. +* Start with Live Server in VSCode to get full functionnality. * Start with php : ``` bash cd /.../Skamcraft @@ -10,6 +10,6 @@ ## Norm * ``` ; ``` at the end of each line. -* snack_case for functions and variables. +* snake_case for functions and variables. * UpperCamelCase for Classes. -* all in english. +* Whole project in English. diff --git a/css/leaderboard.css b/css/leaderboard.css new file mode 100644 index 0000000..207c166 --- /dev/null +++ b/css/leaderboard.css @@ -0,0 +1,140 @@ +* { + font-family: M42; + font-size: 10px; +} + +.deploy-bar { + display: flex; + flex-direction: column; + width: 100%; + margin: auto; + margin-top: 40px; +} + +.btn-deploy { + margin: auto; + color: white; + background-color: black; + border-radius: 10px 10px 0px 0px; + width: 70%; +} + +.container-ldb { + margin: auto; + width: 100%; +} + +.head-board { + display: flex; + margin: auto; + justify-content: space-between; + width: 70%; + border: 0px solid black; + border-top-color: white; + border-bottom-color: white; + border-bottom-width: 1px; + + background-color: black; + +} + +.leaderboard { + display: flex; + margin: auto; + align-items: center; + flex-direction: column; + width: 70%; + height: 50vh; + overflow-y: scroll; + overflow-x: visible; + + background-color: black; + scrollbar-width: none; + /* Firefox */ + -ms-overflow-style: none; +} + +.leaderboard::-webkit-scrollbar { + width: 0 !important +} + +article { + width: 100%; + display: flex; + justify-content: space-between; + border-bottom: 1px solid rgb(255, 255, 255); +} + +p { + padding: 5px; + text-align: start; +} + +.num { + font-size: larger; + color: rgb(255, 255, 255); +} + +.faction { + color: rgb(0, 255, 115); +} + +.headquarters { + color: rgb(86, 187, 255); +} + +.symbol { + color: red; + text-decoration: underline; +} + +.credits { + color: rgb(250, 204, 88); +} + +.ships { + color: rgb(146, 146, 146); +} + +.btn-cont { + margin: auto; + display: flex; + justify-content: space-between; + width: 70%; +} + +button:hover { + transition: ease-in-out; + color: black; + transition-duration: 0.3s; + background-color: white; +} + +button { + padding: 15px; +} + +.btn-cred { + background-color: black; + color: rgb(250, 204, 88); + width: 50%; + font-size: 11px; + border-left-color: black; + border: 3px none none 3px; + border-bottom: none; + border-top-color: white; + border-radius: 0px 0px 0px 10px; +} + +.btn-ship { + background-color: black; + color: rgb(86, 187, 255); + width: 50%; + font-size: 11px; + border: 3px none none 3px; + border-bottom: none; + border-right-color: white; + border-left-color: black; + border-top-color: white; + border-radius: 0px 0px 10px 0px; +} \ No newline at end of file diff --git a/html/template.html b/html/template.html index 9821bca..0ce8229 100644 --- a/html/template.html +++ b/html/template.html @@ -5,6 +5,7 @@