aboutsummaryrefslogtreecommitdiff
path: root/web/ui/src/app.html
diff options
context:
space:
mode:
authorbenj <benj@rse8.com>2026-04-10 11:13:34 +0800
committerbenj <benj@rse8.com>2026-04-10 11:13:34 +0800
commit493746b14c1251a45b061d2e3edd9160c929d2b9 (patch)
tree1607cceb94c1aac1a17a01bb5c0d71b97342e892 /web/ui/src/app.html
parentc041641634650c31e03c70dcad132fd94cb08e63 (diff)
downloadtidyindex-493746b14c1251a45b061d2e3edd9160c929d2b9.tar
tidyindex-493746b14c1251a45b061d2e3edd9160c929d2b9.tar.gz
tidyindex-493746b14c1251a45b061d2e3edd9160c929d2b9.tar.bz2
tidyindex-493746b14c1251a45b061d2e3edd9160c929d2b9.tar.lz
tidyindex-493746b14c1251a45b061d2e3edd9160c929d2b9.tar.xz
tidyindex-493746b14c1251a45b061d2e3edd9160c929d2b9.tar.zst
tidyindex-493746b14c1251a45b061d2e3edd9160c929d2b9.zip
a basic ui and landing web interface for tidyindex.com
Diffstat (limited to 'web/ui/src/app.html')
-rw-r--r--web/ui/src/app.html42
1 files changed, 42 insertions, 0 deletions
diff --git a/web/ui/src/app.html b/web/ui/src/app.html
new file mode 100644
index 0000000..beb1a42
--- /dev/null
+++ b/web/ui/src/app.html
@@ -0,0 +1,42 @@
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <meta name="description" content="Tidy Index — dashboard" />
+ <link rel="icon" type="image/svg+xml" href="%sveltekit.assets%/favicon.svg" />
+
+ <!-- Preload the three self-hosted webfonts so the browser fetches
+ them in parallel with the CSS, not after it. -->
+ <link rel="preload" href="%sveltekit.assets%/fonts/fraunces-latin.woff2" as="font" type="font/woff2" crossorigin />
+ <link rel="preload" href="%sveltekit.assets%/fonts/inter-latin.woff2" as="font" type="font/woff2" crossorigin />
+ <link rel="preload" href="%sveltekit.assets%/fonts/jetbrains-mono-latin.woff2" as="font" type="font/woff2" crossorigin />
+
+ <!-- Prevent FOUT: hide the body until webfonts are loaded, with a
+ 1500ms safety timeout so the page never stays blank forever. -->
+ <style>html.fonts-pending body { visibility: hidden; }</style>
+ <script>
+ (function () {
+ var d = document;
+ d.documentElement.classList.add('fonts-pending');
+ var done = false;
+ function reveal() {
+ if (done) return;
+ done = true;
+ d.documentElement.classList.remove('fonts-pending');
+ }
+ if (d.fonts && d.fonts.ready && typeof d.fonts.ready.then === 'function') {
+ d.fonts.ready.then(reveal);
+ } else {
+ reveal();
+ }
+ setTimeout(reveal, 1500);
+ })();
+ </script>
+
+ %sveltekit.head%
+ </head>
+ <body data-sveltekit-preload-data="hover">
+ <div style="display: contents">%sveltekit.body%</div>
+ </body>
+</html>