feat(frontend): rework ui
This commit is contained in:
parent
10e72b5353
commit
4d9567db9e
13 changed files with 5870 additions and 856 deletions
|
|
@ -1,10 +1,34 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
<html lang="en" class="dark" data-theme="methanium">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="theme-color" content="#f2f5ef" />
|
||||
<title>Vibe Proxy Accounts</title>
|
||||
<meta name="theme-color" content="#171e26" />
|
||||
<title>Vibe Proxy</title>
|
||||
<style>
|
||||
html.dark,
|
||||
html.dark body {
|
||||
background-color: #171e26;
|
||||
color: #d2e0f0;
|
||||
color-scheme: dark;
|
||||
}
|
||||
|
||||
html.light,
|
||||
html.light body {
|
||||
background-color: #edf1f4;
|
||||
color: #10161d;
|
||||
color-scheme: light;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
const savedTheme = localStorage.getItem('theme');
|
||||
const theme =
|
||||
savedTheme === 'light' ||
|
||||
(savedTheme === 'system' && matchMedia('(prefers-color-scheme: light)').matches)
|
||||
? 'light'
|
||||
: 'dark';
|
||||
document.documentElement.classList.replace('dark', theme);
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue