feat(frontend): rewrite frontend with minimal Transmission-like design using DaisyUI

This commit is contained in:
spinline
2026-01-31 14:35:16 +03:00
parent 892cb02b98
commit 202ee1340b
21 changed files with 1535 additions and 1021 deletions

View File

@@ -20,21 +20,12 @@
<link data-trunk rel="copy-file" href="icon-192.png" />
<script>
(function () {
var t = localStorage.getItem("vibetorrent_theme");
var c = "#0f172a"; // Midnight (default)
var tc = "#94a3b8"; // Text Color (Slate 400)
var t = localStorage.getItem("vibetorrent_theme") || "dark";
if (t === "Amoled") t = "black";
if (t === "Light") t = "light";
if (t === "Dark" || t === "Midnight") t = "dark";
if (t === "Light") {
c = "#f9fafb"; // Gray 50
tc = "#111827"; // Gray 900
} else if (t === "Amoled") {
c = "#000000";
tc = "#e5e7eb"; // Gray 200
}
var s = document.createElement("style");
s.innerHTML = "body { background-color: " + c + "; color: " + tc + "; }";
document.head.appendChild(s);
document.documentElement.setAttribute("data-theme", t.toLowerCase());
})();
</script>
</head>