Skip to content

The only tool you need to know what is happening and how to fix it.

2.5 KB
Raw Blame
<!doctype html>
<html lang="en" class="dark" style="color-scheme: dark; background: #0b0d16">
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1" />
		<title>Traceway</title>
		<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
		<link rel="alternate icon" href="/favicon.ico" sizes="any" />
		<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
		<script>
			// Default to dark; honor stored preference if the user has set one.
			try {
				var stored = localStorage.getItem('traceway_theme');
				if (stored === 'light') {
					document.documentElement.classList.remove('dark');
					document.documentElement.style.colorScheme = 'light';
					document.documentElement.style.background = '';
				}
			} catch (e) {}
		</script>
		<style>
			#splash {
				position: fixed;
				inset: 0;
				display: flex;
				align-items: center;
				justify-content: center;
				color: #71717a;
				pointer-events: none;
			}
			html.dark #splash {
				color: #fff;
			}
			#splash svg {
				width: 4.5rem;
				height: 4.5rem;
			}
			#splash .outer-ring {
				animation: splash-spin 3s linear infinite;
				transform-origin: 250px 250px;
			}
			#splash .middle-ring {
				animation: splash-spin-reverse 2s linear infinite;
				transform-origin: 250px 250px;
			}
			#splash .inner-ring {
				animation: splash-spin 1.2s linear infinite;
				transform-origin: 250px 250px;
			}
			@keyframes splash-spin {
				from {
					transform: rotate(0deg);
				}
				to {
					transform: rotate(360deg);
				}
			}
			@keyframes splash-spin-reverse {
				from {
					transform: rotate(0deg);
				}
				to {
					transform: rotate(-360deg);
				}
			}
		</style>
		%sveltekit.head%
	</head>
	<body data-sveltekit-preload-data="hover">
		<div id="splash">
			<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 500 500">
				<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-width="31.25">
					<g class="outer-ring">
						<path
							d="M250 41.67c115.06 0 208.33 93.27 208.33 208.33c0 37.94-10.15 73.54-27.88 104.17M104.17 101.23A207.71 207.71 0 0 0 41.67 250c0 115.06 93.27 208.33 208.33 208.33c37.94 0 73.54-10.15 104.17-27.88"
						/>
					</g>
					<g class="middle-ring">
						<path
							d="M104.17 250c0 30.98 9.67 59.71 26.15 83.33M250 104.17a145.83 145.83 0 1 1-62.5 277.63"
						/>
					</g>
					<g class="inner-ring">
						<path d="M250 333.33a83.33 83.33 0 0 0 0-166.67" />
					</g>
				</g>
			</svg>
		</div>
		<div style="display: contents">%sveltekit.body%</div>
	</body>
</html>