-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
29 lines (28 loc) · 1.07 KB
/
index.html
File metadata and controls
29 lines (28 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
<meta name="description" content="StarHub - Professional GitHub Stars Management">
<meta name="theme-color" content="#1a1a1a">
<title>StarHub - GitHub Stars Manager</title>
<link rel="icon" href="/logo.svg" type="image/svg+xml">
</head>
<body>
<div id="app"></div>
<script>
// Initialize theme before Vue app loads
(function() {
const theme = localStorage.getItem('app-theme') || 'dark';
localStorage.setItem('app-theme', theme);
document.documentElement.setAttribute('data-theme', theme);
document.documentElement.classList.toggle('dark', theme === 'dark');
document.body.classList.toggle('dark', theme === 'dark');
const themeColor = theme === 'dark' ? '#1a1a1a' : '#ffffff';
const meta = document.querySelector('meta[name="theme-color"]');
if (meta) meta.content = themeColor;
})();
</script>
<script type="module" src="/src/main.ts"></script>
</body>
</html>