From 11aab9281bb6a81a223c2de54044ef9e1c3ead84 Mon Sep 17 00:00:00 2001 From: anulax1225 Date: Fri, 15 Dec 2023 01:51:13 +0100 Subject: [PATCH] Adding new features --- css/style.css | 75 +++++++++++++++++++ html/template.html | 20 ++--- .../ships/ship.js => html/templates/home.html | 0 html/templates/test.html | 2 - html/templates/test2.html | 2 - js/api/{agent => }/agent.js | 6 +- js/api/{ships/ship_crew.js => planet.js} | 0 js/api/{ships/ship_engine.js => ship.js} | 0 js/api/{ships/ship_movement.js => system.js} | 0 js/auth/auth.js | 66 ++++++++++++++++ js/auth/login.js | 0 js/auth/register.js | 0 js/commun.js | 0 js/commun/strategie.js | 49 ++++++++++++ js/index.js | 12 +-- js/{api/systems/get_systems.js => ui/Menu.js} | 0 .../get_waypoints_system.js => ui/Modal.js} | 0 17 files changed, 206 insertions(+), 26 deletions(-) rename js/api/ships/ship.js => html/templates/home.html (100%) delete mode 100644 html/templates/test.html delete mode 100644 html/templates/test2.html rename js/api/{agent => }/agent.js (95%) rename js/api/{ships/ship_crew.js => planet.js} (100%) rename js/api/{ships/ship_engine.js => ship.js} (100%) rename js/api/{ships/ship_movement.js => system.js} (100%) create mode 100644 js/auth/auth.js delete mode 100644 js/auth/login.js delete mode 100644 js/auth/register.js delete mode 100644 js/commun.js create mode 100644 js/commun/strategie.js rename js/{api/systems/get_systems.js => ui/Menu.js} (100%) rename js/{api/systems/get_waypoints_system.js => ui/Modal.js} (100%) diff --git a/css/style.css b/css/style.css index e69de29..0fa94e7 100644 --- a/css/style.css +++ b/css/style.css @@ -0,0 +1,75 @@ +:root { + --main-back-color: rgb(143, 143, 143); + --second-back-color: black; +} + +@font-face { + font-family: M42; + src: url("/assets/fonts/m42.TTF"); +} + +* { + box-sizing: border-box; +} + +body { + background-color: var(--main-back-color); + font-family: 'M42'; + font-size: 7px; + margin: 0px; + padding: 0px; +} + +/*footer*/ +footer { + position: fixed; + width: 100%; + bottom: 0; + display: flex; + justify-content: center; + background-color: var(--second-back-color); + color: white; +} + +/*nav bar*/ +.nav-nav { + --nav-img-width: 100px; + background-color: var(--second-back-color); + display: flex; + justify-content: space-between; + align-items: center; +} +.nav-nav .nav-brand { + display: flex; + justify-content: center; + align-items: center; +} +.nav-nav .nav-brand img { + width: var(--nav-img-width); +} + +.nav-nav .nav-links { + --links-color: rgb(0,0,0); + --links-backcolor: rgb(255, 123, 71); + --links-border-color: rgb(255, 173, 118); + height: 70%; + display: flex; + justify-content: space-between; +} + +.smooth { + padding: 5px; + border-radius: 10px; +} + +.nav-link { + margin-right: 10px; + background-color: var(--links-backcolor); + color: var(--links-color); + border: 4px solid var(--links-border-color); + list-style: none; + display: flex; + justify-content: center; + align-items: center; + box-shadow: 3px 2px white; +} \ No newline at end of file diff --git a/html/template.html b/html/template.html index 6d4fdca..1dd5c17 100644 --- a/html/template.html +++ b/html/template.html @@ -1,14 +1,16 @@ -