diff --git a/src/www/index.html b/src/www/index.html index 23d643da..3ce08298 100644 --- a/src/www/index.html +++ b/src/www/index.html @@ -8,6 +8,12 @@ tailwind.config = { darkMode: 'class', } + + if (localStorage.theme === 'dark' || (!('theme' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)').matches)) { + document.documentElement.classList.add('dark') + } else { + document.documentElement.classList.remove('dark') + } @@ -16,22 +22,38 @@ - - +
-
+
+ +
+ +
+ class="text-sm text-gray-400 dark:text-neutral-400 mb-10 mr-2 mt-3 cursor-pointer hover:underline float-right" + @click="logout"> Logout @@ -39,13 +61,14 @@ d="M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1" /> -

- +

+ WireGuard

-

+

- -
-
+
+
-

Clients

+

Clients

-
+
@@ -314,7 +306,8 @@
-
@@ -400,7 +394,7 @@
-
+
@@ -421,16 +415,16 @@ Modal panel, show/hide based on modal state. Entering: "ease-out duration-300" - From: "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" - To: "opacity-100 translate-y-0 sm:scale-100" + From: "opacity-0 tranneutral-y-4 sm:tranneutral-y-0 sm:scale-95" + To: "opacity-100 tranneutral-y-0 sm:scale-100" Leaving: "ease-in duration-200" - From: "opacity-100 translate-y-0 sm:scale-100" - To: "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" + From: "opacity-100 tranneutral-y-0 sm:scale-100" + To: "opacity-0 tranneutral-y-4 sm:tranneutral-y-0 sm:scale-95" -->