From fa84404852cae57c276218d2cf372ad5a213a2c9 Mon Sep 17 00:00:00 2001 From: Thomas Rubini <74205383+ThomasRubini@users.noreply.github.com> Date: Thu, 1 Dec 2022 11:58:04 +0100 Subject: [PATCH] refactor client code to be used with the server --- client/index.html | 50 ---------------- .../ui => truthseeker/static/css}/game_ui.css | 0 .../static/css}/game_ui_start.css | 2 +- .../fonts/spicy_rice_v21/spicy_rice_v21.ttf | Bin .../fonts/spicy_rice_v21/spicy_rice_v21.woff | Bin .../fonts/spicy_rice_v21/spicy_rice_v21.woff2 | Bin .../fonts/titan_one_v13/titan_one_v13.ttf | Bin .../fonts/titan_one_v13/titan_one_v13.woff | Bin .../fonts/titan_one_v13/titan_one_v13.woff2 | Bin .../ui => truthseeker/static/images}/moon.svg | 0 .../static}/images/start_background.png | Bin .../ui => truthseeker/static/images}/sun.svg | 0 .../static/js}/game_common.js | 0 truthseeker/templates/index.html | 55 ++++++++++++++++-- 14 files changed, 51 insertions(+), 56 deletions(-) delete mode 100644 client/index.html rename {client/res/ui => truthseeker/static/css}/game_ui.css (100%) rename {client/res/ui/start => truthseeker/static/css}/game_ui_start.css (96%) rename {client/res => truthseeker/static}/fonts/spicy_rice_v21/spicy_rice_v21.ttf (100%) rename {client/res => truthseeker/static}/fonts/spicy_rice_v21/spicy_rice_v21.woff (100%) rename {client/res => truthseeker/static}/fonts/spicy_rice_v21/spicy_rice_v21.woff2 (100%) rename {client/res => truthseeker/static}/fonts/titan_one_v13/titan_one_v13.ttf (100%) rename {client/res => truthseeker/static}/fonts/titan_one_v13/titan_one_v13.woff (100%) rename {client/res => truthseeker/static}/fonts/titan_one_v13/titan_one_v13.woff2 (100%) rename {client/res/ui => truthseeker/static/images}/moon.svg (100%) rename {client/res => truthseeker/static}/images/start_background.png (100%) rename {client/res/ui => truthseeker/static/images}/sun.svg (100%) rename {client/res/core => truthseeker/static/js}/game_common.js (100%) diff --git a/client/index.html b/client/index.html deleted file mode 100644 index e4290c8..0000000 --- a/client/index.html +++ /dev/null @@ -1,50 +0,0 @@ - - - - Truth Inquiry - - - - - - - -
-
-
- -
-
-

Thruth Inquiry

- -
-
-
-
-

Navigateur non supporté

-

-
-
- - - - - diff --git a/client/res/ui/game_ui.css b/truthseeker/static/css/game_ui.css similarity index 100% rename from client/res/ui/game_ui.css rename to truthseeker/static/css/game_ui.css diff --git a/client/res/ui/start/game_ui_start.css b/truthseeker/static/css/game_ui_start.css similarity index 96% rename from client/res/ui/start/game_ui_start.css rename to truthseeker/static/css/game_ui_start.css index 69f67cb..fb6e398 100644 --- a/client/res/ui/start/game_ui_start.css +++ b/truthseeker/static/css/game_ui_start.css @@ -6,7 +6,7 @@ .game_begin { align-items: center; border-radius: 1.5em; - background-image: url("../../images/start_background.png"); + background-image: url("../images/start_background.png"); background-position: center; background-repeat: no-repeat; background-size: cover; diff --git a/client/res/fonts/spicy_rice_v21/spicy_rice_v21.ttf b/truthseeker/static/fonts/spicy_rice_v21/spicy_rice_v21.ttf similarity index 100% rename from client/res/fonts/spicy_rice_v21/spicy_rice_v21.ttf rename to truthseeker/static/fonts/spicy_rice_v21/spicy_rice_v21.ttf diff --git a/client/res/fonts/spicy_rice_v21/spicy_rice_v21.woff b/truthseeker/static/fonts/spicy_rice_v21/spicy_rice_v21.woff similarity index 100% rename from client/res/fonts/spicy_rice_v21/spicy_rice_v21.woff rename to truthseeker/static/fonts/spicy_rice_v21/spicy_rice_v21.woff diff --git a/client/res/fonts/spicy_rice_v21/spicy_rice_v21.woff2 b/truthseeker/static/fonts/spicy_rice_v21/spicy_rice_v21.woff2 similarity index 100% rename from client/res/fonts/spicy_rice_v21/spicy_rice_v21.woff2 rename to truthseeker/static/fonts/spicy_rice_v21/spicy_rice_v21.woff2 diff --git a/client/res/fonts/titan_one_v13/titan_one_v13.ttf b/truthseeker/static/fonts/titan_one_v13/titan_one_v13.ttf similarity index 100% rename from client/res/fonts/titan_one_v13/titan_one_v13.ttf rename to truthseeker/static/fonts/titan_one_v13/titan_one_v13.ttf diff --git a/client/res/fonts/titan_one_v13/titan_one_v13.woff b/truthseeker/static/fonts/titan_one_v13/titan_one_v13.woff similarity index 100% rename from client/res/fonts/titan_one_v13/titan_one_v13.woff rename to truthseeker/static/fonts/titan_one_v13/titan_one_v13.woff diff --git a/client/res/fonts/titan_one_v13/titan_one_v13.woff2 b/truthseeker/static/fonts/titan_one_v13/titan_one_v13.woff2 similarity index 100% rename from client/res/fonts/titan_one_v13/titan_one_v13.woff2 rename to truthseeker/static/fonts/titan_one_v13/titan_one_v13.woff2 diff --git a/client/res/ui/moon.svg b/truthseeker/static/images/moon.svg similarity index 100% rename from client/res/ui/moon.svg rename to truthseeker/static/images/moon.svg diff --git a/client/res/images/start_background.png b/truthseeker/static/images/start_background.png similarity index 100% rename from client/res/images/start_background.png rename to truthseeker/static/images/start_background.png diff --git a/client/res/ui/sun.svg b/truthseeker/static/images/sun.svg similarity index 100% rename from client/res/ui/sun.svg rename to truthseeker/static/images/sun.svg diff --git a/client/res/core/game_common.js b/truthseeker/static/js/game_common.js similarity index 100% rename from client/res/core/game_common.js rename to truthseeker/static/js/game_common.js diff --git a/truthseeker/templates/index.html b/truthseeker/templates/index.html index a18b4ca..961add6 100644 --- a/truthseeker/templates/index.html +++ b/truthseeker/templates/index.html @@ -1,5 +1,50 @@ -index.html template -
-Go to a lobby -
-Go to a solo game \ No newline at end of file + + + + Truth Inquiry + + + + + + + +
+
+
+ +
+
+

Thruth Inquiry

+ +
+
+
+
+

Navigateur non supporté

+

+
+
+ + + + +