Fix ENTER XR button centering and improve preloader styling

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Michael Mainguy 2025-12-01 12:10:12 -06:00
parent 1528f54472
commit 3104859bb7
2 changed files with 13 additions and 4 deletions

View File

@ -750,7 +750,7 @@ body {
.preloader-content {
text-align: center;
max-width: 600px;
max-width: 800px;
width: 100%;
}
@ -787,6 +787,12 @@ body {
box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}
.preloader-button-container {
display: flex;
flex-direction: column;
text-align: center;
}
.preloader-button {
display: none;
padding: var(--space-lg) var(--space-3xl);
@ -859,7 +865,7 @@ body {
padding: 0;
margin: var(--space-md) 0 0 0;
text-align: left;
max-width: 400px;
max-width: 600px;
margin-left: auto;
margin-right: auto;
}

View File

@ -39,7 +39,10 @@ export class Preloader {
<div id="preloaderError" class="preloader-error" style="display: none;">
VR headset not detected. This game requires a VR device.
</div>
<div class="preloader-button-container">
<button id="preloaderStartBtn" class="preloader-button">ENTER XR</button>
</div>
</div>`;
}
@ -104,7 +107,7 @@ export class Preloader {
private animateButtonIn(): void {
if (!this.startButton) return;
this.startButton.style.display = 'block';
this.startButton.style.display = 'inline-block';
this.startButton.style.opacity = '0';
this.startButton.style.transform = 'translateY(20px)';
setTimeout(() => {