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

@@ -60,6 +60,7 @@ if (isset($_GET['edit'])) {
<style>
<?php include __DIR__ . '/includes/style.php'; ?>
</style>
<script>document.documentElement.setAttribute('data-theme',localStorage.getItem('theme')||'dark')</script>
</head>
<body>
<header>
@@ -71,6 +72,7 @@ if (isset($_GET['edit'])) {
<?php if (auth_enabled()): ?>
<a href="logout.php" style="color:var(--muted)">Sign out</a>
<?php endif; ?>
<?php include __DIR__ . '/includes/theme_toggle.php'; ?>
</nav>
</header>
<main>