Spaces:
Running
Running
Download index.html from simon4good/websitetest: direct link, hf CLI and curl.
- Browser
- Download file 5.29 kB
-
https://huggingface.co/spaces/simon4good/websitetest/resolve/main/index.html
- Command line
-
hf download hf://spaces/simon4good/websitetest/index.html
-
curl -L -o index.html https://huggingface.co/spaces/simon4good/websitetest/resolve/main/index.html
5.29 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Advanced Audio Visualizer</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <style> | |
| body { | |
| overflow: hidden; | |
| background-color: #000; | |
| margin: 0; | |
| font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; | |
| } | |
| canvas { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| z-index: 1; | |
| } | |
| .controls { | |
| position: fixed; | |
| bottom: 20px; | |
| left: 50%; | |
| transform: translateX(-50%); | |
| z-index: 10; | |
| background: rgba(0, 0, 0, 0.7); | |
| padding: 20px; | |
| border-radius: 20px; | |
| backdrop-filter: blur(10px); | |
| border: 1px solid rgba(255, 255, 255, 0.1); | |
| box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); | |
| } | |
| .slider-container { | |
| width: 300px; | |
| max-width: 90vw; | |
| } | |
| .mic-btn { | |
| transition: all 0.3s ease; | |
| box-shadow: 0 0 20px rgba(255, 255, 255, 0.3); | |
| } | |
| .mic-btn.active { | |
| transform: scale(1.1); | |
| box-shadow: 0 0 30px rgba(255, 0, 0, 0.5); | |
| background-color: #ef4444; | |
| } | |
| .pulse { | |
| animation: pulse 2s infinite; | |
| } | |
| @keyframes pulse { | |
| 0% { transform: scale(1); } | |
| 50% { transform: scale(1.05); } | |
| 100% { transform: scale(1); } | |
| } | |
| .gradient-text { | |
| background: linear-gradient(90deg, #ff00cc, #3333ff, #00ffcc); | |
| -webkit-background-clip: text; | |
| background-clip: text; | |
| color: transparent; | |
| animation: gradient 8s ease infinite; | |
| background-size: 400% 400%; | |
| } | |
| @keyframes gradient { | |
| 0% { background-position: 0% 50%; } | |
| 50% { background-position: 100% 50%; } | |
| 100% { background-position: 0% 50%; } | |
| } | |
| .effect-btn { | |
| transition: all 0.2s ease; | |
| } | |
| .effect-btn.active { | |
| transform: translateY(-5px); | |
| box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2); | |
| } | |
| .glow { | |
| filter: drop-shadow(0 0 5px currentColor); | |
| } | |
| </style> | |
| </head> | |
| <body class="h-screen w-screen flex flex-col items-center justify-center"> | |
| <canvas id="visualizer"></canvas> | |
| <div class="text-center mb-8 z-10"> | |
| <h1 class="text-5xl font-bold mb-2 gradient-text">Advanced Audio Visualizer</h1> | |
| <p class="text-white/70 max-w-lg">Experience stunning visual effects powered by your microphone input</p> | |
| </div> | |
| <div class="controls flex flex-col items-center gap-6"> | |
| <div class="slider-container"> | |
| <label for="intensity" class="block text-white text-sm font-medium mb-2">Effect Intensity</label> | |
| <input type="range" id="intensity" min="0" max="100" value="50" | |
| class="w-full h-2 bg-gray-700 rounded-lg appearance-none cursor-pointer"> | |
| <div class="flex justify-between text-xs text-white mt-1"> | |
| <span>Subtle</span> | |
| <span>Wild</span> | |
| </div> | |
| </div> | |
| <button id="micButton" class="mic-btn bg-white text-black font-bold py-4 px-6 rounded-full flex items-center gap-2 pulse"> | |
| <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor"> | |
| <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 11a7 7 0 01-7 7m0 0a7 7 0 01-7-7m7 7v4m0 0H8m4 0h4m-4-8a3 3 0 01-3-3V5a3 3 0 116 0v6a3 3 0 01-3 3z" /> | |
| </svg> | |
| <span>Press to Start</span> | |
| </button> | |
| <div class="grid grid-cols-3 gap-2"> | |
| <button id="effect1" class="effect-btn bg-purple-600 hover:bg-purple-700 text-white font-medium py-2 px-4 rounded-full glow"> | |
| <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 inline mr-1" fill="none" viewBox="0 0 24 24" stroke="currentColor"> | |
| <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19V6l12-3v13M9 19c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zm12-3c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zM9 10l12-3" /> | |
| </svg> | |
| Wave | |
| </button> | |
| <button id="effect2" class="effect-btn bg-blue-600 hover:bg-blue-700 text-white font-medium py-2 px-4 rounded-full glow"> | |
| <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 inline mr-1" fill="none" viewBox="0 0 24 24" stroke="currentColor"> | |
| <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z" /> | |
| </svg> | |
| Lightning | |
| </button> | |
| <button id="effect3" class="effect-btn bg-green-600 hover:bg-green-700 text-white font-medium py-2 px-4 rounded-full glow"> | |
| <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 inline mr-1" fill="none" viewBox="0 0 24 24" stroke="currentColor"> | |
| <path | |
| </html> |