From 124c362f7671cdfae0a4af0e6a65f5d6d299e223 Mon Sep 17 00:00:00 2001 From: TheIndra55 Date: Thu, 30 May 2024 00:36:59 +0200 Subject: [PATCH 1/2] Make dashboard more responsive --- assets/js/main.js | 1 + views/base.html.twig | 2 ++ views/dashboard/index.html.twig | 4 ++-- vite.config.js | 1 + 4 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 assets/js/main.js diff --git a/assets/js/main.js b/assets/js/main.js new file mode 100644 index 0000000..20b1109 --- /dev/null +++ b/assets/js/main.js @@ -0,0 +1 @@ +import "bootstrap/dist/js/bootstrap.bundle" \ No newline at end of file diff --git a/views/base.html.twig b/views/base.html.twig index 9f42ce1..be58869 100644 --- a/views/base.html.twig +++ b/views/base.html.twig @@ -13,5 +13,7 @@ {% block body %}{% endblock %} {% block script %}{% endblock %} + + \ No newline at end of file diff --git a/views/dashboard/index.html.twig b/views/dashboard/index.html.twig index 33f2cb3..02ae80a 100644 --- a/views/dashboard/index.html.twig +++ b/views/dashboard/index.html.twig @@ -25,7 +25,7 @@
-
+
Pages
@@ -35,7 +35,7 @@
-
+
Referrers
diff --git a/vite.config.js b/vite.config.js index 1cfaffe..e867180 100644 --- a/vite.config.js +++ b/vite.config.js @@ -12,6 +12,7 @@ export default defineConfig({ rollupOptions: { input: { css: "assets/css/app.scss", + main: "assets/js/main.js", graphs: "assets/js/graphs.js" } } From 481cde055e1f7033a3d1a8e55759daca99a02e99 Mon Sep 17 00:00:00 2001 From: TheIndra55 Date: Thu, 30 May 2024 23:12:58 +0200 Subject: [PATCH 2/2] Make login page responsive --- assets/css/_login.scss | 12 ++++++++++-- views/login/login.html.twig | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/assets/css/_login.scss b/assets/css/_login.scss index fdc6e14..5a7d13a 100644 --- a/assets/css/_login.scss +++ b/assets/css/_login.scss @@ -2,8 +2,16 @@ height: 90vh; } -.login .form-group { - width: 25vh; +@media (min-width: 540px) { + .login .form-group { + width: 250px; + } +} + +@media (max-width: 540px) { + .login .form-group { + width: 100%; + } } .login input[type=submit] { diff --git a/views/login/login.html.twig b/views/login/login.html.twig index 90720a6..20cf63d 100644 --- a/views/login/login.html.twig +++ b/views/login/login.html.twig @@ -7,7 +7,7 @@
{{ error }}
{% endif %} -