-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
40 lines (40 loc) · 1.5 KB
/
index.html
File metadata and controls
40 lines (40 loc) · 1.5 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Spotify Status</title>
<link href="/static/favicon.png" rel="icon">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;900&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<style>
/* Prevent white flash on page load/refresh by setting default background */
body {
margin: 0;
padding: 0;
background-color: #1a1a1a; /* Default dark gray, will be overridden by stored color */
color: #ffffff;
}
</style>
<script>
// Restore background color from sessionStorage immediately to prevent white flash
(function() {
const savedBgColor = sessionStorage.getItem('spotify-bg-color');
const savedTextColor = sessionStorage.getItem('spotify-text-color');
if (savedBgColor) {
document.documentElement.style.backgroundColor = savedBgColor;
document.body.style.backgroundColor = savedBgColor;
}
if (savedTextColor) {
document.documentElement.style.color = savedTextColor;
document.body.style.color = savedTextColor;
}
})();
</script>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>