From 0573ba7b5abf89ede5dadeaa5cc4f715a9042838 Mon Sep 17 00:00:00 2001 From: bunkerity Date: Mon, 9 Aug 2021 17:10:26 +0200 Subject: [PATCH] ui - centering things without breaking sticky navbar and menu --- examples/web-ui/docker-compose.yml | 4 ++-- ui/templates/base.html | 10 +++++++--- ui/templates/home.html | 22 +++++++++------------- ui/templates/instances.html | 18 +++++++++++------- ui/templates/services.html | 18 +++++++++++------- 5 files changed, 40 insertions(+), 32 deletions(-) diff --git a/examples/web-ui/docker-compose.yml b/examples/web-ui/docker-compose.yml index fcb0fdb5..7fd3be10 100644 --- a/examples/web-ui/docker-compose.yml +++ b/examples/web-ui/docker-compose.yml @@ -24,7 +24,7 @@ services: - USE_CLIENT_CACHE=yes - USE_GZIP=yes - USE_API=yes - - API_URI=/ChangeMeToSomethingHardToGuess # change it to something hard to guess + must match API_URI for myui service + - API_URI=/ChangeMeToSomethingHardToGuess # change it to something hard to guess + must match API_URI from myui service - admin.example.com_SERVE_FILES=no - admin.example.com_USE_REVERSE_PROXY=yes - admin.example.com_REVERSE_PROXY_URL=/admin/ # change it to something hard to guess @@ -44,7 +44,7 @@ services: environment: - ABSOLUTE_URI=https://admin.example.com/admin/ # change it to your full URI - DOCKER_HOST=tcp://myuiproxy:2375 - - API_URI=/ChangeMeToSomethingHardToGuess + - API_URI=/ChangeMeToSomethingHardToGuess # must match API_URI from bunkerized-nginx - ADMIN_USERNAME=admin # change it to something hard to guess - ADMIN_PASSWORD=changeme # change it to a good password diff --git a/ui/templates/base.html b/ui/templates/base.html index dca42a81..939f2db8 100644 --- a/ui/templates/base.html +++ b/ui/templates/base.html @@ -9,9 +9,13 @@ {% include "menu.html" %} -
- {% block content %}{% endblock %} -
+
+
+ {% block content %}{% endblock %} +
+
+ {% include "footer.html" %} diff --git a/ui/templates/home.html b/ui/templates/home.html index 1808fbbf..5876b40a 100644 --- a/ui/templates/home.html +++ b/ui/templates/home.html @@ -2,21 +2,17 @@ {% block content %} -
+
-
- - - -
-
- {{ instances_number }} bunkerized-nginx instances -
-
- {{ services_number }} web services -
-
+
+ +
+
+ {{ instances_number }} bunkerized-nginx instances +
+
+ {{ services_number }} web services
diff --git a/ui/templates/instances.html b/ui/templates/instances.html index 1fc0e517..12b985c0 100644 --- a/ui/templates/instances.html +++ b/ui/templates/instances.html @@ -5,16 +5,20 @@
{% if operation != "" %} -
-