Files
instant-replay/renderer.html
Space-Banane 5d6f678e77 first commit
2026-01-16 21:50:47 +01:00

169 lines
5.5 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Instant Replay Viewer</title>
<style>
html, body {
margin: 0;
padding: 0;
width: 100vw;
height: 100vh;
background: transparent;
overflow: hidden;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}
.video-overlay {
position: fixed;
top: 0; left: 0;
width: 100vw; height: 100vh;
background: transparent;
display: flex;
align-items: center;
justify-content: center;
z-index: 9999;
pointer-events: none;
}
.video-overlay.hidden {
display: none;
}
video {
width: 100vw;
height: 100vh;
object-fit: contain;
background: rgba(0, 0, 0, 0.95);
border: 1px solid rgba(255, 255, 255, 0.12);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
border-radius: 12px;
pointer-events: none;
}
@keyframes spin {
0% { transform: rotate(0deg);}
100% { transform: rotate(360deg);}
}
@keyframes shimmer {
0% { background-position: -200% center;}
100% { background-position: 200% center;}
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(8px);}
to { opacity: 1; transform: translateY(0);}
}
.loading-container {
display: none;
align-items: center;
justify-content: center;
width: 100vw;
height: 100vh;
position: absolute;
top: 0;
left: 0;
z-index: 10000;
background: transparent;
}
.loading-card {
background: rgba(20, 20, 20, 0.85);
backdrop-filter: blur(40px);
-webkit-backdrop-filter: blur(40px);
border-radius: 20px;
padding: 48px 56px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
display: flex;
flex-direction: column;
align-items: center;
animation: fadeIn 0.3s ease-out;
min-width: 320px;
}
.spinner {
width: 52px;
height: 52px;
border: 3px solid rgba(255, 255, 255, 0.1);
border-top: 3px solid rgba(255, 182, 193, 0.9);
border-radius: 50%;
animation: spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.loading-text {
margin-top: 28px;
color: rgba(255, 255, 255, 0.95);
font-size: 15px;
font-weight: 500;
text-align: center;
letter-spacing: 0.3px;
}
.loading-bar-container {
width: 200px;
height: 2px;
margin-top: 20px;
background: rgba(255, 255, 255, 0.08);
border-radius: 2px;
overflow: hidden;
position: relative;
}
.loading-bar {
height: 100%;
width: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 182, 193, 0.6), transparent);
background-size: 200% 100%;
animation: shimmer 1.5s ease-in-out infinite;
}
.progress-wrapper {
width: 100%;
max-width: 600px;
margin-top: 16px;
display: none;
}
.progress-bar-bg {
height: 4px;
background: rgba(255, 255, 255, 0.1);
border-radius: 2px;
overflow: hidden;
position: relative;
}
.progress-bar-fill {
height: 100%;
width: 0%;
background: linear-gradient(90deg, rgba(255, 182, 193, 0.8), rgba(255, 182, 193, 0.95));
border-radius: 2px;
transition: width 0.2s ease-out;
box-shadow: 0 0 8px rgba(255, 182, 193, 0.4);
}
.timer-display {
text-align: center;
margin-top: 12px;
color: rgba(255, 255, 255, 0.85);
font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
font-size: 13px;
font-weight: 400;
letter-spacing: 0.5px;
}
</style>
</head>
<body>
<div class="video-overlay hidden" id="videoOverlay">
<div style="display: flex; flex-direction: column; align-items: center; width: 100%;">
<div class="loading-container" id="loadingSpinner">
<div class="loading-card">
<div class="spinner"></div>
<div class="loading-text" id="loadingStatusText">
Preparing replay
</div>
<div class="loading-bar-container">
<div class="loading-bar"></div>
</div>
</div>
</div>
<video id="videoPlayer" autoplay muted>
<p>Your browser doesn't support HTML5 video.</p>
</video>
<div class="progress-wrapper" id="progressContainer">
<div class="progress-bar-bg">
<div class="progress-bar-fill" id="progressFill"></div>
</div>
<div class="timer-display" id="timer"></div>
</div>
</div>
</div>
<script src="renderer.js"></script>
</body>
</html>