From 993019f352931f9c2bda170e79e1529852addd16 Mon Sep 17 00:00:00 2001 From: Edward Shen Date: Wed, 1 May 2019 18:02:49 -0400 Subject: [PATCH] Made ui much nicer --- templates/index.html | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/templates/index.html b/templates/index.html index 394e157..72b5f5c 100644 --- a/templates/index.html +++ b/templates/index.html @@ -16,7 +16,8 @@ } main { - padding: 1rem 0; + padding: 1rem; + width: 100%; } header { @@ -38,20 +39,28 @@ color: #fff; text-decoration: none; } - h1 { display: block; margin: 0; } - h3 { margin-top: 0; } + h1 { margin: 0; } + h3 { margin: 0; text-align: justify; } + + .info { + display: flex; + align-items: baseline; + justify-content: space-between; + } + + .spacer { + flex: 1 0 1rem; + } .indicator { width: 1rem; min-height: 100%; border-radius: 1rem 0 0 1rem; - margin-right: 1rem; } - .ok { background-color: #4ed34e; } .warn { background-color: #fcfc64; } .error { background-color: #ff392e; } - .error-msg { font-family: 'Source Code Pro', monospace;} + .error-msg { margin-top: 1rem; font-family: 'Source Code Pro', monospace;} @@ -65,8 +74,11 @@
+

{{ status.endpoint }}

+
{{ status.location }} +
{% if status.error %}

{{ status.error }}

{% endif %}