主页布局构建完成

This commit is contained in:
li-chx
2025-08-17 17:22:06 +08:00
parent b8e2f4282d
commit 1fb97e1cc2
31 changed files with 1246 additions and 9972 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 MiB

+14
View File
@@ -0,0 +1,14 @@
// darkVerify.js
if (
localStorage.getItem('system-theme-mode') === "dark" ||
(!localStorage.getItem('system-theme-mode') &&
window.matchMedia("(prefers-color-scheme: dark)").matches)
) {
document.querySelector('html').classList.add('dark');
document.querySelector('html').classList.remove('light');
localStorage.setItem('system-theme-mode', 'dark');
} else {
document.querySelector('html').classList.add('light');
document.querySelector('html').classList.remove('dark');
localStorage.setItem('system-theme-mode', 'light');
}