Spaces:
Running
Running
Download index.html from pock2929/pocksstore: direct link, hf CLI and curl.
- Browser
- Download file 22.9 kB
-
https://huggingface.co/spaces/pock2929/pocksstore/resolve/main/index.html
- Command line
-
hf download hf://spaces/pock2929/pocksstore/index.html
-
curl -L -o index.html https://huggingface.co/spaces/pock2929/pocksstore/resolve/main/index.html
22.9 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Cosmic Explorer</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <style> | |
| .star { | |
| position: absolute; | |
| background-color: white; | |
| border-radius: 50%; | |
| animation: twinkle var(--duration) infinite ease-in-out; | |
| } | |
| @keyframes twinkle { | |
| 0%, 100% { opacity: 0.2; } | |
| 50% { opacity: 1; } | |
| } | |
| .planet { | |
| transition: all 0.5s ease; | |
| } | |
| .planet:hover { | |
| transform: scale(1.1); | |
| filter: drop-shadow(0 0 10px rgba(255,255,255,0.7)); | |
| } | |
| .spaceship { | |
| animation: float 6s infinite ease-in-out; | |
| } | |
| @keyframes float { | |
| 0%, 100% { transform: translateY(0); } | |
| 50% { transform: translateY(-20px); } | |
| } | |
| .comet { | |
| position: absolute; | |
| width: 6px; | |
| height: 6px; | |
| background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 50%, rgba(255,255,255,0) 100%); | |
| border-radius: 50%; | |
| filter: blur(1px); | |
| animation: cometFly var(--duration) linear infinite; | |
| } | |
| @keyframes cometFly { | |
| 0% { transform: translate(var(--startX), var(--startY)); opacity: 0; } | |
| 10% { opacity: 1; } | |
| 90% { opacity: 1; } | |
| 100% { transform: translate(var(--endX), var(--endY)); opacity: 0; } | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-black text-white min-h-screen overflow-x-hidden relative"> | |
| <!-- Background stars --> | |
| <div id="stars-container"></div> | |
| <!-- Comets --> | |
| <div id="comets-container"></div> | |
| <!-- Main content --> | |
| <div class="container mx-auto px-4 py-8 relative z-10"> | |
| <!-- Header --> | |
| <header class="flex flex-col md:flex-row justify-between items-center mb-12"> | |
| <div class="flex items-center mb-4 md:mb-0"> | |
| <i class="fas fa-rocket text-3xl text-purple-400 mr-3"></i> | |
| <h1 class="text-3xl md:text-4xl font-bold bg-gradient-to-r from-purple-400 via-pink-500 to-blue-500 bg-clip-text text-transparent"> | |
| Cosmic Explorer | |
| </h1> | |
| </div> | |
| <div class="flex space-x-4"> | |
| <button class="px-4 py-2 rounded-full bg-purple-900 hover:bg-purple-700 transition-all"> | |
| <i class="fas fa-home mr-2"></i> Dashboard | |
| </button> | |
| <button class="px-4 py-2 rounded-full bg-gray-800 hover:bg-gray-700 transition-all"> | |
| <i class="fas fa-cog mr-2"></i> Settings | |
| </button> | |
| </div> | |
| </header> | |
| <!-- Dashboard --> | |
| <div class="grid grid-cols-1 lg:grid-cols-3 gap-8 mb-12"> | |
| <!-- Mission Status --> | |
| <div class="bg-gray-900 bg-opacity-70 backdrop-blur-md rounded-xl p-6 border border-gray-800 shadow-lg hover:shadow-purple-500/20 transition-all"> | |
| <h2 class="text-xl font-semibold mb-4 flex items-center"> | |
| <i class="fas fa-clipboard-check text-purple-400 mr-2"></i> Mission Status | |
| </h2> | |
| <div class="space-y-4"> | |
| <div class="flex justify-between items-center"> | |
| <span>Fuel Level</span> | |
| <div class="w-1/2 bg-gray-700 rounded-full h-2.5"> | |
| <div class="bg-blue-500 h-2.5 rounded-full" style="width: 78%"></div> | |
| </div> | |
| </div> | |
| <div class="flex justify-between items-center"> | |
| <span>Oxygen Supply</span> | |
| <div class="w-1/2 bg-gray-700 rounded-full h-2.5"> | |
| <div class="bg-green-500 h-2.5 rounded-full" style="width: 92%"></div> | |
| </div> | |
| </div> | |
| <div class="flex justify-between items-center"> | |
| <span>Shield Integrity</span> | |
| <div class="w-1/2 bg-gray-700 rounded-full h-2.5"> | |
| <div class="bg-yellow-500 h-2.5 rounded-full" style="width: 65%"></div> | |
| </div> | |
| </div> | |
| </div> | |
| <button id="launch-btn" class="mt-6 w-full py-3 bg-gradient-to-r from-purple-600 to-blue-600 rounded-lg font-medium hover:from-purple-700 hover:to-blue-700 transition-all flex items-center justify-center"> | |
| <i class="fas fa-play mr-2"></i> Initiate Launch Sequence | |
| </button> | |
| </div> | |
| <!-- Planetary System --> | |
| <div class="bg-gray-900 bg-opacity-70 backdrop-blur-md rounded-xl p-6 border border-gray-800 shadow-lg hover:shadow-purple-500/20 transition-all lg:col-span-2"> | |
| <h2 class="text-xl font-semibold mb-6 flex items-center"> | |
| <i class="fas fa-globe-americas text-purple-400 mr-2"></i> Nearby Planetary Systems | |
| </h2> | |
| <div class="grid grid-cols-2 sm:grid-cols-4 gap-4"> | |
| <div class="planet flex flex-col items-center cursor-pointer group"> | |
| <div class="w-16 h-16 rounded-full bg-gradient-to-br from-yellow-200 to-yellow-500 shadow-lg group-hover:shadow-yellow-400/50 mb-2"></div> | |
| <span class="text-sm">Alpha Centauri</span> | |
| <span class="text-xs text-gray-400">4.3 light years</span> | |
| </div> | |
| <div class="planet flex flex-col items-center cursor-pointer group"> | |
| <div class="w-16 h-16 rounded-full bg-gradient-to-br from-red-300 to-red-600 shadow-lg group-hover:shadow-red-400/50 mb-2"></div> | |
| <span class="text-sm">Proxima B</span> | |
| <span class="text-xs text-gray-400">4.2 light years</span> | |
| </div> | |
| <div class="planet flex flex-col items-center cursor-pointer group"> | |
| <div class="w-16 h-16 rounded-full bg-gradient-to-br from-blue-300 to-blue-600 shadow-lg group-hover:shadow-blue-400/50 mb-2"></div> | |
| <span class="text-sm">Trappist-1e</span> | |
| <span class="text-xs text-gray-400">39 light years</span> | |
| </div> | |
| <div class="planet flex flex-col items-center cursor-pointer group"> | |
| <div class="w-16 h-16 rounded-full bg-gradient-to-br from-green-300 to-green-600 shadow-lg group-hover:shadow-green-400/50 mb-2"></div> | |
| <span class="text-sm">Kepler-186f</span> | |
| <span class="text-xs text-gray-400">492 light years</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Spacecraft Control --> | |
| <div class="bg-gray-900 bg-opacity-70 backdrop-blur-md rounded-xl p-6 border border-gray-800 shadow-lg hover:shadow-purple-500/20 transition-all mb-12"> | |
| <h2 class="text-xl font-semibold mb-6 flex items-center"> | |
| <i class="fas fa-space-shuttle text-purple-400 mr-2"></i> Spacecraft Control | |
| </h2> | |
| <div class="flex flex-col md:flex-row items-center"> | |
| <div class="spaceship mb-6 md:mb-0 md:mr-8"> | |
| <svg width="120" height="120" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> | |
| <path d="M12 2L4 12L12 22L20 12L12 2Z" stroke="url(#paint0_linear)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> | |
| <path d="M4 12H20" stroke="url(#paint1_linear)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> | |
| <path d="M12 2V22" stroke="url(#paint2_linear)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> | |
| <defs> | |
| <linearGradient id="paint0_linear" x1="12" y1="2" x2="12" y2="22" gradientUnits="userSpaceOnUse"> | |
| <stop stop-color="#8B5CF6"/> | |
| <stop offset="1" stop-color="#EC4899"/> | |
| </linearGradient> | |
| <linearGradient id="paint1_linear" x1="12" y1="12" x2="12" y2="12" gradientUnits="userSpaceOnUse"> | |
| <stop stop-color="#8B5CF6"/> | |
| <stop offset="1" stop-color="#EC4899"/> | |
| </linearGradient> | |
| <linearGradient id="paint2_linear" x1="12" y1="2" x2="12" y2="22" gradientUnits="userSpaceOnUse"> | |
| <stop stop-color="#8B5CF6"/> | |
| <stop offset="1" stop-color="#EC4899"/> | |
| </linearGradient> | |
| </defs> | |
| </svg> | |
| </div> | |
| <div class="grid grid-cols-2 gap-4 w-full md:w-auto"> | |
| <button class="control-btn px-4 py-3 bg-gray-800 rounded-lg hover:bg-gray-700 transition-all flex items-center justify-center"> | |
| <i class="fas fa-arrow-up mr-2"></i> Thrusters | |
| </button> | |
| <button class="control-btn px-4 py-3 bg-gray-800 rounded-lg hover:bg-gray-700 transition-all flex items-center justify-center"> | |
| <i class="fas fa-shield-alt mr-2"></i> Shields | |
| </button> | |
| <button class="control-btn px-4 py-3 bg-gray-800 rounded-lg hover:bg-gray-700 transition-all flex items-center justify-center"> | |
| <i class="fas fa-satellite-dish mr-2"></i> Comms | |
| </button> | |
| <button class="control-btn px-4 py-3 bg-gray-800 rounded-lg hover:bg-gray-700 transition-all flex items-center justify-center"> | |
| <i class="fas fa-bolt mr-2"></i> Weapons | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Cosmic Events --> | |
| <div class="bg-gray-900 bg-opacity-70 backdrop-blur-md rounded-xl p-6 border border-gray-800 shadow-lg hover:shadow-purple-500/20 transition-all"> | |
| <h2 class="text-xl font-semibold mb-6 flex items-center"> | |
| <i class="fas fa-meteor text-purple-400 mr-2"></i> Recent Cosmic Events | |
| </h2> | |
| <div class="overflow-x-auto"> | |
| <table class="w-full"> | |
| <thead> | |
| <tr class="text-left border-b border-gray-800"> | |
| <th class="pb-3">Event</th> | |
| <th class="pb-3">Location</th> | |
| <th class="pb-3">Distance</th> | |
| <th class="pb-3">Status</th> | |
| </tr> | |
| </thead> | |
| <tbody> | |
| <tr class="border-b border-gray-800 hover:bg-gray-800 transition-all"> | |
| <td class="py-3 flex items-center"> | |
| <div class="w-2 h-2 rounded-full bg-green-500 mr-2"></div> | |
| Gamma Ray Burst | |
| </td> | |
| <td class="py-3">Andromeda Galaxy</td> | |
| <td class="py-3">2.5M ly</td> | |
| <td class="py-3"> | |
| <span class="px-2 py-1 bg-green-900 bg-opacity-30 text-green-400 rounded-full text-xs">Safe</span> | |
| </td> | |
| </tr> | |
| <tr class="border-b border-gray-800 hover:bg-gray-800 transition-all"> | |
| <td class="py-3 flex items-center"> | |
| <div class="w-2 h-2 rounded-full bg-yellow-500 mr-2"></div> | |
| Supernova | |
| </td> | |
| <td class="py-3">Cassiopeia A</td> | |
| <td class="py-3">11,000 ly</td> | |
| <td class="py-3"> | |
| <span class="px-2 py-1 bg-yellow-900 bg-opacity-30 text-yellow-400 rounded-full text-xs">Warning</span> | |
| </td> | |
| </tr> | |
| <tr class="border-b border-gray-800 hover:bg-gray-800 transition-all"> | |
| <td class="py-3 flex items-center"> | |
| <div class="w-2 h-2 rounded-full bg-red-500 mr-2"></div> | |
| Black Hole Activity | |
| </td> | |
| <td class="py-3">Sagittarius A*</td> | |
| <td class="py-3">26,000 ly</td> | |
| <td class="py-3"> | |
| <span class="px-2 py-1 bg-red-900 bg-opacity-30 text-red-400 rounded-full text-xs">Danger</span> | |
| </td> | |
| </tr> | |
| <tr class="hover:bg-gray-800 transition-all"> | |
| <td class="py-3 flex items-center"> | |
| <div class="w-2 h-2 rounded-full bg-blue-500 mr-2"></div> | |
| Nebula Formation | |
| </td> | |
| <td class="py-3">Orion Arm</td> | |
| <td class="py-3">1,300 ly</td> | |
| <td class="py-3"> | |
| <span class="px-2 py-1 bg-blue-900 bg-opacity-30 text-blue-400 rounded-full text-xs">Observing</span> | |
| </td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Launch Sequence Modal --> | |
| <div id="launch-modal" class="fixed inset-0 bg-black bg-opacity-80 flex items-center justify-center z-50 hidden"> | |
| <div class="bg-gray-900 border border-purple-500 rounded-xl p-8 max-w-md w-full mx-4 relative"> | |
| <button id="close-modal" class="absolute top-4 right-4 text-gray-400 hover:text-white"> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| <div class="text-center"> | |
| <i class="fas fa-rocket text-5xl text-purple-500 mb-4"></i> | |
| <h3 class="text-2xl font-bold mb-2">Launch Sequence Initiated</h3> | |
| <p class="text-gray-400 mb-6">Preparing spacecraft for interstellar journey. All systems are go.</p> | |
| <div class="w-full bg-gray-800 rounded-full h-2.5 mb-6"> | |
| <div id="launch-progress" class="bg-gradient-to-r from-purple-500 to-blue-500 h-2.5 rounded-full" style="width: 0%"></div> | |
| </div> | |
| <div id="launch-messages" class="text-sm text-gray-400 mb-4 h-20 overflow-y-auto"> | |
| <p>> Starting pre-flight checks...</p> | |
| </div> | |
| <button id="abort-btn" class="px-6 py-2 bg-red-900 hover:bg-red-800 rounded-lg transition-all"> | |
| <i class="fas fa-stop-circle mr-2"></i> Abort Launch | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <script> | |
| // Create stars | |
| function createStars() { | |
| const container = document.getElementById('stars-container'); | |
| const starCount = 200; | |
| for (let i = 0; i < starCount; i++) { | |
| const star = document.createElement('div'); | |
| star.classList.add('star'); | |
| // Random size between 1px and 3px | |
| const size = Math.random() * 2 + 1; | |
| star.style.width = `${size}px`; | |
| star.style.height = `${size}px`; | |
| // Random position | |
| star.style.left = `${Math.random() * 100}%`; | |
| star.style.top = `${Math.random() * 100}%`; | |
| // Random animation duration | |
| const duration = Math.random() * 5 + 3; | |
| star.style.setProperty('--duration', `${duration}s`); | |
| container.appendChild(star); | |
| } | |
| } | |
| // Create comets | |
| function createComets() { | |
| const container = document.getElementById('comets-container'); | |
| const cometCount = 5; | |
| for (let i = 0; i < cometCount; i++) { | |
| const comet = document.createElement('div'); | |
| comet.classList.add('comet'); | |
| // Random start and end positions | |
| const startX = Math.random() * 100; | |
| const startY = Math.random() * 100; | |
| const endX = startX + (Math.random() * 60 - 30); | |
| const endY = startY + (Math.random() * 60 - 30); | |
| comet.style.setProperty('--startX', `${startX}vw`); | |
| comet.style.setProperty('--startY', `${startY}vh`); | |
| comet.style.setProperty('--endX', `${endX}vw`); | |
| comet.style.setProperty('--endY', `${endY}vh`); | |
| // Random animation duration | |
| const duration = Math.random() * 20 + 10; | |
| comet.style.setProperty('--duration', `${duration}s`); | |
| // Random delay | |
| comet.style.animationDelay = `${Math.random() * 20}s`; | |
| container.appendChild(comet); | |
| } | |
| } | |
| // Launch sequence | |
| function setupLaunchSequence() { | |
| const launchBtn = document.getElementById('launch-btn'); | |
| const modal = document.getElementById('launch-modal'); | |
| const closeModal = document.getElementById('close-modal'); | |
| const abortBtn = document.getElementById('abort-btn'); | |
| const progressBar = document.getElementById('launch-progress'); | |
| const messages = document.getElementById('launch-messages'); | |
| launchBtn.addEventListener('click', () => { | |
| modal.classList.remove('hidden'); | |
| let progress = 0; | |
| const interval = setInterval(() => { | |
| progress += Math.random() * 5; | |
| if (progress > 100) progress = 100; | |
| progressBar.style.width = `${progress}%`; | |
| // Add messages based on progress | |
| if (progress >= 20 && progress < 21) { | |
| addMessage("> Fuel systems: OK"); | |
| } else if (progress >= 40 && progress < 41) { | |
| addMessage("> Navigation systems: ONLINE"); | |
| } else if (progress >= 60 && progress < 61) { | |
| addMessage("> Life support: NOMINAL"); | |
| } else if (progress >= 80 && progress < 81) { | |
| addMessage("> All systems: GREEN"); | |
| } else if (progress >= 100) { | |
| addMessage("> READY FOR LAUNCH"); | |
| clearInterval(interval); | |
| } | |
| }, 300); | |
| function addMessage(text) { | |
| const p = document.createElement('p'); | |
| p.textContent = text; | |
| messages.appendChild(p); | |
| messages.scrollTop = messages.scrollHeight; | |
| } | |
| abortBtn.addEventListener('click', () => { | |
| clearInterval(interval); | |
| addMessage("> LAUNCH ABORTED"); | |
| progressBar.style.width = "0%"; | |
| setTimeout(() => { | |
| modal.classList.add('hidden'); | |
| messages.innerHTML = '<p>> Starting pre-flight checks...</p>'; | |
| }, 2000); | |
| }, { once: true }); | |
| }); | |
| closeModal.addEventListener('click', () => { | |
| modal.classList.add('hidden'); | |
| }); | |
| } | |
| // Planet click effect | |
| function setupPlanetInteractions() { | |
| const planets = document.querySelectorAll('.planet'); | |
| planets.forEach(planet => { | |
| planet.addEventListener('click', () => { | |
| const planetName = planet.querySelector('span:first-child').textContent; | |
| alert(`Course set for ${planetName}! Preparing navigation systems...`); | |
| }); | |
| }); | |
| } | |
| // Control buttons effect | |
| function setupControlButtons() { | |
| const buttons = document.querySelectorAll('.control-btn'); | |
| buttons.forEach(button => { | |
| button.addEventListener('click', () => { | |
| const icon = button.querySelector('i'); | |
| const originalColor = icon.style.color; | |
| // Flash effect | |
| icon.style.color = '#8B5CF6'; | |
| setTimeout(() => { | |
| icon.style.color = originalColor; | |
| }, 300); | |
| // Get button text | |
| const action = button.textContent.trim(); | |
| console.log(`${action} activated`); | |
| }); | |
| }); | |
| } | |
| // Initialize everything when DOM is loaded | |
| document.addEventListener('DOMContentLoaded', () => { | |
| createStars(); | |
| createComets(); | |
| setupLaunchSequence(); | |
| setupPlanetInteractions(); | |
| setupControlButtons(); | |
| }); | |
| </script> | |
| <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=pock2929/pocksstore" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |