kinda start index page, add email verify and request route, add session updating

This commit is contained in:
creations 2025-03-14 22:27:05 -04:00
parent b24b1484cb
commit cc4ebfbdd0
Signed by: creations
GPG key ID: 8F553AA4320FC711
12 changed files with 287 additions and 0 deletions

8
public/js/global.js Normal file
View file

@ -0,0 +1,8 @@
const htmlElement = document.documentElement;
const prefersDarkScheme = window.matchMedia("(prefers-color-scheme: dark)");
const currentTheme =
localStorage.getItem("theme") ||
(prefersDarkScheme.matches ? "dark" : "light");
htmlElement.setAttribute("data-theme", currentTheme);