Graphical overhaul.

Remove all legacy pixeldrain pages, handlers and assets.
Remove old theming engine.
Make logo responsive to the accent colour.
Lots of other stuff.
This commit is contained in:
2026-10-01 02:06:00 +02:00
parent 7b2e4b4240
commit 58db683fc8
98 changed files with 1025 additions and 6475 deletions

View File

@@ -1,35 +1,42 @@
{{define "wrap"}}
<!DOCTYPE html>
<html lang="en">
<head>
<title>{{.Title}}</title>
<meta charset="UTF-8"/>
<title>{{.Title}}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta name="robots" content="noindex, nofollow">
<link id="stylesheet_layout" rel="stylesheet" type="text/css" href="/res/style/layout.css?v{{cacheID}}"/>
<link id="stylesheet_theme" rel="stylesheet" type="text/css" href="/theme.css"/>
<link rel="stylesheet" href="/res/style/layout.css?v{{.CacheID}}"/>
<link rel="preload" href="/res/misc/MaterialIcons.woff2" as="font" type="font/woff2" crossorigin/>
<link rel="icon" sizes="32x32" href="/res/img/nova_32.png" />
<link rel="icon" sizes="64x64" href="/res/img/nova_64.png" />
<link rel="icon" sizes="128x128" href="/res/img/nova_128.png" />
<link rel="icon" sizes="152x152" href="/res/img/nova_152.png" />
<link rel="icon" sizes="180x180" href="/res/img/nova_180.png" />
<link rel="icon" sizes="192x192" href="/res/img/nova_192.png" />
<link rel="icon" sizes="196x196" href="/res/img/nova_196.png" />
<link rel="icon" sizes="256x256" href="/res/img/nova_256.png" />
<link rel="apple-touch-icon" sizes="128x128" href="/res/img/nova_128.png" />
<link rel="apple-touch-icon" sizes="256x256" href="/res/img/nova_256.png" />
<link rel="shortcut icon" sizes="256x256" href="/res/img/nova_256.png" />
<link rel="icon" href="/favicon.ico" sizes="32x32"/>
<link rel="icon" href="/res/img/nova.svg" type="image/svg+xml"/>
<link rel="apple-touch-icon" href="/res/img/nova_180.png"/>
{{range .OGData.MetaPropRules}}
<meta property="{{.Key}}" content="{{.Value}}" />
{{end}}
{{range .OGData.MetaNameRules}}
<meta name="{{.Key}}" content="{{.Value}}" />
{{end}}
{{range .OGData.LinkRules}}
<link rel="{{.Key}}" href="{{.Value}}" />
{{end}}
{{ template "opengraph" .OGData }}
<script>
// The branding of the user's home directory, saved on the previous
// visit. Applying it before the page is drawn prevents a flash of
// the default theme while the app loads
try {
document.documentElement.style.cssText = localStorage.getItem("branding") ?? ""
} catch {}
window.api_endpoint = '{{.APIEndpoint}}';
window.server_hostname = "{{.Hostname}}";
{{with .User}}window.user = {{.}};{{end}}
{{with .Node}}window.initial_node = {{.}};{{end}}
</script>
<script defer src='/res/svelte/wrap.js?v{{cacheID}}' type="module"></script>
<script src="/res/svelte/wrap.js" type="module"></script>
</head>
<body></body>
</html>
{{end}}