1
0
Fork 1
mirror of https://github.com/git-pkgs/proxy.git synced 2026-07-06 22:33:19 -04:00
pkg-proxy/internal/server/templates/layout/base.html

40 lines
1.5 KiB
HTML
Raw Permalink Normal View History

2026-02-03 22:40:23 +00:00
{{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>
{{if .UIBaseURL}}
<link rel="canonical" href="{{.UIBaseURL}}{{.CanonicalPath}}">
<meta property="og:url" content="{{.UIBaseURL}}{{.CanonicalPath}}">
<meta property="og:title" content="{{template "title" .}}">
<meta property="og:site_name" content="git-pkgs proxy">
{{end}}
<script src="/ui/static/vendor/tailwind.js"></script>
<script src="/ui/static/vendor/lucide.min.js" defer></script>
2026-02-03 22:40:23 +00:00
<script>
tailwind.config = { darkMode: 'class' }
if (localStorage.theme === 'dark' || (!('theme' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
document.documentElement.classList.add('dark')
}
document.addEventListener('DOMContentLoaded', () => {
if (window.lucide) lucide.createIcons({ attrs: { 'aria-hidden': 'true', focusable: 'false' } })
})
2026-02-03 22:40:23 +00:00
</script>
{{block "head" .}}{{end}}
</head>
<body class="min-h-full flex flex-col bg-gray-50 dark:bg-gray-950 text-gray-900 dark:text-gray-100">
2026-02-03 22:40:23 +00:00
{{template "header" .}}
<main class="flex-1 w-full max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
2026-02-03 22:40:23 +00:00
{{block "content" .}}{{end}}
</main>
{{template "footer" .}}
{{template "styles" .}}
{{block "scripts" .}}{{end}}
</body>
</html>
{{end}}