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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
|
<script lang="ts">
import { invoke } from "@tauri-apps/api/core";
import { getVersion } from "@tauri-apps/api/app";
import { open } from "@tauri-apps/plugin-shell";
import { onMount } from "svelte";
import DownloadMonitor from "./lib/DownloadMonitor.svelte";
import GameConsole from "./lib/GameConsole.svelte";
let status = "Ready";
let showConsole = false;
let currentView = "home";
let statusTimeout: any;
let appVersion = "...";
// Watch for status changes to auto-dismiss
$: if (status !== "Ready") {
if (statusTimeout) clearTimeout(statusTimeout);
statusTimeout = setTimeout(() => {
status = "Ready";
}, 5000);
}
interface Version {
id: string;
type: string;
url: string;
time: string;
releaseTime: string;
}
interface Account {
type: "Offline" | "Microsoft";
username: string;
uuid: string;
}
interface DeviceCodeResponse {
user_code: string;
device_code: string;
verification_uri: string;
message?: string;
}
interface LauncherConfig {
min_memory: number;
max_memory: number;
java_path: string;
width: number;
height: number;
}
let versions: Version[] = [];
let selectedVersion = "";
let currentAccount: Account | null = null;
let settings: LauncherConfig = {
min_memory: 1024,
max_memory: 2048,
java_path: "java",
width: 854,
height: 480,
};
// Login UI State
let isLoginModalOpen = false;
let loginMode: "select" | "offline" | "microsoft" = "select";
let offlineUsername = "";
let deviceCodeData: DeviceCodeResponse | null = null;
let msLoginLoading = false;
let msLoginStatus = "Waiting for authorization...";
let isPollingRequestActive = false;
onMount(async () => {
checkAccount();
loadSettings();
getVersion().then((v) => (appVersion = v));
try {
versions = await invoke("get_versions");
if (versions.length > 0) {
// Find latest release or default to first
const latest = versions.find((v) => v.type === "release");
selectedVersion = latest ? latest.id : versions[0].id;
}
} catch (e) {
console.error("Failed to fetch versions:", e);
status = "Error fetching versions: " + e;
}
});
async function checkAccount() {
try {
const acc = await invoke("get_active_account");
currentAccount = acc as Account | null;
} catch (e) {
console.error("Failed to check account:", e);
}
}
async function loadSettings() {
try {
settings = await invoke("get_settings");
} catch (e) {
console.error("Failed to load settings:", e);
}
}
async function saveSettings() {
try {
await invoke("save_settings", { config: settings });
status = "Settings saved!";
} catch (e) {
console.error("Failed to save settings:", e);
status = "Error saving settings: " + e;
}
}
// --- Auth Functions ---
function openLoginModal() {
if (currentAccount) {
if (confirm("Logout " + currentAccount.username + "?")) {
invoke("logout").then(() => (currentAccount = null));
}
return;
}
// Reset state
isLoginModalOpen = true;
loginMode = "select";
offlineUsername = "";
deviceCodeData = null;
msLoginLoading = false;
}
function closeLoginModal() {
stopPolling();
isLoginModalOpen = false;
}
async function performOfflineLogin() {
if (!offlineUsername) return;
try {
currentAccount = (await invoke("login_offline", {
username: offlineUsername,
})) as Account;
isLoginModalOpen = false;
} catch (e) {
alert("Login failed: " + e);
}
}
let pollInterval: any;
// Cleanup on destroy/close
function stopPolling() {
if (pollInterval) {
clearInterval(pollInterval);
pollInterval = null;
}
}
async function startMicrosoftLogin() {
loginMode = "microsoft";
msLoginLoading = true;
msLoginStatus = "Waiting for authorization...";
stopPolling(); // Ensure no duplicates
try {
deviceCodeData = (await invoke(
"start_microsoft_login"
)) as DeviceCodeResponse;
// UX Improvements: Auto Copy & Auto Open
if (deviceCodeData) {
try {
await navigator.clipboard.writeText(deviceCodeData.user_code);
} catch (e) {
console.error("Clipboard failed", e);
}
openLink(deviceCodeData.verification_uri);
// Start Polling
console.log("Starting polling for token...");
const intervalMs = (deviceCodeData.interval || 5) * 1000;
pollInterval = setInterval(
() => checkLoginStatus(deviceCodeData!.device_code),
intervalMs
);
}
} catch (e) {
alert("Failed to start Microsoft login: " + e);
loginMode = "select"; // Go back
} finally {
msLoginLoading = false;
}
}
async function checkLoginStatus(deviceCode: string) {
if (isPollingRequestActive) return;
isPollingRequestActive = true;
console.log("Polling Microsoft API...");
try {
// This will fail with "authorization_pending" until user logs in
currentAccount = (await invoke("complete_microsoft_login", {
deviceCode,
})) as Account;
// If success:
console.log("Login Successful!", currentAccount);
stopPolling();
isLoginModalOpen = false;
status = "Welcome back, " + currentAccount.username;
} catch (e: any) {
const errStr = e.toString();
if (errStr.includes("authorization_pending")) {
console.log("Status: Waiting for user to authorize...");
// Keep checking
} else {
// Real error
console.error("Polling Error:", errStr);
msLoginStatus = "Error: " + errStr;
// Optional: Stop polling on fatal errors?
// expired_token should stop it.
if (
errStr.includes("expired_token") ||
errStr.includes("access_denied")
) {
stopPolling();
alert("Login failed: " + errStr);
loginMode = "select";
}
}
} finally {
isPollingRequestActive = false;
}
}
// Clean up manual button to just be a status indicator or 'Retry Now'
async function completeMicrosoftLogin() {
if (deviceCodeData) checkLoginStatus(deviceCodeData.device_code);
}
function openLink(url: string) {
open(url);
}
async function startGame() {
if (!currentAccount) {
alert("Please login first!");
openLoginModal();
return;
}
if (!selectedVersion) {
alert("Please select a version!");
return;
}
status = "Preparing to launch " + selectedVersion + "...";
console.log("Invoking start_game for version:", selectedVersion);
try {
const msg = await invoke("start_game", { versionId: selectedVersion });
console.log("Response:", msg);
status = msg as string;
} catch (e) {
console.error(e);
status = "Error: " + e;
}
}
</script>
<div
class="flex h-screen bg-zinc-900 text-white font-sans overflow-hidden select-none"
>
<!-- Sidebar -->
<aside
class="w-20 lg:w-64 bg-zinc-950 flex flex-col items-center lg:items-start transition-all duration-300 border-r border-zinc-800 shrink-0"
>
<div
class="h-20 w-full flex items-center justify-center lg:justify-start lg:px-6 border-b border-zinc-800/50"
>
<!-- Icon Logo (Visible on small) -->
<div
class="lg:hidden text-2xl font-black bg-clip-text text-transparent bg-gradient-to-tr from-indigo-400 to-purple-400"
>
D
</div>
<!-- Full Logo (Visible on large) -->
<div
class="hidden lg:block font-bold text-xl tracking-wider text-indigo-400"
>
DROP<span class="text-white">OUT</span>
</div>
</div>
<nav class="flex-1 w-full flex flex-col gap-2 p-3">
<button
class="group flex items-center lg:gap-4 justify-center lg:justify-start w-full px-0 lg:px-4 py-3 rounded-lg hover:bg-zinc-800 {currentView ===
'home'
? 'bg-zinc-800/80 text-white'
: 'text-zinc-400'} transition-all relative"
onclick={() => (currentView = "home")}
>
<span class="text-xl relative z-10">🏠</span>
<span
class="hidden lg:block font-medium relative z-10 transition-opacity"
>Home</span
>
</button>
<button
class="group flex items-center lg:gap-4 justify-center lg:justify-start w-full px-0 lg:px-4 py-3 rounded-lg hover:bg-zinc-800 {currentView ===
'versions'
? 'bg-zinc-800/80 text-white'
: 'text-zinc-400'} transition-all"
onclick={() => (currentView = "versions")}
>
<span class="text-xl">📦</span>
<span class="hidden lg:block font-medium">Versions</span>
</button>
<button
class="group flex items-center lg:gap-4 justify-center lg:justify-start w-full px-0 lg:px-4 py-3 rounded-lg hover:bg-zinc-800 {currentView ===
'settings'
? 'bg-zinc-800/80 text-white'
: 'text-zinc-400'} transition-all"
onclick={() => (currentView = "settings")}
>
<span class="text-xl">⚙️</span>
<span class="hidden lg:block font-medium">Settings</span>
</button>
</nav>
<div
class="p-4 w-full border-t border-zinc-800 flex justify-center lg:justify-start"
>
<div class="text-xs text-zinc-600 font-mono">v{appVersion}</div>
</div>
</aside>
<!-- Main Content -->
<main class="flex-1 flex flex-col relative min-w-0">
<DownloadMonitor />
<!-- Top Bar (Window Controls Placeholder) -->
<div
class="h-8 w-full bg-zinc-900/50 absolute top-0 left-0 z-50 drag-region"
data-tauri-drag-region
>
<!-- Windows/macOS controls would go here or be handled by OS -->
</div>
<!-- Background / Poster area -->
<div class="flex-1 relative overflow-hidden group">
{#if currentView === "home"}
<!-- Background Image -->
<div
class="absolute inset-0 z-0 opacity-40 bg-[url('https://www.minecraft.net/content/dam/games/minecraft/key-art/Minecraft-KeyArt-02_800x450.jpg')] bg-cover bg-center transition-transform duration-[10s] ease-linear group-hover:scale-105"
></div>
<div
class="absolute inset-0 z-0 bg-gradient-to-t from-zinc-900 via-transparent to-black/50"
></div>
<div class="absolute bottom-24 left-8 z-10 p-4">
<h1
class="text-6xl font-black mb-2 tracking-tight text-white drop-shadow-lg"
>
MINECRAFT
</h1>
<div class="flex items-center gap-2 text-zinc-300">
<span
class="bg-zinc-800 text-xs px-2 py-1 rounded border border-zinc-600"
>JAVA EDITION</span
>
<span class="text-lg">Release 1.20.4</span>
</div>
</div>
{:else if currentView === "versions"}
<div class="p-8 h-full overflow-y-auto bg-zinc-900">
<h2 class="text-3xl font-bold mb-6">Versions</h2>
<div class="grid gap-2">
{#if versions.length === 0}
<div class="text-zinc-500">Loading versions...</div>
{:else}
{#each versions as version}
<button
class="flex items-center justify-between p-4 bg-zinc-800 rounded hover:bg-zinc-700 transition text-left border border-zinc-700 {selectedVersion ===
version.id
? 'border-green-500 bg-zinc-800/80 ring-1 ring-green-500'
: ''}"
onclick={() => (selectedVersion = version.id)}
>
<div>
<div class="font-bold font-mono text-lg">{version.id}</div>
<div class="text-xs text-zinc-400 capitalize">
{version.type} • {new Date(
version.releaseTime
).toLocaleDateString()}
</div>
</div>
{#if selectedVersion === version.id}
<div class="text-green-500 font-bold text-sm">SELECTED</div>
{/if}
</button>
{/each}
{/if}
</div>
</div>
{:else if currentView === "settings"}
<div class="p-8 bg-zinc-900 h-full overflow-y-auto">
<h2 class="text-3xl font-bold mb-8">Settings</h2>
<div class="space-y-6 max-w-2xl">
<!-- Java Path -->
<div class="bg-zinc-800/50 p-6 rounded-lg border border-zinc-700">
<label
class="block text-sm font-bold text-zinc-400 mb-2 uppercase tracking-wide"
>Java Executable Path</label
>
<div class="flex gap-2">
<input
bind:value={settings.java_path}
type="text"
class="bg-zinc-950 text-white flex-1 p-3 rounded border border-zinc-700 focus:border-indigo-500 outline-none font-mono text-sm"
placeholder="e.g. java, /usr/bin/java"
/>
</div>
<p class="text-xs text-zinc-500 mt-2">
The command or path to the Java Runtime Environment.
</p>
</div>
<!-- Memory -->
<div class="bg-zinc-800/50 p-6 rounded-lg border border-zinc-700">
<label
class="block text-sm font-bold text-zinc-400 mb-4 uppercase tracking-wide"
>Memory Allocation (RAM)</label
>
<div class="grid grid-cols-2 gap-6">
<div>
<label class="block text-xs text-zinc-500 mb-1"
>Minimum (MB)</label
>
<input
bind:value={settings.min_memory}
type="number"
class="bg-zinc-950 text-white w-full p-3 rounded border border-zinc-700 focus:border-indigo-500 outline-none"
/>
</div>
<div>
<label class="block text-xs text-zinc-500 mb-1"
>Maximum (MB)</label
>
<input
bind:value={settings.max_memory}
type="number"
class="bg-zinc-950 text-white w-full p-3 rounded border border-zinc-700 focus:border-indigo-500 outline-none"
/>
</div>
</div>
</div>
<!-- Resolution -->
<div class="bg-zinc-800/50 p-6 rounded-lg border border-zinc-700">
<label
class="block text-sm font-bold text-zinc-400 mb-4 uppercase tracking-wide"
>Game Window Size</label
>
<div class="grid grid-cols-2 gap-6">
<div>
<label class="block text-xs text-zinc-500 mb-1">Width</label>
<input
bind:value={settings.width}
type="number"
class="bg-zinc-950 text-white w-full p-3 rounded border border-zinc-700 focus:border-indigo-500 outline-none"
/>
</div>
<div>
<label class="block text-xs text-zinc-500 mb-1">Height</label>
<input
bind:value={settings.height}
type="number"
class="bg-zinc-950 text-white w-full p-3 rounded border border-zinc-700 focus:border-indigo-500 outline-none"
/>
</div>
</div>
</div>
<div class="pt-4">
<button
onclick={saveSettings}
class="bg-indigo-600 hover:bg-indigo-500 text-white font-bold py-3 px-8 rounded shadow-lg transition-transform active:scale-95"
>
Save Settings
</button>
</div>
</div>
</div>
{/if}
</div>
<!-- Bottom Bar -->
<div
class="h-24 bg-zinc-900 border-t border-zinc-800 flex items-center px-8 justify-between z-20 shadow-2xl"
>
<div class="flex items-center gap-4">
<div
class="flex items-center gap-4 cursor-pointer hover:opacity-80 transition-opacity"
onclick={openLoginModal}
role="button"
tabindex="0"
onkeydown={(e) => e.key === "Enter" && openLoginModal()}
>
<div
class="w-12 h-12 rounded bg-gradient-to-tr from-indigo-500 to-purple-500 shadow-lg flex items-center justify-center text-white font-bold text-xl overflow-hidden"
>
{#if currentAccount}
<img
src={`https://minotar.net/avatar/${currentAccount.username}/48`}
alt={currentAccount.username}
class="w-full h-full"
/>
{:else}
?
{/if}
</div>
<div>
<div class="font-bold text-white text-lg">
{currentAccount ? currentAccount.username : "Click to Login"}
</div>
<div class="text-xs text-zinc-400 flex items-center gap-1">
<span
class="w-1.5 h-1.5 rounded-full {currentAccount
? 'bg-green-500'
: 'bg-zinc-500'}"
></span>
{currentAccount ? "Ready" : "Guest"}
</div>
</div>
</div>
<!-- Console Toggle -->
<button
class="ml-4 text-xs text-zinc-500 hover:text-zinc-300 transition"
onclick={() => (showConsole = !showConsole)}
>
{showConsole ? "Hide Logs" : "Show Logs"}
</button>
</div>
<div class="flex items-center gap-4">
<div class="flex flex-col items-end mr-2">
<label
class="text-xs text-zinc-500 mb-1 uppercase font-bold tracking-wider"
>Version</label
>
<select
bind:value={selectedVersion}
class="bg-zinc-950 text-zinc-200 border border-zinc-700 rounded px-4 py-2 hover:border-zinc-500 transition-colors cursor-pointer outline-none focus:ring-1 focus:ring-indigo-500 w-48"
>
{#if versions.length === 0}
<option>Loading...</option>
{:else}
{#each versions as version}
<option value={version.id}>{version.id} ({version.type})</option
>
{/each}
{/if}
</select>
</div>
<button
onclick={startGame}
class="bg-green-600 hover:bg-green-500 text-white font-bold h-14 px-12 rounded transition-all transform active:scale-95 shadow-[0_0_15px_rgba(22,163,74,0.4)] hover:shadow-[0_0_25px_rgba(22,163,74,0.6)] flex flex-col items-center justify-center uppercase tracking-wider text-lg"
>
Play
<span
class="text-[10px] font-normal opacity-80 normal-case tracking-normal"
>Click to launch</span
>
</button>
</div>
</div>
</main>
<!-- Login Modal -->
{#if isLoginModalOpen}
<div
class="fixed inset-0 z-[60] flex items-center justify-center bg-black/80 backdrop-blur-sm p-4"
>
<div
class="bg-zinc-900 border border-zinc-700 rounded-xl shadow-2xl p-6 w-full max-w-md animate-in fade-in zoom-in-0 duration-200"
>
<div class="flex justify-between items-center mb-6">
<h2 class="text-2xl font-bold text-white">Login</h2>
<button
onclick={closeLoginModal}
class="text-zinc-500 hover:text-white transition group"
>
✕
</button>
</div>
{#if loginMode === "select"}
<div class="space-y-4">
<button
onclick={startMicrosoftLogin}
class="w-full flex items-center justify-center gap-3 bg-[#2F2F2F] hover:bg-[#3F3F3F] text-white p-4 rounded-lg font-bold border border-transparent hover:border-zinc-500 transition-all group"
>
<!-- Microsoft Logo SVG -->
<svg
class="w-5 h-5"
viewBox="0 0 23 23"
fill="none"
xmlns="http://www.w3.org/2000/svg"
><path fill="#f35325" d="M1 1h10v10H1z" /><path
fill="#81bc06"
d="M12 1h10v10H12z"
/><path fill="#05a6f0" d="M1 12h10v10H1z" /><path
fill="#ffba08"
d="M12 12h10v10H12z"
/></svg
>
Microsoft Account
</button>
<div class="relative py-2">
<div class="absolute inset-0 flex items-center">
<div class="w-full border-t border-zinc-700"></div>
</div>
<div class="relative flex justify-center text-xs uppercase">
<span class="bg-zinc-900 px-2 text-zinc-500">OR</span>
</div>
</div>
<div class="space-y-2">
<input
type="text"
bind:value={offlineUsername}
placeholder="Offline Username"
class="w-full bg-zinc-950 border border-zinc-700 rounded p-3 text-white focus:border-indigo-500 outline-none"
onkeydown={(e) => e.key === "Enter" && performOfflineLogin()}
/>
<button
onclick={performOfflineLogin}
class="w-full bg-zinc-800 hover:bg-zinc-700 text-zinc-300 p-3 rounded font-medium transition-colors"
>
Offline Login
</button>
</div>
</div>
{:else if loginMode === "microsoft"}
<div class="text-center">
{#if msLoginLoading && !deviceCodeData}
<div class="py-8 text-zinc-400 animate-pulse">
Starting login flow...
</div>
{:else if deviceCodeData}
<div class="space-y-4">
<p class="text-sm text-zinc-400">1. Go to this URL:</p>
<button
onclick={() =>
deviceCodeData && openLink(deviceCodeData.verification_uri)}
class="text-indigo-400 hover:text-indigo-300 underline break-all font-mono text-sm"
>
{deviceCodeData.verification_uri}
</button>
<p class="text-sm text-zinc-400 mt-2">2. Enter this code:</p>
<div
class="bg-zinc-950 p-4 rounded border border-zinc-700 font-mono text-2xl tracking-widest text-center select-all cursor-pointer hover:border-indigo-500 transition-colors"
onclick={() =>
navigator.clipboard.writeText(
deviceCodeData?.user_code || ""
)}
>
{deviceCodeData.user_code}
</div>
<p class="text-xs text-zinc-500">Click code to copy</p>
<div class="pt-6 space-y-3">
<div class="flex flex-col items-center gap-3">
<div class="animate-spin rounded-full h-6 w-6 border-2 border-zinc-600 border-t-indigo-500"></div>
<span class="text-sm text-zinc-400 font-medium break-all text-center">{msLoginStatus}</span>
</div>
<p class="text-xs text-zinc-600">This window will update automatically.</p>
</div>
<button
onclick={() => { stopPolling(); loginMode = "select"; }}
class="text-xs text-zinc-500 hover:text-zinc-300 mt-6 underline"
>Cancel</button
>
</div>
{/if}
</div>
{/if}
</div>
</div>
{/if}
<!-- Overlay Status (Toast) -->
{#if status !== "Ready"}
<div
class="absolute top-12 right-12 bg-zinc-800/90 backdrop-blur border border-zinc-600 p-4 rounded-lg shadow-2xl max-w-sm animate-in fade-in slide-in-from-top-4 duration-300 z-50 group"
>
<div class="flex justify-between items-start mb-1">
<div class="text-xs text-zinc-400 uppercase font-bold">Status</div>
<button
onclick={() => (status = "Ready")}
class="text-zinc-500 hover:text-white transition -mt-1 -mr-1 p-1"
>
✕
</button>
</div>
<div class="font-mono text-sm whitespace-pre-wrap mb-2">{status}</div>
<div class="w-full bg-zinc-700/50 h-1 rounded-full overflow-hidden">
<div
class="h-full bg-indigo-500 animate-[progress_5s_linear_forwards] origin-left w-full"
></div>
</div>
</div>
{/if}
<style>
@keyframes progress {
from {
transform: scaleX(1);
}
to {
transform: scaleX(0);
}
}
</style>
<GameConsole visible={showConsole} />
</div>
|