-
Notifications
You must be signed in to change notification settings - Fork 0
/
user.html
163 lines (141 loc) · 4.53 KB
/
user.html
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
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Retro Achievements</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Press Start 2P', cursive;
background-color: #4A0E4E; /* Fondo morado oscuro */
color: #fff;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
overflow: hidden;
}
.container {
text-align: center;
padding: 20px;
position: relative;
}
h1 {
font-size: 24px;
margin-bottom: 20px;
color: #FFA500; /* Naranja */
text-shadow: 2px 2px #800080; /* Sombra morada */
}
p {
font-size: 16px;
margin-bottom: 20px;
color: #FFD700; /* Amarillo dorado */
}
.loading {
width: 100%;
max-width: 300px;
height: 20px;
background-color: #2E062F; /* Morado más oscuro */
border: 2px solid #FFA500; /* Borde naranja */
margin: 20px auto;
position: relative;
overflow: hidden;
}
.loading-bar {
width: 0%;
height: 100%;
background-color: #FFA500; /* Barra de carga naranja */
transition: width 1s linear;
}
.pixel-art {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
z-index: -1;
opacity: 0.2;
}
.pixel {
position: absolute;
width: 10px;
height: 10px;
background-color: #fff;
}
@media (max-width: 768px) {
h1 {
font-size: 20px;
}
p {
font-size: 14px;
}
.loading {
max-width: 250px;
}
}
@media (max-width: 480px) {
h1 {
font-size: 18px;
}
p {
font-size: 12px;
}
.loading {
max-width: 200px;
}
}
</style>
</head>
<body>
<div class="container">
<h1>RETRO ACHIEVEMENTS</h1>
<div class="loading">
<div class="loading-bar" id="loadingBar"></div>
</div>
<p id="redirect-message">3</p>
</div>
<div class="pixel-art" id="pixelArt"></div>
<script>
// Crear píxeles para el fondo
const pixelArt = document.getElementById('pixelArt');
for (let i = 0; i < 100; i++) {
const pixel = document.createElement('div');
pixel.classList.add('pixel');
pixel.style.left = `${Math.random() * 100}%`;
pixel.style.top = `${Math.random() * 100}%`;
pixel.style.backgroundColor = ['#FFA500', '#800080', '#FFD700'][Math.floor(Math.random() * 3)];
pixelArt.appendChild(pixel);
}
// Lógica de redirección
window.onload = function() {
let count = 3;
const redirectMessage = document.getElementById('redirect-message');
const loadingBar = document.getElementById('loadingBar');
const countdownInterval = setInterval(() => {
count--;
redirectMessage.textContent = `${count}`;
loadingBar.style.width = `${(3 - count) / 3 * 100}%`;
if (count === 0) {
clearInterval(countdownInterval);
const urlParams = new URLSearchParams(window.location.search);
const gameId = urlParams.get('id');
if (gameId) {
window.location = `retroachievements://game/${gameId}`;
} else {
window.location = 'retroachievements://open';
}
setTimeout(function() {
window.location = 'https://play.google.com/store/apps/details?id=com.akissame.retroachievements';
}, 500);
}
}, 1000);
}
</script>
</body>
</html>