Skip to content

Commit

Permalink
[WIP] Add blinking LEDs
Browse files Browse the repository at this point in the history
TODO: LED status should at least depend on status of contactless interface

See: #5
  • Loading branch information
hurufu committed Mar 13, 2021
1 parent b49797c commit ffcebb0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nexui/static/display.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@
<dd>
<xf:output value="interface" class="terminal-interfaces"/>
</dd>
<dt>Terminal contactless LEDs:</dt>
<dd class="blink"></dd>
<dt>Terminal display output:</dt>
<dd>
<xf:output value="line" class="terminal-display"/>
Expand Down
17 changes: 17 additions & 0 deletions nexui/static/request.css
Original file line number Diff line number Diff line change
@@ -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;
}
Expand Down

0 comments on commit ffcebb0

Please sign in to comment.