feat: add status indicator dot to live clock
This commit is contained in:
@@ -51,7 +51,8 @@ templ NicknamePrompt(returnPath string) {
|
|||||||
// LiveClock shows the current server time, updated with each SSE patch.
|
// LiveClock shows the current server time, updated with each SSE patch.
|
||||||
// If the clock stops updating, users know the connection is stale.
|
// If the clock stops updating, users know the connection is stale.
|
||||||
templ LiveClock() {
|
templ LiveClock() {
|
||||||
<div class="fixed top-2 right-2 text-xs opacity-50 font-mono">
|
<div class="fixed top-2 right-2 flex items-center gap-1 text-xs opacity-50 font-mono">
|
||||||
|
<div class="status status-xs status-success"></div>
|
||||||
{ time.Now().Format("15:04:05") }
|
{ time.Now().Format("15:04:05") }
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user