mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-27 11:17:29 +02:00
Restyle the idle watcher loading UI with design tokens, light and dark variants via `prefers-color-scheme`, and system font stacks (drop Google Fonts). Tighten layout, animations, and console presentation. In `loading.js`, pass event `level` into `addConsoleLine` and apply `level-*` classes so log lines can reflect debug, info, warn, and error. On the HTML side, set `color-scheme`, add an empty `alt` on the logo, and mark the loading dots as `aria-hidden` for assistive technology.
28 lines
878 B
HTML
28 lines
878 B
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<meta name="color-scheme" content="light dark" />
|
|
<title>{{.Title}}</title>
|
|
<link rel="stylesheet" href="{{.LoadingPageCSSPath}}" />
|
|
<link rel="icon" href="{{.FavIconPath}}" />
|
|
</head>
|
|
<body>
|
|
<script>
|
|
const wakeEventsPath = "{{.WakeEventsPath}}";
|
|
</script>
|
|
<script src="{{.LoadingPageJSPath}}" defer></script>
|
|
<div class="container">
|
|
<!-- icon handled by waker_http -->
|
|
<img class="logo" src="{{.FavIconPath}}" alt="" />
|
|
<div id="loading-dots" class="loading-dots" aria-hidden="true">
|
|
<div class="dot"></div>
|
|
<div class="dot"></div>
|
|
<div class="dot"></div>
|
|
</div>
|
|
<div id="console" class="console"></div>
|
|
</div>
|
|
</body>
|
|
</html>
|