space / index.html
Vicky-07's picture
Add 3 files
0a32f48 verified
Raw History Blame Contribute Delete
16.9 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cosmic Cat on Mars</title>
<script src="https://cdn.tailwindcss.com"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Poppins:wght@300;600&display=swap');
body {
font-family: 'Poppins', sans-serif;
background-color: #0a0a1a;
color: #fff;
overflow-x: hidden;
}
.title-font {
font-family: 'Orbitron', sans-serif;
}
.mars-surface {
background: linear-gradient(to bottom, #c1440e, #8c2b0a);
position: relative;
overflow: hidden;
}
.crater {
position: absolute;
border-radius: 50%;
background: rgba(0, 0, 0, 0.2);
box-shadow: inset 5px 5px 10px rgba(0, 0, 0, 0.3);
}
.rover-track {
position: absolute;
height: 8px;
background: rgba(255, 255, 255, 0.1);
border-radius: 4px;
}
.cat-helmet {
position: relative;
animation: float 3s ease-in-out infinite;
}
.cat-helmet::before {
content: '';
position: absolute;
top: -10px;
left: 25%;
width: 50%;
height: 20px;
background: rgba(255, 255, 255, 0.3);
border-radius: 50%;
filter: blur(5px);
}
@keyframes float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-15px); }
}
.pulse {
animation: pulse 2s infinite;
}
@keyframes pulse {
0% { transform: scale(1); opacity: 1; }
50% { transform: scale(1.05); opacity: 0.8; }
100% { transform: scale(1); opacity: 1; }
}
.star {
position: absolute;
background-color: white;
border-radius: 50%;
animation: twinkle 2s infinite alternate;
}
@keyframes twinkle {
0% { opacity: 0.2; }
100% { opacity: 1; }
}
.dust-particle {
position: absolute;
background-color: rgba(255, 255, 255, 0.6);
border-radius: 50%;
animation: float-up 5s linear infinite;
}
@keyframes float-up {
0% { transform: translateY(0); opacity: 1; }
100% { transform: translateY(-100vh); opacity: 0; }
}
.info-panel {
backdrop-filter: blur(10px);
background: rgba(0, 0, 0, 0.5);
border: 1px solid rgba(255, 255, 255, 0.1);
}
.scan-line {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(to bottom,
transparent 0%,
rgba(0, 255, 255, 0.1) 50%,
transparent 100%);
animation: scan 4s linear infinite;
pointer-events: none;
}
@keyframes scan {
0% { transform: translateY(-100%); }
100% { transform: translateY(100%); }
}
</style>
</head>
<body class="min-h-screen flex flex-col items-center justify-center p-4">
<div class="absolute inset-0 overflow-hidden">
<!-- Stars background -->
<div id="stars-container" class="absolute inset-0"></div>
</div>
<div class="relative z-10 w-full max-w-4xl">
<h1 class="title-font text-4xl md:text-5xl text-center mb-6 text-transparent bg-clip-text bg-gradient-to-r from-orange-400 to-red-600">
<span class="pulse">🐱</span> Cosmic Cat Explorer <span class="pulse">🚀</span>
</h1>
<div class="mars-surface rounded-xl shadow-2xl overflow-hidden relative h-96 md:h-[500px]">
<!-- Dust particles -->
<div id="dust-container" class="absolute inset-0"></div>
<!-- Mars surface elements -->
<div id="craters-container" class="absolute inset-0"></div>
<div id="tracks-container" class="absolute inset-0"></div>
<!-- Cat astronaut -->
<div class="absolute bottom-32 left-1/2 transform -translate-x-1/2 cat-helmet">
<div class="relative">
<!-- Cat face -->
<div class="w-32 h-32 md:w-40 md:h-40 bg-gray-200 rounded-full relative">
<!-- Helmet glass -->
<div class="absolute inset-0 rounded-full border-4 border-gray-400 overflow-hidden">
<div class="absolute inset-0 bg-blue-100 opacity-20"></div>
<div class="absolute top-1/4 left-1/4 w-1/2 h-1/2 bg-white rounded-full opacity-10"></div>
</div>
<!-- Cat features -->
<div class="absolute top-6 left-6 w-20 h-20">
<!-- Ears -->
<div class="absolute -top-4 left-0 w-0 h-0 border-l-8 border-r-8 border-b-8 border-l-transparent border-r-transparent border-b-gray-200"></div>
<div class="absolute -top-4 right-0 w-0 h-0 border-l-8 border-r-8 border-b-8 border-l-transparent border-r-transparent border-b-gray-200"></div>
<!-- Eyes -->
<div class="absolute top-6 left-4 w-4 h-6 bg-yellow-400 rounded-full"></div>
<div class="absolute top-6 right-4 w-4 h-6 bg-yellow-400 rounded-full"></div>
<div class="absolute top-7 left-5 w-2 h-3 bg-black rounded-full"></div>
<div class="absolute top-7 right-5 w-2 h-3 bg-black rounded-full"></div>
<!-- Nose -->
<div class="absolute top-12 left-1/2 transform -translate-x-1/2 w-3 h-3 bg-pink-400 rounded-full"></div>
<!-- Whiskers -->
<div class="absolute top-12 left-0 w-12 h-px bg-gray-600"></div>
<div class="absolute top-12 right-0 w-12 h-px bg-gray-600"></div>
<div class="absolute top-14 left-0 w-10 h-px bg-gray-600"></div>
<div class="absolute top-14 right-0 w-10 h-px bg-gray-600"></div>
<div class="absolute top-10 left-0 w-8 h-px bg-gray-600"></div>
<div class="absolute top-10 right-0 w-8 h-px bg-gray-600"></div>
</div>
</div>
<!-- Space suit body -->
<div class="absolute top-full left-1/2 transform -translate-x-1/2 w-24 h-32 bg-white rounded-b-full">
<div class="absolute top-0 left-0 w-full h-8 bg-gray-300"></div>
<div class="absolute top-8 left-1/2 transform -translate-x-1/2 w-16 h-16 bg-white rounded-b-full">
<div class="absolute top-2 left-1/2 transform -translate-x-1/2 w-12 h-1 bg-gray-400"></div>
<div class="absolute top-6 left-1/2 transform -translate-x-1/2 w-12 h-1 bg-gray-400"></div>
</div>
</div>
<!-- Paws -->
<div class="absolute top-28 left-4 w-6 h-4 bg-gray-200 rounded-full"></div>
<div class="absolute top-28 right-4 w-6 h-4 bg-gray-200 rounded-full"></div>
<!-- Flag -->
<div class="absolute top-4 right-0 transform translate-x-1/2">
<div class="w-2 h-16 bg-gray-400"></div>
<div class="absolute top-0 left-2 w-12 h-8 bg-orange-500 flex items-center justify-center">
<span class="text-xs">🐾</span>
</div>
</div>
</div>
</div>
<!-- Rover -->
<div id="rover" class="absolute bottom-24 left-0 w-24 h-12 bg-gray-700 rounded-lg flex items-center justify-center transition-transform duration-1000">
<div class="w-4 h-4 bg-yellow-300 rounded-full mr-2"></div>
<div class="w-16 h-6 bg-gray-600 rounded"></div>
<div class="absolute -bottom-2 left-2 w-20 h-2 bg-gray-800 rounded-full"></div>
</div>
<!-- Scan line effect -->
<div class="scan-line"></div>
</div>
<!-- Info panel -->
<div class="info-panel mt-6 p-6 rounded-xl relative overflow-hidden">
<h2 class="title-font text-xl md:text-2xl mb-4">Mission Update</h2>
<p class="mb-4">Commander Whiskers has successfully landed on the Martian surface at coordinates 18°N 77°E.</p>
<div class="grid grid-cols-2 md:grid-cols-4 gap-4 mt-4">
<div class="bg-gray-900 p-3 rounded-lg">
<div class="text-xs text-gray-400">LOCAL TIME</div>
<div class="text-lg font-mono" id="mars-time">12:47 PM</div>
</div>
<div class="bg-gray-900 p-3 rounded-lg">
<div class="text-xs text-gray-400">TEMPERATURE</div>
<div class="text-lg font-mono">-63°C</div>
</div>
<div class="bg-gray-900 p-3 rounded-lg">
<div class="text-xs text-gray-400">SOL</div>
<div class="text-lg font-mono">Martian Day 217</div>
</div>
<div class="bg-gray-900 p-3 rounded-lg">
<div class="text-xs text-gray-400">STATUS</div>
<div class="text-lg font-mono text-green-400">Nominal</div>
</div>
</div>
<button id="take-photo" class="mt-6 px-6 py-3 bg-orange-600 hover:bg-orange-500 rounded-lg font-medium transition-colors flex items-center">
<span class="mr-2">📸</span> Take Mars Photo
</button>
<div id="photo-display" class="mt-4 hidden">
<div class="border border-gray-700 p-2 rounded-lg inline-block">
<div class="w-32 h-32 bg-gray-800 flex items-center justify-center">
<span class="text-4xl">🐱</span>
</div>
<div class="text-xs mt-1 text-center">Photo saved to memory</div>
</div>
</div>
</div>
</div>
<div class="mt-8 text-center text-gray-400 text-sm">
<p>Cosmic Cat Exploration Program © 2024 - All rights reserved</p>
</div>
<script>
document.addEventListener('DOMContentLoaded', () => {
// Create stars
const starsContainer = document.getElementById('stars-container');
for (let i = 0; i < 100; i++) {
const star = document.createElement('div');
star.className = 'star';
star.style.width = `${Math.random() * 3}px`;
star.style.height = star.style.width;
star.style.left = `${Math.random() * 100}%`;
star.style.top = `${Math.random() * 100}%`;
star.style.animationDelay = `${Math.random() * 2}s`;
starsContainer.appendChild(star);
}
// Create craters
const cratersContainer = document.getElementById('craters-container');
for (let i = 0; i < 15; i++) {
const crater = document.createElement('div');
crater.className = 'crater';
const size = 20 + Math.random() * 60;
crater.style.width = `${size}px`;
crater.style.height = `${size * 0.7}px`;
crater.style.left = `${Math.random() * 100}%`;
crater.style.top = `${70 + Math.random() * 30}%`;
cratersContainer.appendChild(crater);
}
// Create rover tracks
const tracksContainer = document.getElementById('tracks-container');
for (let i = 0; i < 3; i++) {
const track = document.createElement('div');
track.className = 'rover-track';
track.style.width = `${50 + Math.random() * 200}px`;
track.style.left = `${Math.random() * 100}%`;
track.style.bottom = `${20 + i * 10}%`;
track.style.transform = `rotate(${-5 + Math.random() * 10}deg)`;
tracksContainer.appendChild(track);
}
// Create dust particles
const dustContainer = document.getElementById('dust-container');
for (let i = 0; i < 20; i++) {
const dust = document.createElement('div');
dust.className = 'dust-particle';
const size = 1 + Math.random() * 3;
dust.style.width = `${size}px`;
dust.style.height = `${size}px`;
dust.style.left = `${Math.random() * 100}%`;
dust.style.bottom = `0`;
dust.style.animationDelay = `${Math.random() * 5}s`;
dustContainer.appendChild(dust);
}
// Animate rover
const rover = document.getElementById('rover');
let roverPosition = 0;
setInterval(() => {
roverPosition = (roverPosition + 5) % 100;
rover.style.left = `${roverPosition}%`;
// Reset when rover goes off screen
if (roverPosition > 90) {
setTimeout(() => {
rover.style.transition = 'none';
rover.style.left = '-10%';
setTimeout(() => {
rover.style.transition = 'transform 1000ms';
}, 50);
}, 1000);
}
}, 100);
// Update Mars time
function updateMarsTime() {
const now = new Date();
// Mars has a slightly longer day (24h 39m 35s)
// For display purposes, we'll just show Earth time
const hours = now.getHours();
const minutes = now.getMinutes();
const ampm = hours >= 12 ? 'PM' : 'AM';
const displayHours = hours % 12 || 12;
document.getElementById('mars-time').textContent =
`${displayHours}:${minutes < 10 ? '0' + minutes : minutes} ${ampm}`;
}
setInterval(updateMarsTime, 1000);
updateMarsTime();
// Photo button
document.getElementById('take-photo').addEventListener('click', () => {
const photoDisplay = document.getElementById('photo-display');
photoDisplay.classList.remove('hidden');
// Flash effect
document.body.style.transition = 'background-color 0.3s';
document.body.style.backgroundColor = 'white';
setTimeout(() => {
document.body.style.backgroundColor = '#0a0a1a';
}, 100);
// Hide after some time
setTimeout(() => {
photoDisplay.classList.add('hidden');
}, 3000);
});
});
</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=Vicky-07/space" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>