-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
91 lines (78 loc) · 2 KB
/
Copy pathindex.html
File metadata and controls
91 lines (78 loc) · 2 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>crypto-dashboard</title>
<script>
// Initialize dark mode before React loads to prevent flash
(function () {
try {
const stored = localStorage.getItem('coindash-storage');
if (stored) {
const parsed = JSON.parse(stored);
// Zustand persist stores as { state: {...}, version: 0 }
const theme = parsed?.state?.theme || parsed?.theme || 'dark';
if (theme === 'dark') {
document.documentElement.classList.add('dark');
}
} else {
// Default to dark mode
document.documentElement.classList.add('dark');
}
} catch (e) {
// Fallback to dark mode
document.documentElement.classList.add('dark');
}
})();
</script>
<style>
/* Custom scrollbar for better aesthetics */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: #cbd5e1;
border-radius: 4px;
}
.dark ::-webkit-scrollbar-thumb {
background: #475569;
}
::-webkit-scrollbar-thumb:hover {
background: #94a3b8;
}
/* Price Flash Animations */
@keyframes flash-green {
0% {
background-color: rgba(34, 197, 94, 0.2);
}
100% {
background-color: transparent;
}
}
@keyframes flash-red {
0% {
background-color: rgba(239, 68, 68, 0.2);
}
100% {
background-color: transparent;
}
}
.animate-flash-green {
animation: flash-green 1s ease-out;
}
.animate-flash-red {
animation: flash-red 1s ease-out;
}
</style>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>