vinnitu's picture
make space telemetry screen
2f603b6 verified
<!DOCTYPE html>
<html lang="en" class="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cosmic Telemetry Dashboard</title>
<link rel="stylesheet" href="style.css">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
cosmic: {
100: '#e0f2fe',
200: '#bae6fd',
300: '#7dd3fc',
400: '#38bdf8',
500: '#0ea5e9',
600: '#0284c7',
700: '#0369a1',
800: '#075985',
900: '#0c4a6e',
},
nebula: {
500: '#7e22ce',
600: '#6b21a8',
700: '#581c87',
}
}
}
}
}
</script>
</head>
<body class="bg-gray-900 text-gray-100 min-h-screen">
<div class="container mx-auto px-4 py-8">
<header class="flex justify-between items-center mb-8">
<h1 class="text-3xl font-bold text-cosmic-400">
<i data-feather="activity" class="inline mr-2"></i>
Cosmic Telemetry Dashboard
</h1>
<div class="flex items-center space-x-4">
<span class="text-sm text-gray-400">Mission Control</span>
<div class="w-10 h-10 rounded-full bg-nebula-500 flex items-center justify-center">
<i data-feather="user"></i>
</div>
</div>
</header>
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-8">
<!-- Status Card -->
<div class="bg-gray-800 rounded-lg p-6 border-l-4 border-cosmic-500">
<div class="flex justify-between items-start">
<div>
<h3 class="text-gray-400 text-sm">Vessel Status</h3>
<p class="text-2xl font-bold text-cosmic-400">Nominal</p>
</div>
<i data-feather="check-circle" class="text-green-500"></i>
</div>
<div class="mt-4">
<div class="flex justify-between text-xs text-gray-400 mb-1">
<span>Systems</span>
<span>100%</span>
</div>
<div class="w-full bg-gray-700 rounded-full h-2">
<div class="bg-green-500 h-2 rounded-full" style="width: 100%"></div>
</div>
</div>
</div>
<!-- Location Card -->
<div class="bg-gray-800 rounded-lg p-6 border-l-4 border-nebula-500">
<div class="flex justify-between items-start">
<div>
<h3 class="text-gray-400 text-sm">Current Location</h3>
<p class="text-2xl font-bold text-nebula-400">Orbit: LEO</p>
</div>
<i data-feather="map-pin" class="text-purple-500"></i>
</div>
<div class="mt-4">
<div class="flex justify-between text-xs text-gray-400 mb-1">
<span>Altitude</span>
<span>408 km</span>
</div>
<div class="w-full bg-gray-700 rounded-full h-2">
<div class="bg-purple-500 h-2 rounded-full" style="width: 65%"></div>
</div>
</div>
</div>
<!-- Velocity Card -->
<div class="bg-gray-800 rounded-lg p-6 border-l-4 border-indigo-500">
<div class="flex justify-between items-start">
<div>
<h3 class="text-gray-400 text-sm">Velocity</h3>
<p class="text-2xl font-bold text-indigo-400">7.8 km/s</p>
</div>
<i data-feather="wind" class="text-indigo-500"></i>
</div>
<div class="mt-4">
<div class="flex justify-between text-xs text-gray-400 mb-1">
<span>Relative to Earth</span>
<span>Mach 23</span>
</div>
<div class="w-full bg-gray-700 rounded-full h-2">
<div class="bg-indigo-500 h-2 rounded-full" style="width: 78%"></div>
</div>
</div>
</div>
</div>
<!-- Telemetry Grid -->
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
<!-- Telemetry Chart -->
<div class="bg-gray-800 rounded-lg p-6">
<div class="flex justify-between items-center mb-4">
<h3 class="text-lg font-semibold text-cosmic-300">Orbital Telemetry</h3>
<div class="flex space-x-2">
<button class="px-3 py-1 bg-gray-700 rounded text-xs">1D</button>
<button class="px-3 py-1 bg-cosmic-600 rounded text-xs">1W</button>
<button class="px-3 py-1 bg-gray-700 rounded text-xs">1M</button>
</div>
</div>
<div class="h-64">
<canvas id="telemetryChart"></canvas>
</div>
</div>
<!-- System Status -->
<div class="bg-gray-800 rounded-lg p-6">
<h3 class="text-lg font-semibold text-cosmic-300 mb-4">System Status</h3>
<div class="space-y-4">
<div>
<div class="flex justify-between text-sm mb-1">
<span>Life Support</span>
<span class="text-green-400">100%</span>
</div>
<div class="w-full bg-gray-700 rounded-full h-2">
<div class="bg-green-500 h-2 rounded-full" style="width: 100%"></div>
</div>
</div>
<div>
<div class="flex justify-between text-sm mb-1">
<span>Power Systems</span>
<span class="text-green-400">98%</span>
</div>
<div class="w-full bg-gray-700 rounded-full h-2">
<div class="bg-green-500 h-2 rounded-full" style="width: 98%"></div>
</div>
</div>
<div>
<div class="flex justify-between text-sm mb-1">
<span>Navigation</span>
<span class="text-yellow-400">87%</span>
</div>
<div class="w-full bg-gray-700 rounded-full h-2">
<div class="bg-yellow-500 h-2 rounded-full" style="width: 87%"></div>
</div>
</div>
<div>
<div class="flex justify-between text-sm mb-1">
<span>Communications</span>
<span class="text-red-400">72%</span>
</div>
<div class="w-full bg-gray-700 rounded-full h-2">
<div class="bg-red-500 h-2 rounded-full" style="width: 72%"></div>
</div>
</div>
</div>
</div>
<!-- Alerts -->
<div class="bg-gray-800 rounded-lg p-6">
<h3 class="text-lg font-semibold text-cosmic-300 mb-4">Alerts</h3>
<div class="space-y-3">
<div class="flex items-start p-3 bg-gray-700 rounded">
<div class="mr-3 text-yellow-500">
<i data-feather="alert-triangle"></i>
</div>
<div>
<p class="font-medium">Solar flare detected</p>
<p class="text-sm text-gray-400">Potential communication disruption in 2 hours</p>
</div>
</div>
<div class="flex items-start p-3 bg-gray-700 rounded">
<div class="mr-3 text-red-500">
<i data-feather="alert-octagon"></i>
</div>
<div>
<p class="font-medium">Debris field ahead</p>
<p class="text-sm text-gray-400">Course correction recommended</p>
</div>
</div>
</div>
</div>
<!-- Crew Status -->
<div class="bg-gray-800 rounded-lg p-6">
<h3 class="text-lg font-semibold text-cosmic-300 mb-4">Crew Status</h3>
<div class="grid grid-cols-2 gap-4">
<div class="flex items-center space-x-3 p-2 bg-gray-700 rounded">
<div class="w-10 h-10 rounded-full bg-nebula-600 flex items-center justify-center">
<i data-feather="user"></i>
</div>
<div>
<p class="font-medium">Cmdr. Smith</p>
<p class="text-xs text-gray-400">On duty</p>
</div>
</div>
<div class="flex items-center space-x-3 p-2 bg-gray-700 rounded">
<div class="w-10 h-10 rounded-full bg-nebula-600 flex items-center justify-center">
<i data-feather="user"></i>
</div>
<div>
<p class="font-medium">Dr. Chen</p>
<p class="text-xs text-gray-400">Resting</p>
</div>
</div>
<div class="flex items-center space-x-3 p-2 bg-gray-700 rounded">
<div class="w-10 h-10 rounded-full bg-nebula-600 flex items-center justify-center">
<i data-feather="user"></i>
</div>
<div>
<p class="font-medium">Eng. Rodriguez</p>
<p class="text-xs text-gray-400">Maintenance</p>
</div>
</div>
<div class="flex items-center space-x-3 p-2 bg-gray-700 rounded">
<div class="w-10 h-10 rounded-full bg-nebula-600 flex items-center justify-center">
<i data-feather="user"></i>
</div>
<div>
<p class="font-medium">Sci. Patel</p>
<p class="text-xs text-gray-400">Experiment</p>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="script.js"></script>
<script>feather.replace();</script>
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
</body>
</html>