feat: add theme toggle, mobile sidebar, and spotlight-style live search functionality for tags and bookmarks.

This commit is contained in:
Bruno Charest 2026-02-11 22:27:31 -05:00
parent 59b78ab0b7
commit f3072c3eb6

View File

@ -1186,7 +1186,7 @@ document.addEventListener('DOMContentLoaded', () => {
const theme = isDark ? 'dark' : 'light'; const theme = isDark ? 'dark' : 'light';
var lines = []; var lines = [];
lines.push('<!DOCTYPE html>'); lines.push('<!DOCTYPE html>');
lines.push('<html>'); lines.push('<html data-theme="' + theme + '">');
lines.push('<head>'); lines.push('<head>');
lines.push('<meta charset="utf-8">'); lines.push('<meta charset="utf-8">');
lines.push('<meta name="viewport" content="width=device-width, initial-scale=1.0">'); lines.push('<meta name="viewport" content="width=device-width, initial-scale=1.0">');
@ -1206,7 +1206,7 @@ document.addEventListener('DOMContentLoaded', () => {
lines.push(' --danger: #ef4444;'); lines.push(' --danger: #ef4444;');
lines.push(' --shadow: 0 1px 3px rgba(0,0,0,0.1);'); lines.push(' --shadow: 0 1px 3px rgba(0,0,0,0.1);');
lines.push('}'); lines.push('}');
lines.push('[data-theme="' + theme + '"] {'); lines.push('[data-theme="dark"] {');
lines.push(' --primary: #3b82f6;'); lines.push(' --primary: #3b82f6;');
lines.push(' --primary-hover: #60a5fa;'); lines.push(' --primary-hover: #60a5fa;');
lines.push(' --primary-light: rgba(59,130,246,0.12);'); lines.push(' --primary-light: rgba(59,130,246,0.12);');