Spaces:
Running
Running
Download index.html from p4cng/quanvortex: direct link, hf CLI and curl.
- Browser
- Download file 24.8 kB
-
https://huggingface.co/spaces/p4cng/quanvortex/resolve/main/index.html
- Command line
-
hf download hf://spaces/p4cng/quanvortex/index.html
-
curl -L -o index.html https://huggingface.co/spaces/p4cng/quanvortex/resolve/main/index.html
24.8 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>QUANTUM VORTEX</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://unpkg.com/feather-icons"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r134/three.min.js"></script> | |
| <style> | |
| @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap'); | |
| body { | |
| font-family: 'Orbitron', sans-serif; | |
| overflow-x: hidden; | |
| } | |
| .glitch { | |
| animation: glitch 1s linear infinite; | |
| } | |
| @keyframes glitch { | |
| 0% { transform: translate(0) } | |
| 20% { transform: translate(-5px, 5px) } | |
| 40% { transform: translate(-5px, -5px) } | |
| 60% { transform: translate(5px, 5px) } | |
| 80% { transform: translate(5px, -5px) } | |
| 100% { transform: translate(0) } | |
| } | |
| .neon-text { | |
| text-shadow: 0 0 10px #00f, 0 0 20px #00f, 0 0 30px #00f; | |
| } | |
| .terminal { | |
| background: rgba(0, 0, 0, 0.8); | |
| border: 1px solid #00ff00; | |
| box-shadow: 0 0 20px #00ff00; | |
| } | |
| .matrix-fall { | |
| position: absolute; | |
| color: #00ff00; | |
| animation: fall linear infinite; | |
| opacity: 0.7; | |
| } | |
| @keyframes fall { | |
| to { transform: translateY(100vh) } | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-black text-white"> | |
| <div id="vanta-bg" class="fixed top-0 left-0 w-full h-full z-0"></div> | |
| <div id="particles-js" class="fixed top-0 left-0 w-full h-full z-1"></div> | |
| <div id="nebula" class="fixed top-0 left-0 w-full h-full z-0 opacity-70"></div> | |
| <video autoplay muted loop id="quantumBg" class="fixed top-0 left-0 w-full h-full object-cover z-0 opacity-30"> | |
| <source src="https://assets.mixkit.co/videos/preview/mixkit-space-with-a-starry-sky-and-nebulae-1195-large.mp4" type="video/mp4"> | |
| </video> | |
| <!-- Matrix rain --> | |
| <div id="matrix-container" class="fixed top-0 left-0 w-full h-full pointer-events-none z-10 overflow-hidden"></div> | |
| <main class="relative z-20 min-h-screen flex flex-col items-center justify-center p-4"> | |
| <div class="text-center mb-12 relative"> | |
| <div class="absolute -inset-8 bg-gradient-to-r from-cyan-500 to-purple-600 rounded-full blur-3xl opacity-40 animate-pulse"></div> | |
| <h1 class="glitch neon-text text-5xl md:text-8xl font-black mb-4 relative" id="main-title"> | |
| <span class="text-outline">QUANTUM</span> <span class="text-stroke">VORTEX</span> | |
| <div class="absolute -bottom-4 left-0 right-0 h-1 bg-gradient-to-r from-transparent via-cyan-400 to-transparent"></div> | |
| </h1> | |
| <p class="terminal inline-block px-4 py-2 rounded-md mb-8 text-green-400 text-xl md:text-2xl typing-effect" id="terminal-text"> | |
| > SYSTEM INITIALIZED: WELCOME TO THE DIGITAL ABYSS | |
| </p> | |
| <div class="absolute -bottom-8 left-0 right-0 h-8 bg-gradient-to-b from-cyan-500/30 to-transparent blur-lg"></div> | |
| </div> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-8 w-full max-w-6xl"> | |
| <!-- Card 1 --> | |
| <div class="terminal p-6 rounded-lg transform hover:scale-105 transition-transform duration-300 hover:shadow-lg hover:shadow-cyan-500/50"> | |
| <div class="flex items-center mb-4"> | |
| <i data-feather="cpu" class="text-cyan-400 mr-3"></i> | |
| <h3 class="text-xl font-bold">NEURAL OVERDRIVE</h3> | |
| </div> | |
| <p class="text-gray-300">Activate quantum processing cores for maximum computational throughput.</p> | |
| <button id="engage-btn" class="mt-4 bg-cyan-600 hover:bg-cyan-700 text-white px-4 py-2 rounded-md transition-all"> | |
| ENGAGE | |
| </button> | |
| </div> | |
| <!-- Card 2 --> | |
| <div class="terminal p-6 rounded-lg transform hover:scale-105 transition-transform duration-300 hover:shadow-lg hover:shadow-purple-500/50"> | |
| <div class="flex items-center mb-4"> | |
| <i data-feather="zap" class="text-purple-400 mr-3"></i> | |
| <h3 class="text-xl font-bold">PLASMA INFUSION</h3> | |
| </div> | |
| <p class="text-gray-300">Channel raw energy from the quantum field into your neural network.</p> | |
| <button id="initiate-btn" class="mt-4 bg-purple-600 hover:bg-purple-700 text-white px-4 py-2 rounded-md transition-all"> | |
| INITIATE | |
| </button> | |
| </div> | |
| <!-- Card 3 --> | |
| <div class="terminal p-6 rounded-lg transform hover:scale-105 transition-transform duration-300 hover:shadow-lg hover:shadow-pink-500/50"> | |
| <div class="flex items-center mb-4"> | |
| <i data-feather="eye" class="text-pink-400 mr-3"></i> | |
| <h3 class="text-xl font-bold">HYPERVISION</h3> | |
| </div> | |
| <p class="text-gray-300">Pierce the veil of reality with our advanced quantum visualization matrix.</p> | |
| <button id="activate-btn" class="mt-4 bg-pink-600 hover:bg-pink-700 text-white px-4 py-2 rounded-md transition-all"> | |
| ACTIVATE | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Secret button --> | |
| <div class="mt-16 relative group"> | |
| <div class="absolute -inset-1 bg-gradient-to-r from-purple-600 to-cyan-500 rounded-lg blur opacity-75 group-hover:opacity-100 transition duration-200"></div> | |
| <button id="surprise-btn" class="relative px-8 py-4 bg-black rounded-lg text-xl font-bold hover:text-cyan-300 transition-all"> | |
| <span class="flex items-center"> | |
| <i data-feather="alert-triangle" class="mr-2"></i> | |
| DO NOT PRESS THIS BUTTON | |
| </span> | |
| </button> | |
| </div> | |
| </main> | |
| <!-- Audio elements --> | |
| <audio id="hover-sound" src="https://assets.mixkit.co/sfx/preview/mixkit-sci-fi-positive-interface-257.mp3" preload="auto"></audio> | |
| <audio id="click-sound" src="https://assets.mixkit.co/sfx/preview/mixkit-arcade-game-jump-coin-216.mp3" preload="auto"></audio> | |
| <script src="https://cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.11.4/gsap.min.js"></script> | |
| <script> | |
| // Initialize multiple background effects | |
| const vantaEffect = VANTA.GLOBE({ | |
| el: "#vanta-bg", | |
| mouseControls: true, | |
| touchControls: true, | |
| gyroControls: false, | |
| minHeight: 200.00, | |
| minWidth: 200.00, | |
| scale: 1.50, | |
| scaleMobile: 1.00, | |
| color: 0x00ffff, | |
| color2: 0xff00ff, | |
| backgroundColor: 0x0, | |
| size: 1.2 | |
| }); | |
| particlesJS("particles-js", { | |
| particles: { | |
| number: { value: 300, density: { enable: true, value_area: 800 } }, | |
| color: { value: "#00ffff" }, | |
| shape: { type: "circle" }, | |
| opacity: { value: 0.5, random: true }, | |
| size: { value: 3, random: true }, | |
| line_linked: { enable: true, distance: 150, color: "#00ffff", opacity: 0.3, width: 1 }, | |
| move: { enable: true, speed: 3, direction: "none", random: true, straight: false, out_mode: "out" } | |
| }, | |
| interactivity: { | |
| detect_on: "canvas", | |
| events: { | |
| onhover: { enable: true, mode: "repulse" }, | |
| onclick: { enable: true, mode: "push" } | |
| } | |
| } | |
| }); | |
| // Create nebula effect | |
| const nebula = document.getElementById('nebula'); | |
| for (let i = 0; i < 10; i++) { | |
| const cloud = document.createElement('div'); | |
| cloud.className = 'absolute rounded-full'; | |
| cloud.style.width = `${100 + Math.random() * 500}px`; | |
| cloud.style.height = `${100 + Math.random() * 500}px`; | |
| cloud.style.background = `radial-gradient(circle, rgba(${ | |
| Math.floor(Math.random() * 100)}, ${Math.floor(Math.random() * 100)}, 255, 0.2) 0%, transparent 70%)`; | |
| cloud.style.left = `${Math.random() * 100}%`; | |
| cloud.style.top = `${Math.random() * 100}%`; | |
| cloud.style.filter = 'blur(50px)'; | |
| nebula.appendChild(cloud); | |
| gsap.to(cloud, { | |
| x: `${Math.random() * 100 - 50}px`, | |
| y: `${Math.random() * 100 - 50}px`, | |
| duration: 10 + Math.random() * 20, | |
| repeat: -1, | |
| yoyo: true, | |
| ease: "sine.inOut" | |
| }); | |
| } | |
| VANTA.GLOBE({ | |
| el: "#vanta-bg", | |
| mouseControls: true, | |
| touchControls: true, | |
| gyroControls: false, | |
| minHeight: 200.00, | |
| minWidth: 200.00, | |
| scale: 1.00, | |
| scaleMobile: 1.00, | |
| color: 0x00ffff, | |
| backgroundColor: 0x0, | |
| size: 0.8 | |
| }); | |
| // Enhanced matrix rain | |
| function createMatrixRain() { | |
| const container = document.getElementById('matrix-container'); | |
| const chars = "01アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヲン∀∃∞≪≫√∛∜∑∏∐−∓∕∗∘∙⋆⋇⋈⋉⋊⋋⋌⋍⋎⋏⋐⋑⋒⋓⋔⋕⋖⋗⋘⋙⋚⋛⋜⋝⋞⋟⋠⋡⋢⋣⋤⋥⋦⋧⋨⋩⋪⋫⋬⋭"; | |
| const colors = ["#00ff00", "#00ffff", "#ff00ff", "#ffff00"]; | |
| // Create 200 matrix streams | |
| for (let i = 0; i < 200; i++) { | |
| const stream = document.createElement('div'); | |
| stream.className = 'matrix-stream absolute'; | |
| stream.style.left = `${Math.random() * 100}%`; | |
| stream.style.top = `${Math.random() * -500}px`; | |
| stream.style.width = '1px'; | |
| stream.style.height = `${50 + Math.random() * 100}px`; | |
| stream.style.background = `linear-gradient(to bottom, transparent, ${colors[Math.floor(Math.random() * colors.length)]})`; | |
| stream.style.animation = `fall ${5 + Math.random() * 15}s linear infinite`; | |
| stream.style.animationDelay = `${Math.random() * 5}s`; | |
| // Add glowing effect | |
| stream.style.boxShadow = `0 0 10px ${colors[Math.floor(Math.random() * colors.length)]}`; | |
| container.appendChild(stream); | |
| } | |
| // Add keyframes for stream animation | |
| const style = document.createElement('style'); | |
| style.innerHTML = ` | |
| @keyframes fall { | |
| to { transform: translateY(calc(100vh + 500px)) } | |
| } | |
| .matrix-stream::after { | |
| content: ''; | |
| position: absolute; | |
| bottom: 0; | |
| left: 0; | |
| right: 0; | |
| height: 50px; | |
| background: linear-gradient(to bottom, rgba(0,255,0,0.8), transparent); | |
| } | |
| `; | |
| document.head.appendChild(style); | |
| } | |
| // Surprise button effect | |
| document.getElementById('surprise-btn').addEventListener('click', function() { | |
| document.getElementById('click-sound').play(); | |
| // Explosion effect | |
| const explosion = document.createElement('div'); | |
| explosion.style.position = 'fixed'; | |
| explosion.style.top = '0'; | |
| explosion.style.left = '0'; | |
| explosion.style.width = '100vw'; | |
| explosion.style.height = '100vh'; | |
| explosion.style.background = 'radial-gradient(circle, rgba(0,255,255,0.8) 0%, rgba(0,0,0,0) 70%)'; | |
| explosion.style.zIndex = '9999'; | |
| explosion.style.pointerEvents = 'none'; | |
| explosion.style.animation = 'explode 1s forwards'; | |
| document.body.appendChild(explosion); | |
| // Add explosion animation | |
| const style = document.createElement('style'); | |
| style.innerHTML = ` | |
| @keyframes explode { | |
| 0% { transform: scale(0); opacity: 1; } | |
| 100% { transform: scale(3); opacity: 0; } | |
| } | |
| @keyframes rainbow { | |
| 0% { color: red; } | |
| 14% { color: orange; } | |
| 28% { color: yellow; } | |
| 42% { color: green; } | |
| 57% { color: blue; } | |
| 71% { color: indigo; } | |
| 85% { color: violet; } | |
| 100% { color: red; } | |
| } | |
| `; | |
| document.head.appendChild(style); | |
| // Change all text to rainbow colors | |
| const texts = document.querySelectorAll('h1, h2, h3, h4, h5, h6, p, span, a, button'); | |
| texts.forEach(text => { | |
| text.style.animation = 'rainbow 0.5s linear infinite'; | |
| text.style.fontWeight = '900'; | |
| }); | |
| // Make everything shake violently | |
| document.body.style.overflow = 'hidden'; | |
| let shakeIntensity = 20; | |
| const shakeInterval = setInterval(() => { | |
| document.body.style.transform = ` | |
| translate(${Math.random() * shakeIntensity - shakeIntensity/2}px, | |
| ${Math.random() * shakeIntensity - shakeIntensity/2}px) | |
| rotate(${Math.random() * shakeIntensity - shakeIntensity/2}deg) | |
| `; | |
| shakeIntensity *= 0.95; | |
| if(shakeIntensity < 1) clearInterval(shakeInterval); | |
| }, 50); | |
| // Remove explosion after animation | |
| setTimeout(() => { | |
| explosion.remove(); | |
| }, 1000); | |
| }); | |
| // Hover sound effects | |
| const buttons = document.querySelectorAll('button'); | |
| buttons.forEach(button => { | |
| button.addEventListener('mouseenter', () => { | |
| document.getElementById('hover-sound').currentTime = 0; | |
| document.getElementById('hover-sound').play(); | |
| }); | |
| }); | |
| // Button effects | |
| document.getElementById('engage-btn').addEventListener('click', () => { | |
| document.getElementById('click-sound').play(); | |
| const card = document.getElementById('engage-btn').parentElement; | |
| card.innerHTML = ` | |
| <div class="text-center p-4"> | |
| <div class="grid grid-cols-3 gap-2 mb-4"> | |
| ${Array(9).fill().map(() => | |
| `<div class="h-8 bg-cyan-400 animate-pulse" style="animation-delay: ${Math.random()*0.5}s"></div>` | |
| ).join('')} | |
| </div> | |
| <p class="text-cyan-300">NEURAL OVERDRIVE ENGAGED</p> | |
| <p class="text-xs text-gray-400 mt-2">Processing at 1.21 GW</p> | |
| </div> | |
| `; | |
| setTimeout(() => location.reload(), 3000); | |
| }); | |
| document.getElementById('initiate-btn').addEventListener('click', () => { | |
| document.getElementById('click-sound').play(); | |
| const card = document.getElementById('initiate-btn').parentElement; | |
| card.innerHTML = ` | |
| <div class="text-center p-4"> | |
| <div class="relative h-16 w-16 mx-auto mb-4"> | |
| <div class="absolute inset-0 rounded-full bg-purple-500 animate-ping"></div> | |
| <div class="absolute inset-2 rounded-full bg-purple-700"></div> | |
| </div> | |
| <p class="text-purple-300">PLASMA INFUSION INITIATED</p> | |
| <p class="text-xs text-gray-400 mt-2">Energy levels critical</p> | |
| </div> | |
| `; | |
| setTimeout(() => location.reload(), 3000); | |
| }); | |
| document.getElementById('activate-btn').addEventListener('click', () => { | |
| document.getElementById('click-sound').play(); | |
| const card = document.getElementById('activate-btn').parentElement; | |
| card.innerHTML = ` | |
| <div class="text-center p-4"> | |
| <div class="eye-container relative w-16 h-8 mx-auto mb-4"> | |
| <div class="absolute left-0 top-0 w-8 h-8 rounded-full bg-pink-500"></div> | |
| <div class="absolute right-0 top-0 w-8 h-8 rounded-full bg-pink-500"></div> | |
| <div class="pupil absolute left-4 top-4 w-2 h-2 rounded-full bg-black transform transition-transform"></div> | |
| <div class="pupil absolute right-4 top-4 w-2 h-2 rounded-full bg-black transform transition-transform"></div> | |
| </div> | |
| <p class="text-pink-300">HYPERVISION ACTIVATED</p> | |
| <p class="text-xs text-gray-400 mt-2">Tracking target...</p> | |
| </div> | |
| `; | |
| // Make eyes follow mouse | |
| card.addEventListener('mousemove', (e) => { | |
| const rect = card.getBoundingClientRect(); | |
| const x = ((e.clientX - rect.left) / rect.width) * 10 - 5; | |
| const y = ((e.clientY - rect.top) / rect.height) * 5 - 2.5; | |
| card.querySelectorAll('.pupil').forEach(pupil => { | |
| pupil.style.transform = `translate(${x}px, ${y}px)`; | |
| }); | |
| }); | |
| setTimeout(() => location.reload(), 3000); | |
| }); | |
| // Initialize all effects | |
| document.addEventListener('DOMContentLoaded', () => { | |
| feather.replace(); | |
| createMatrixRain(); | |
| // Typewriter effect for terminal text | |
| const terminalText = document.getElementById('terminal-text'); | |
| const originalText = terminalText.textContent; | |
| terminalText.textContent = ''; | |
| let i = 0; | |
| const typing = setInterval(() => { | |
| terminalText.textContent += originalText[i]; | |
| i++; | |
| if (i >= originalText.length) { | |
| clearInterval(typing); | |
| // Start blinking cursor | |
| setInterval(() => { | |
| terminalText.classList.toggle('cursor-blink'); | |
| }, 500); | |
| } | |
| }, 50); | |
| // Pulsing title effect | |
| gsap.to("#main-title", { | |
| scale: 1.05, | |
| duration: 2, | |
| repeat: -1, | |
| yoyo: true, | |
| ease: "sine.inOut" | |
| }); | |
| // Add more styles | |
| const dynamicStyles = document.createElement('style'); | |
| dynamicStyles.innerHTML = ` | |
| .text-outline { | |
| -webkit-text-stroke: 2px #00ffff; | |
| text-stroke: 2px #00ffff; | |
| color: transparent; | |
| } | |
| .text-stroke { | |
| -webkit-text-stroke: 2px #ff00ff; | |
| text-stroke: 2px #ff00ff; | |
| color: transparent; | |
| } | |
| .typing-effect { | |
| border-right: 0.15em solid #00ff00; | |
| white-space: nowrap; | |
| overflow: hidden; | |
| } | |
| .cursor-blink { | |
| border-right-color: transparent; | |
| } | |
| @keyframes pulse-glow { | |
| 0%, 100% { text-shadow: 0 0 10px #00f, 0 0 20px #00f, 0 0 30px #00f; } | |
| 50% { text-shadow: 0 0 20px #0ff, 0 0 40px #0ff, 0 0 60px #0ff, 0 0 80px #0ff; } | |
| } | |
| .neon-text { | |
| animation: pulse-glow 2s infinite; | |
| } | |
| `; | |
| document.head.appendChild(dynamicStyles); | |
| // Enhanced glitch effect on title with GSAP | |
| setInterval(() => { | |
| const title = document.querySelector('h1'); | |
| if (Math.random() > 0.5) { | |
| gsap.to(title, { | |
| x: `${Math.random() * 20 - 10}px`, | |
| y: `${Math.random() * 20 - 10}px`, | |
| color: `rgb(${Math.floor(Math.random() * 255)}, ${Math.floor(Math.random() * 255)}, ${Math.floor(Math.random() * 255)})`, | |
| duration: 0.1, | |
| onComplete: () => { | |
| gsap.to(title, { | |
| x: 0, | |
| y: 0, | |
| color: 'white', | |
| duration: 0.3 | |
| }); | |
| } | |
| }); | |
| } | |
| }, 1500); | |
| // Audio effects | |
| document.getElementById('hover-sound').volume = 0.3; | |
| document.getElementById('click-sound').volume = 0.7; | |
| // Add background music | |
| const bgMusic = document.createElement('audio'); | |
| bgMusic.id = 'bg-music'; | |
| bgMusic.src = 'https://assets.mixkit.co/music/preview/mixkit-tech-house-vibes-130.mp3'; | |
| bgMusic.loop = true; | |
| bgMusic.volume = 0.2; | |
| document.body.appendChild(bgMusic); | |
| // Play music on first interaction | |
| document.body.addEventListener('click', function initAudio() { | |
| bgMusic.play(); | |
| document.body.removeEventListener('click', initAudio); | |
| }, { once: true }); | |
| // Add VR headset warning | |
| setTimeout(() => { | |
| const warning = document.createElement('div'); | |
| warning.className = 'fixed top-4 right-4 bg-black text-red-500 px-4 py-2 rounded-md border border-red-500 z-50 animate-pulse'; | |
| warning.textContent = 'WARNING: Quantum energy levels exceeding 9000!'; | |
| document.body.appendChild(warning); | |
| setTimeout(() => { | |
| gsap.to(warning, { | |
| x: 100, | |
| opacity: 0, | |
| duration: 1, | |
| onComplete: () => warning.remove() | |
| }); | |
| }, 3000); | |
| }, 5000); | |
| }); | |
| // Add immersive cursor effect | |
| document.addEventListener('mousemove', (e) => { | |
| if (!document.getElementById('cursor-trail')) { | |
| const trail = document.createElement('div'); | |
| trail.id = 'cursor-trail'; | |
| trail.className = 'fixed rounded-full pointer-events-none z-50'; | |
| trail.style.width = '20px'; | |
| trail.style.height = '20px'; | |
| trail.style.background = 'radial-gradient(circle, #00ffff, transparent 70%)'; | |
| trail.style.filter = 'blur(2px)'; | |
| document.body.appendChild(trail); | |
| } | |
| const trail = document.getElementById('cursor-trail'); | |
| gsap.to(trail, { | |
| x: e.clientX - 10, | |
| y: e.clientY - 10, | |
| duration: 0.3, | |
| ease: "power2.out" | |
| }); | |
| // Create sparkles | |
| if (Math.random() > 0.7) { | |
| const sparkle = document.createElement('div'); | |
| sparkle.className = 'fixed rounded-full pointer-events-none z-50'; | |
| sparkle.style.width = '5px'; | |
| sparkle.style.height = '5px'; | |
| sparkle.style.background = `radial-gradient(circle, #${Math.floor(Math.random()*16777215).toString(16)}, transparent)`; | |
| sparkle.style.left = `${e.clientX}px`; | |
| sparkle.style.top = `${e.clientY}px`; | |
| document.body.appendChild(sparkle); | |
| gsap.to(sparkle, { | |
| x: `${Math.random() * 40 - 20}px`, | |
| y: `${Math.random() * 40 - 20}px`, | |
| opacity: 0, | |
| scale: 2, | |
| duration: 0.5, | |
| onComplete: () => sparkle.remove() | |
| }); | |
| } | |
| }); | |
| </script> | |
| </body> | |
| </html> | |