Skip to content

Home Information - Your home, your data, organized.

Python

Redesigned the message for lost connection to server.

Anthony Cassandra8ff12e209051
diff --git a/src/hi/static/css/main.css b/src/hi/static/css/main.css
index cf03e065..72a0cc0b 100644
--- a/src/hi/static/css/main.css
+++ b/src/hi/static/css/main.css
@@ -642,29 +642,24 @@ input[type="password"],
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
- padding: 1rem;
z-index: 1060;
+ padding: 2rem 3rem;
+ min-width: 22rem;
text-align: center;
- font-size: 2rem;
- font-weight: bold;
- color: var(--warning-color);
- background-color: #282425;
+ color: var(--on-secondary-color);
+ background-color: var(--secondary-color);
border-radius: 0.8rem;
- border: 0.1rem solid #282425;
- box-shadow: 0 0 1rem rgba(0, 0, 0, 0.5);
+ box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.35);
}
-
-#hi-server-error-msg > div {
- margin-top: 1rem;
- padding: 3rem;
- width: 36rem;
- height: 14rem;
- color: #282425;
- font-size: 4rem;
- background-color: var(--warning-color);
- border-bottom-left-radius: 0.8rem;
- border-bottom-right-radius: 0.8rem;
- text-align: center;
+#hi-server-error-msg .icon {
+ width: 4rem;
+ height: 4rem;
+ margin-bottom: 1rem;
+}
+#hi-server-error-msg .msg {
+ font-size: 2rem;
+ font-weight: 600;
+ line-height: 1.2;
}
svg[action-state="move"] {
diff --git a/src/hi/templates/pages/base.html b/src/hi/templates/pages/base.html
index 0b553883..02c0d3c8 100644
--- a/src/hi/templates/pages/base.html
+++ b/src/hi/templates/pages/base.html
@@ -54,9 +54,11 @@
{% include "config/panes/base_page_settings.html" %}
- <div id="hi-server-error-msg">
- WARNING
- <div>Server Is Down !</div>
+ <div id="hi-server-error-msg" role="alert" aria-live="assertive">
+ <svg class="icon" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
+ <path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"/>
+ </svg>
+ <div class="msg">Lost Connection To Server</div>
</div>
{% block footer_pre_javascript %}{% endblock %}