Add a new "retro" theme option that mimics the classic Windows 98 aesthetic, providing a nostalgic alternative to the modern and classic dark themes. Changes include: - Defining CSS variables for the retro theme in `00-base.css` (pixel fonts, silver/gray colors, and classic window shadows). - Adding custom styling for cards, headers, buttons, and title bars to replicate classic OS windows. - Adding a star background GIF (`stars1.gif`). - Excluding the retro theme from modern "revamp" styles in `15-revamp.css`. - Updating `CLAUDE.md` with instructions on screenshot verification.
77 lines
3.4 KiB
HTML
77 lines
3.4 KiB
HTML
{{define "base"}}
|
|
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>{{if .Title}}{{.Title}} - {{end}}{{.AppName}}</title>
|
|
<meta name="description" content="{{.Description}}">
|
|
<meta name="theme-color" content="#09090b">
|
|
<meta property="og:site_name" content="{{.AppName}}">
|
|
<meta property="og:title" content="{{if .Title}}{{.Title}}{{else}}{{.AppName}}{{end}}">
|
|
<meta property="og:description" content="{{.Description}}">
|
|
<meta property="og:type" content="website">
|
|
<meta property="og:url" content="{{.BaseURL}}">
|
|
{{if .ImageURL}}<meta property="og:image" content="{{.ImageURL}}">{{end}}
|
|
<meta name="twitter:card" content="summary_large_image">
|
|
{{if .ImageURL}}<meta name="twitter:image" content="{{.ImageURL}}">{{end}}
|
|
<script src="/static/js/05-theme.js"></script>
|
|
<link rel="stylesheet" href="/static/css/00-base.css">
|
|
<link rel="stylesheet" href="/static/css/10-layout.css">
|
|
<link rel="stylesheet" href="/static/css/15-revamp.css">
|
|
<link rel="stylesheet" href="/static/css/16-retro.css">
|
|
<link rel="stylesheet" href="/static/css/20-upload.css">
|
|
<link rel="stylesheet" href="/static/css/30-download.css">
|
|
<link rel="stylesheet" href="/static/css/40-docs.css">
|
|
<link rel="stylesheet" href="/static/css/50-admin.css">
|
|
<link rel="stylesheet" href="/static/css/60-storage.css">
|
|
<link rel="stylesheet" href="/static/css/70-tokens.css">
|
|
<link rel="stylesheet" href="/static/css/90-responsive.css">
|
|
<script defer src="/static/js/00-utils.js"></script>
|
|
<script defer src="/static/js/10-file-browser.js"></script>
|
|
<script defer src="/static/js/20-storage-admin.js"></script>
|
|
<script defer src="/static/js/30-token-copy.js"></script>
|
|
<script defer src="/static/js/40-upload.js"></script>
|
|
</head>
|
|
<body class="dark">
|
|
<a class="skip-link" href="#main">Skip to content</a>
|
|
<header class="site-header">
|
|
<nav class="nav" aria-label="Main navigation">
|
|
<a class="brand" href="/" aria-label="{{.AppName}} home">
|
|
<span class="brand-mark" aria-hidden="true">W</span>
|
|
<span>{{.AppName}}</span>
|
|
</a>
|
|
<div class="nav-links">
|
|
{{if .CurrentUser}}
|
|
<a class="button button-ghost" href="/app">Dashboard</a>
|
|
{{if eq .CurrentUser.Role "admin"}}<a class="button button-ghost" href="/admin">Admin</a>{{end}}
|
|
<a class="button button-ghost" href="/api">API</a>
|
|
<a class="button button-outline" href="/account/settings"><span class="nav-username">{{.CurrentUser.Username}}</span></a>
|
|
{{else}}
|
|
<a class="button button-ghost" href="/api">API</a>
|
|
<a class="button button-outline" href="/login">Sign in</a>
|
|
{{end}}
|
|
</div>
|
|
</nav>
|
|
</header>
|
|
|
|
<main id="main">
|
|
{{template "content" .}}
|
|
</main>
|
|
|
|
<footer class="site-footer">
|
|
<span>{{.AppName}} · {{.CurrentYear}} · self-hosted</span>
|
|
<label class="theme-picker">
|
|
<span>Theme</span>
|
|
<select data-theme-select aria-label="Site theme">
|
|
<option value="revamp">Aurora (default)</option>
|
|
<option value="classic">Classic</option>
|
|
<option value="retro">Web 1.0 (retro)</option>
|
|
</select>
|
|
</label>
|
|
<span class="footer-links">{{if .CurrentUser}}<a href="/app">Dashboard</a><a href="/api">API</a><a href="/account/settings">Account</a>{{else}}<a href="/login">Sign in</a><a href="/api">API</a>{{end}}</span>
|
|
</footer>
|
|
</body>
|
|
</html>
|
|
{{end}}
|