-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsplash.html
More file actions
124 lines (111 loc) · 3.04 KB
/
Copy pathsplash.html
File metadata and controls
124 lines (111 loc) · 3.04 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Code Release Tracker</title>
<style>
:root {
color-scheme: dark;
font-family: "Segoe UI", system-ui, sans-serif;
}
html,
body {
width: 100%;
height: 100%;
margin: 0;
}
body {
display: grid;
place-items: center;
background:
linear-gradient(180deg, rgba(4, 6, 17, 0.2), rgba(4, 6, 17, 0.88)),
url("./src/assets/codeReleaseTrackerBg.png") center/cover no-repeat;
overflow: hidden;
opacity: 0;
transform: scale(1.01);
transition: opacity 280ms ease, transform 280ms ease;
}
body.is-visible {
opacity: 1;
transform: scale(1);
}
body.is-closing {
opacity: 0;
transform: scale(0.99);
}
.panel {
display: grid;
gap: 12px;
justify-items: center;
padding: 18px 22px;
border: 1px solid rgba(255, 255, 255, 0.14);
border-radius: 18px;
background: rgba(5, 6, 15, 0.64);
box-shadow: 0 20px 80px rgba(0, 0, 0, 0.45);
backdrop-filter: blur(10px);
}
.title {
margin: 0;
font-size: 18px;
font-weight: 700;
letter-spacing: 0.06em;
text-transform: uppercase;
}
.subtitle {
margin: 0;
color: rgba(248, 250, 252, 0.76);
font-size: 13px;
}
.status {
margin: 0;
color: rgba(248, 250, 252, 0.62);
font-size: 12px;
letter-spacing: 0.03em;
text-transform: uppercase;
}
.spinner {
width: 22px;
height: 22px;
border: 2px solid rgba(248, 250, 252, 0.22);
border-top-color: #f8fafc;
border-radius: 50%;
animation: spin 0.9s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
</style>
</head>
<body>
<div class="panel" aria-label="Loading Code Release Tracker">
<div class="spinner" aria-hidden="true"></div>
<p class="title">Code Release Tracker</p>
<p class="subtitle">Checking updates and loading release data...</p>
<p class="status" id="splash-status">Checking for updates...</p>
</div>
<script>
const status = document.getElementById("splash-status");
const statuses = [
"Checking for updates...",
"Loading release data...",
"Preparing workspace...",
];
let statusIndex = 0;
const rotateStatus = () => {
statusIndex = Math.min(statusIndex + 1, statuses.length - 1);
if (status) {
status.textContent = statuses[statusIndex];
}
};
requestAnimationFrame(() => {
document.body.classList.add("is-visible");
});
setTimeout(rotateStatus, 1400);
setTimeout(rotateStatus, 2800);
setTimeout(rotateStatus, 3900);
</script>
</body>
</html>