From b2e445478c1031c82d12891f6b6e2fe4e3496ed8 Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Thu, 11 Jan 2024 10:38:54 +0000 Subject: [PATCH] add offline handling --- static/card.html | 34 ++++++++++++++++++++++++++------ static/images/aqi-icon-l1.svg | 0 static/images/aqi-icon-l2.svg | 0 static/images/aqi-icon-l3.svg | 0 static/images/aqi-icon-l4.svg | 0 static/images/aqi-icon-l5.svg | 0 static/images/aqi-icon-l6.svg | 0 static/images/offline-icon.svg | 2 ++ static/square.html | 36 ++++++++++++++++++++++++++++++---- 9 files changed, 62 insertions(+), 10 deletions(-) mode change 100644 => 100755 static/images/aqi-icon-l1.svg mode change 100644 => 100755 static/images/aqi-icon-l2.svg mode change 100644 => 100755 static/images/aqi-icon-l3.svg mode change 100644 => 100755 static/images/aqi-icon-l4.svg mode change 100644 => 100755 static/images/aqi-icon-l5.svg mode change 100644 => 100755 static/images/aqi-icon-l6.svg create mode 100644 static/images/offline-icon.svg diff --git a/static/card.html b/static/card.html index 8a4f0fc..1a261d8 100644 --- a/static/card.html +++ b/static/card.html @@ -27,6 +27,7 @@ --icon-very-unhealthy: /images/aqi-icon-l5.svg; --icon-hazardous: /images/aqi-icon-l6.svg; } + body { display: flex; justify-content: center; @@ -167,6 +168,7 @@ margin-top: 7px; margin-bottom: 7px; } + #health_icon { transform: scale(2); padding-top: 30px; @@ -180,7 +182,6 @@

Loading . . .

-

Loading

@@ -214,14 +215,21 @@