forked from mirrors/pkg-proxy
30 lines
932 B
HTML
30 lines
932 B
HTML
|
|
{{define "base"}}
|
||
|
|
<!DOCTYPE html>
|
||
|
|
<html lang="en" class="h-full">
|
||
|
|
<head>
|
||
|
|
<meta charset="UTF-8">
|
||
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
|
<title>{{block "title" .}}git-pkgs proxy{{end}}</title>
|
||
|
|
<script src="/static/tailwind.js"></script>
|
||
|
|
<script>
|
||
|
|
tailwind.config = { darkMode: 'class' }
|
||
|
|
if (localStorage.theme === 'dark' || (!('theme' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
|
||
|
|
document.documentElement.classList.add('dark')
|
||
|
|
}
|
||
|
|
</script>
|
||
|
|
{{block "head" .}}{{end}}
|
||
|
|
</head>
|
||
|
|
<body class="h-full bg-gray-50 dark:bg-gray-950 text-gray-900 dark:text-gray-100">
|
||
|
|
{{template "header" .}}
|
||
|
|
|
||
|
|
<main class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
|
||
|
|
{{block "content" .}}{{end}}
|
||
|
|
</main>
|
||
|
|
|
||
|
|
{{template "footer" .}}
|
||
|
|
|
||
|
|
{{template "styles" .}}
|
||
|
|
{{block "scripts" .}}{{end}}
|
||
|
|
</body>
|
||
|
|
</html>
|
||
|
|
{{end}}
|