From ffcebb07f445c227ff470b24fd85aec87675ad61 Mon Sep 17 00:00:00 2001 From: Aleksy Grabowski Date: Sat, 13 Mar 2021 11:34:32 +0100 Subject: [PATCH] [WIP] Add blinking LEDs TODO: LED status should at least depend on status of contactless interface See: hurufu/nexoid-nexui-flask#5 --- nexui/static/display.xhtml | 2 ++ nexui/static/request.css | 17 +++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/nexui/static/display.xhtml b/nexui/static/display.xhtml index 374ed39..0d363e5 100644 --- a/nexui/static/display.xhtml +++ b/nexui/static/display.xhtml @@ -65,6 +65,8 @@
+
Terminal contactless LEDs:
+
Terminal display output:
diff --git a/nexui/static/request.css b/nexui/static/request.css index 7b1580d..7a75706 100644 --- a/nexui/static/request.css +++ b/nexui/static/request.css @@ -1,3 +1,20 @@ +.blink { + animation: blinker 2s infinite; + color: #a3ea20; +} + +@keyframes blinker { + 0% { + opacity 1; + } + 49% { + opacity: 1; + } + 50% { + opacity: 0; + } +} + .terminal-interfaces { letter-spacing: 0.5em; }