2603.11 added dark/light mode

This commit is contained in:
2026-03-13 16:30:09 -04:00
parent 9730addb10
commit 7353fd57db
7 changed files with 49 additions and 2 deletions

View File

@@ -54,6 +54,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
.login-box form { max-width: 100%; }
.login-box button[type=submit] { width: 100%; margin-top: .25rem; }
</style>
<script>document.documentElement.setAttribute('data-theme',localStorage.getItem('theme')||'dark')</script>
</head>
<body>
<div class="login-wrap">
@@ -75,6 +76,9 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
<button type="submit">Sign in</button>
</form>
</div>
<div style="text-align:center;margin-top:.75rem">
<?php include __DIR__ . '/includes/theme_toggle.php'; ?>
</div>
</div>
<?php include __DIR__ . '/includes/footer.php'; ?>
</body>