Spaces:
Running
Running
Update index.html
Browse files- index.html +50 -21
index.html
CHANGED
|
@@ -328,19 +328,45 @@
|
|
| 328 |
</div>
|
| 329 |
</section>
|
| 330 |
|
| 331 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 332 |
<div class="max-w-5xl mx-auto reveal-on-scroll">
|
| 333 |
|
| 334 |
-
<div class="text-center mb-8
|
| 335 |
<h2 class="font-serif text-3xl md:text-4xl font-bold mb-4">
|
| 336 |
-
|
| 337 |
</h2>
|
| 338 |
<p class="font-mono text-xs md:text-sm opacity-70 max-w-lg mx-auto">
|
| 339 |
-
// <
|
|
|
|
| 340 |
</p>
|
| 341 |
</div>
|
| 342 |
|
| 343 |
-
<div id="game-monitor" class="relative w-full aspect-
|
| 344 |
|
| 345 |
<div class="absolute top-0 left-0 w-full h-8 bg-[#0a0a0a] border-b border-[#00ff41]/50 flex items-center justify-between px-4 z-20 select-none pointer-events-none">
|
| 346 |
<div class="flex items-center gap-2">
|
|
@@ -354,31 +380,33 @@
|
|
| 354 |
<div class="w-16 h-16 rounded-full border-2 border-[#00ff41] flex items-center justify-center mb-4 animate-pulse shadow-[0_0_20px_#00ff41]">
|
| 355 |
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" fill="#00ff41" stroke="none"><polygon points="5 3 19 12 5 21 5 3"></polygon></svg>
|
| 356 |
</div>
|
| 357 |
-
<p class="text-[#00ff41] font-mono text-xs md:text-sm tracking-widest uppercase font-bold">
|
| 358 |
-
TAP TO
|
|
|
|
| 359 |
</p>
|
| 360 |
</div>
|
| 361 |
|
| 362 |
-
<
|
| 363 |
-
|
| 364 |
-
|
| 365 |
-
|
| 366 |
-
|
| 367 |
-
|
| 368 |
-
|
| 369 |
-
|
| 370 |
-
|
| 371 |
-
|
|
|
|
| 372 |
|
| 373 |
<div class="absolute inset-0 pointer-events-none z-10 bg-[linear-gradient(rgba(18,16,16,0)_50%,rgba(0,0,0,0.1)_50%),linear-gradient(90deg,rgba(255,0,0,0.03),rgba(0,255,0,0.01),rgba(0,0,255,0.03))] bg-[length:100%_2px,3px_100%] opacity-50"></div>
|
| 374 |
</div>
|
| 375 |
|
| 376 |
-
<div class="mt-4 flex justify-between items-center px-2">
|
| 377 |
<p class="text-[10px] text-[#00ff41]/50 font-mono">
|
| 378 |
-
[
|
| 379 |
</p>
|
| 380 |
<div class="flex gap-4 text-[10px] text-[#00ff41]/50 font-mono">
|
| 381 |
-
<span>INPUT: TAP
|
| 382 |
<span>STATUS: READY</span>
|
| 383 |
</div>
|
| 384 |
</div>
|
|
@@ -390,10 +418,11 @@
|
|
| 390 |
function activateGame() {
|
| 391 |
const overlay = document.getElementById('game-overlay');
|
| 392 |
const iframe = document.getElementById('game-iframe');
|
|
|
|
| 393 |
overlay.style.opacity = '0';
|
| 394 |
setTimeout(() => overlay.style.display = 'none', 500);
|
|
|
|
| 395 |
iframe.contentWindow.focus();
|
| 396 |
-
console.log("Game Activated: Focus transferred");
|
| 397 |
}
|
| 398 |
</script>
|
| 399 |
|
|
|
|
| 328 |
</div>
|
| 329 |
</section>
|
| 330 |
|
| 331 |
+
<style>
|
| 332 |
+
/* Su mobile, forziamo l'iframe a essere il 140% più grande
|
| 333 |
+
e poi lo scaliamo giù al 71%.
|
| 334 |
+
Risultato: Vedi più area di gioco (zoom out) e le scritte non si tagliano. */
|
| 335 |
+
.game-zoom-container {
|
| 336 |
+
width: 100%;
|
| 337 |
+
height: 100%;
|
| 338 |
+
overflow: hidden;
|
| 339 |
+
}
|
| 340 |
+
.game-zoom-frame {
|
| 341 |
+
width: 100%;
|
| 342 |
+
height: 100%;
|
| 343 |
+
border: none;
|
| 344 |
+
}
|
| 345 |
+
|
| 346 |
+
@media (max-width: 768px) {
|
| 347 |
+
.game-zoom-frame {
|
| 348 |
+
width: 142%; /* 100% * 1.42 */
|
| 349 |
+
height: 142%; /* Mantiene le proporzioni */
|
| 350 |
+
transform: scale(0.7); /* Rimpicciolisce tutto per farlo stare */
|
| 351 |
+
transform-origin: top left;
|
| 352 |
+
}
|
| 353 |
+
}
|
| 354 |
+
</style>
|
| 355 |
+
|
| 356 |
+
<section class="px-6 py-24 relative z-10 bg-black/40 backdrop-blur-sm border-t border-[#333]">
|
| 357 |
<div class="max-w-5xl mx-auto reveal-on-scroll">
|
| 358 |
|
| 359 |
+
<div class="text-center mb-8">
|
| 360 |
<h2 class="font-serif text-3xl md:text-4xl font-bold mb-4">
|
| 361 |
+
System <span class="text-[#00ff41]">Override</span>
|
| 362 |
</h2>
|
| 363 |
<p class="font-mono text-xs md:text-sm opacity-70 max-w-lg mx-auto">
|
| 364 |
+
// Mobile Detected. <br>
|
| 365 |
+
// <span class="text-[#00ff41]">Mission:</span> TAP per saltare. Evita i Silos.
|
| 366 |
</p>
|
| 367 |
</div>
|
| 368 |
|
| 369 |
+
<div id="game-monitor" class="relative w-full aspect-[3/4] md:aspect-[21/9] rounded-xl overflow-hidden border-2 border-[#00ff41] shadow-[0_0_40px_rgba(0,255,65,0.15)] bg-black group transition-all hover:shadow-[0_0_60px_rgba(0,255,65,0.25)] mx-auto max-w-sm md:max-w-full">
|
| 370 |
|
| 371 |
<div class="absolute top-0 left-0 w-full h-8 bg-[#0a0a0a] border-b border-[#00ff41]/50 flex items-center justify-between px-4 z-20 select-none pointer-events-none">
|
| 372 |
<div class="flex items-center gap-2">
|
|
|
|
| 380 |
<div class="w-16 h-16 rounded-full border-2 border-[#00ff41] flex items-center justify-center mb-4 animate-pulse shadow-[0_0_20px_#00ff41]">
|
| 381 |
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" fill="#00ff41" stroke="none"><polygon points="5 3 19 12 5 21 5 3"></polygon></svg>
|
| 382 |
</div>
|
| 383 |
+
<p class="text-[#00ff41] font-mono text-xs md:text-sm tracking-widest uppercase font-bold text-center px-4">
|
| 384 |
+
TAP TO START<br>
|
| 385 |
+
<span class="text-[10px] opacity-70 font-normal normal-case mt-2 block">Audio consigliato on</span>
|
| 386 |
</p>
|
| 387 |
</div>
|
| 388 |
|
| 389 |
+
<div class="game-zoom-container pt-8 bg-black">
|
| 390 |
+
<iframe
|
| 391 |
+
id="game-iframe"
|
| 392 |
+
src="./play.html"
|
| 393 |
+
class="game-zoom-frame"
|
| 394 |
+
scrolling="no"
|
| 395 |
+
loading="lazy"
|
| 396 |
+
style="touch-action: none;"
|
| 397 |
+
title="Innovation Run Game">
|
| 398 |
+
</iframe>
|
| 399 |
+
</div>
|
| 400 |
|
| 401 |
<div class="absolute inset-0 pointer-events-none z-10 bg-[linear-gradient(rgba(18,16,16,0)_50%,rgba(0,0,0,0.1)_50%),linear-gradient(90deg,rgba(255,0,0,0.03),rgba(0,255,0,0.01),rgba(0,0,255,0.03))] bg-[length:100%_2px,3px_100%] opacity-50"></div>
|
| 402 |
</div>
|
| 403 |
|
| 404 |
+
<div class="mt-4 flex justify-between items-center px-2 max-w-sm md:max-w-full mx-auto">
|
| 405 |
<p class="text-[10px] text-[#00ff41]/50 font-mono">
|
| 406 |
+
[12:16 MODE ACTIVE]
|
| 407 |
</p>
|
| 408 |
<div class="flex gap-4 text-[10px] text-[#00ff41]/50 font-mono">
|
| 409 |
+
<span>INPUT: TAP</span>
|
| 410 |
<span>STATUS: READY</span>
|
| 411 |
</div>
|
| 412 |
</div>
|
|
|
|
| 418 |
function activateGame() {
|
| 419 |
const overlay = document.getElementById('game-overlay');
|
| 420 |
const iframe = document.getElementById('game-iframe');
|
| 421 |
+
|
| 422 |
overlay.style.opacity = '0';
|
| 423 |
setTimeout(() => overlay.style.display = 'none', 500);
|
| 424 |
+
|
| 425 |
iframe.contentWindow.focus();
|
|
|
|
| 426 |
}
|
| 427 |
</script>
|
| 428 |
|