mirror of
https://github.com/Pandipipas/scoreko-electron-dev.git
synced 2026-06-05 21:22:07 +00:00
Refactor loading screen with updated styles and dynamic quotes
This commit is contained in:
@@ -147,8 +147,6 @@ export function createApplicationController({
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
await loadingWindow.loadURL(paths.loadingDashboardUrl);
|
|
||||||
|
|
||||||
const loadingShownAt = now();
|
const loadingShownAt = now();
|
||||||
|
|
||||||
if (!mainWindow) {
|
if (!mainWindow) {
|
||||||
|
|||||||
+80
-23
@@ -5,39 +5,96 @@
|
|||||||
<title>Scoreko</title>
|
<title>Scoreko</title>
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
background-color: #0f0f0f;
|
background-color: #121212;
|
||||||
color: #ffffff;
|
color: #f5f5f5;
|
||||||
font-family: system-ui, -apple-system, sans-serif;
|
font-family: system-ui, -apple-system, sans-serif;
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
height: 100vh;
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
.spinner {
|
.loading-page {
|
||||||
width: 40px;
|
min-height: 100vh;
|
||||||
height: 40px;
|
display: flex;
|
||||||
border: 4px solid rgba(255, 255, 255, 0.1);
|
align-items: center;
|
||||||
border-left-color: #ffffff;
|
justify-content: center;
|
||||||
border-radius: 50%;
|
text-align: center;
|
||||||
animation: spin 1s linear infinite;
|
|
||||||
margin-bottom: 20px;
|
|
||||||
}
|
}
|
||||||
@keyframes spin {
|
.loading-content {
|
||||||
to { transform: rotate(360deg); }
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
}
|
}
|
||||||
p {
|
.q-spinner {
|
||||||
margin: 0;
|
animation: q-spin 2s linear infinite;
|
||||||
font-size: 14px;
|
transform-origin: center center;
|
||||||
opacity: 0.8;
|
width: 50px;
|
||||||
|
height: 50px;
|
||||||
|
color: #1976d2;
|
||||||
|
}
|
||||||
|
.q-spinner circle {
|
||||||
|
stroke-dasharray: 1, 200;
|
||||||
|
stroke-dashoffset: 0;
|
||||||
|
animation: q-spin-dash 1.5s ease-in-out infinite;
|
||||||
|
stroke-linecap: round;
|
||||||
|
}
|
||||||
|
@keyframes q-spin {
|
||||||
|
100% { transform: rotate(360deg); }
|
||||||
|
}
|
||||||
|
@keyframes q-spin-dash {
|
||||||
|
0% {
|
||||||
|
stroke-dasharray: 1, 200;
|
||||||
|
stroke-dashoffset: 0;
|
||||||
|
}
|
||||||
|
50% {
|
||||||
|
stroke-dasharray: 89, 200;
|
||||||
|
stroke-dashoffset: -35px;
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
stroke-dasharray: 89, 200;
|
||||||
|
stroke-dashoffset: -124px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.quote {
|
||||||
|
max-width: 520px;
|
||||||
|
margin-top: 16px;
|
||||||
|
font-size: 1rem;
|
||||||
|
line-height: 1.75rem;
|
||||||
|
font-weight: 400;
|
||||||
|
}
|
||||||
|
.status {
|
||||||
|
font-style: italic;
|
||||||
|
opacity: 0.7;
|
||||||
|
font-size: 0.875rem;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
::-webkit-scrollbar {
|
||||||
|
display: none;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="spinner"></div>
|
<div class="loading-page">
|
||||||
<p>Preparando Scoreko...</p>
|
<div class="loading-content">
|
||||||
|
<svg class="q-spinner" viewBox="25 25 50 50">
|
||||||
|
<circle cx="50" cy="50" r="20" fill="none" stroke="currentColor" stroke-width="5" stroke-miterlimit="10"></circle>
|
||||||
|
</svg>
|
||||||
|
<div class="quote" id="quoteText"></div>
|
||||||
|
<div class="status">Loading...</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
const loadQuotes = [
|
||||||
|
"Complaining about Paul's damage",
|
||||||
|
'Nerfing Gigas',
|
||||||
|
'Mashing hopkick',
|
||||||
|
'Sidestepping your electric',
|
||||||
|
'Punishing hellsweep with 1,1,2',
|
||||||
|
'Emailing Harada',
|
||||||
|
];
|
||||||
|
const randomIndex = Math.floor(Math.random() * loadQuotes.length);
|
||||||
|
document.getElementById('quoteText').textContent = loadQuotes[randomIndex];
|
||||||
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user