mirror of
https://tangled.org/evan.jarrett.net/at-container-registry
synced 2026-04-21 00:50:29 +00:00
29 lines
1.1 KiB
HTML
29 lines
1.1 KiB
HTML
{{define "admin-head"}}
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<!-- Theme: apply early to prevent flash -->
|
|
<script>
|
|
(function() {
|
|
function getEffectiveTheme(pref) {
|
|
if (pref === 'dark') return 'dark';
|
|
if (pref === 'light') return 'light';
|
|
return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
|
|
}
|
|
var pref = localStorage.getItem('hold-admin-theme') || 'system';
|
|
var effective = getEffectiveTheme(pref);
|
|
document.documentElement.classList.toggle('dark', effective === 'dark');
|
|
document.documentElement.setAttribute('data-theme', effective);
|
|
})();
|
|
</script>
|
|
|
|
<!-- Preload critical assets -->
|
|
<link rel="preload" href="/admin/public/icons.svg" as="image" type="image/svg+xml">
|
|
|
|
<!-- Tailwind CSS + DaisyUI (shared with appview) -->
|
|
<link rel="stylesheet" href="/admin/public/css/style.css">
|
|
|
|
<!-- Bundled JS: HTMX + Theme + DID Lookup -->
|
|
<script type="module" src="/admin/public/js/bundle.min.js"></script>
|
|
{{end}}
|