From 8b6c46e8088977b27a33aa28623f2ce05e996664 Mon Sep 17 00:00:00 2001 From: Neffi42 <114996380+Neffi42@users.noreply.github.com> Date: Thu, 29 Aug 2024 22:56:23 +0200 Subject: [PATCH 1/9] updated sidebar and page elements css --- nginx/src/css/styles.css | 91 +++++++++++++++++++++++++--------------- 1 file changed, 57 insertions(+), 34 deletions(-) diff --git a/nginx/src/css/styles.css b/nginx/src/css/styles.css index 8a99baf8..88783612 100644 --- a/nginx/src/css/styles.css +++ b/nginx/src/css/styles.css @@ -1,52 +1,79 @@ -#wrapper { - width: 100%; +/* General */ +html { + box-sizing: border-box; + font-size: 100%; height: 100%; - display: flex; - align-items: stretch; + scroll-behavior: smooth; } -#sidebar-wrapper { - height: 100vh; - min-width: 250px; - max-width: 250px; - transition: all 0.3s ease; - text-align: center; +*, *::before, *::after { + box-sizing: inherit; } -.sidebar-heading { - padding: 1rem; - font-size: 1.5rem; - text-align: center; +body { + min-height: 100%; + line-height: 1.5; + margin: 0; + padding: 0; + font-family: 'Arial', sans-serif; + background-color: #f5f5f5; + color: #333; } .list-group-item { - padding: 1rem 1.5rem; + padding: 10px; + cursor: pointer; text-align: center; } -#wrapper.toggled #sidebar-wrapper { - margin-left: -250px; +.list-group-item.active { + background-color: #007bff; + color: white; } -#menu-toggle { - margin: 5px; +/* Page Content */ +#page-container-wrapper { + position: relative; } -#page-content-wrapper { - width: 100%; - padding: 15px; +/* Sidebar Toggle */ +#sidebar-toggle { + position: fixed; + top: 1rem; + left: 1rem; + font-size: 20px; + z-index: 1050; + transition: all 0.3s ease; } -.container-fluid.center-content { - height: 100%; - display: flex; - justify-content: center; - align-items: center; +#sidebar-toggle.toggled { + margin-left: 250px; } -#gameSelection { - display: block; - margin-block: 5px; +/* Sidebar */ +#sidebar-wrapper { + position: fixed; + top: 0; + left: 0; + height: 100vh; + width: 250px; + border-radius: 0 5px 5px 0; + transition: all 0.3s ease; + z-index: 1000; + text-align: center; +} + +#sidebar-wrapper.toggled { + margin-left: -250px; +} + +#sidebar-wrapper .sidebar-heading { + padding: 1rem; + font-size: 1.5rem; +} + +#sidebar-wrapper .list-group-item { + padding: 1rem 1.5rem; } #game { @@ -58,7 +85,3 @@ background-color: black; border: 3px solid lightskyblue; } - -.gameBtn { - margin: 5px; -} From 19b69cc7ef2df41a5145269ae5dbb82deb896ccf Mon Sep 17 00:00:00 2001 From: Neffi42 <114996380+Neffi42@users.noreply.github.com> Date: Thu, 29 Aug 2024 22:56:44 +0200 Subject: [PATCH 2/9] updated index template --- django/src/pages/templates/index.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/django/src/pages/templates/index.html b/django/src/pages/templates/index.html index a09b5e33..5080b39e 100644 --- a/django/src/pages/templates/index.html +++ b/django/src/pages/templates/index.html @@ -1,3 +1,5 @@ -
-

This is Index

+
+
+

This is Index

+
From e9144189514ce6c7f5c3c95ed19954d98ad23962 Mon Sep 17 00:00:00 2001 From: Neffi42 <114996380+Neffi42@users.noreply.github.com> Date: Thu, 29 Aug 2024 22:57:01 +0200 Subject: [PATCH 3/9] updated 404 template --- django/src/pages/templates/404.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/django/src/pages/templates/404.html b/django/src/pages/templates/404.html index 13422ff2..3d66c322 100644 --- a/django/src/pages/templates/404.html +++ b/django/src/pages/templates/404.html @@ -1 +1,5 @@ -

Page not found

+
+
+

Page not found

+
+
From b6c2d7d9c5d1cc309006871e31c15dfb7bac89ff Mon Sep 17 00:00:00 2001 From: Neffi42 <114996380+Neffi42@users.noreply.github.com> Date: Thu, 29 Aug 2024 23:02:22 +0200 Subject: [PATCH 4/9] updated games template --- django/src/pages/templates/games.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/django/src/pages/templates/games.html b/django/src/pages/templates/games.html index 4ef63820..3fe7373a 100644 --- a/django/src/pages/templates/games.html +++ b/django/src/pages/templates/games.html @@ -1,11 +1,11 @@ -
- - +
+ +
- -
+ +
-
+
From 3238161507de6d0605d7f280426dd6967cf4f0bb Mon Sep 17 00:00:00 2001 From: Neffi42 <114996380+Neffi42@users.noreply.github.com> Date: Thu, 29 Aug 2024 23:02:49 +0200 Subject: [PATCH 5/9] updated index page --- nginx/src/index.html | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/nginx/src/index.html b/nginx/src/index.html index 0d29f436..9c5a7356 100644 --- a/nginx/src/index.html +++ b/nginx/src/index.html @@ -12,18 +12,18 @@ -
-