File size: 11,145 Bytes
43549cb 9a5585c 43549cb 9a5585c 43549cb 9a5585c 43549cb |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Live Monitoring | Quantum Observer Network</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 src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
primary: '#ec4899',
secondary: '#84cc16'
}
}
}
}
</script>
</head>
<body class="bg-gray-50 text-gray-800">
<anomaly-visualizer></anomaly-visualizer>
<custom-navbar></custom-navbar>
<main class="min-h-screen">
<!-- Monitoring Header -->
<section class="bg-white shadow-sm">
<div class="container mx-auto px-4 py-6">
<div class="flex flex-col md:flex-row justify-between items-start md:items-center">
<h1 class="text-3xl font-bold">
<span class="text-secondary">Live</span> Monitoring
</h1>
<div class="flex items-center space-x-4 mt-4 md:mt-0">
<div class="bg-green-100 text-green-800 px-3 py-1 rounded-full text-sm font-medium">
<i data-feather="activity" class="inline w-4 h-4 mr-1"></i>
Streaming Data
</div>
<div class="text-sm text-gray-500">
Refresh: <span class="font-medium">5s</span>
</div>
</div>
</div>
</div>
</section>
<!-- Main Monitoring Grid -->
<section class="container mx-auto px-4 py-8">
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8">
<!-- Quantum Fluctuations Chart -->
<div class="bg-white rounded-xl shadow-md p-6">
<div class="flex justify-between items-center mb-6">
<h3 class="text-lg font-semibold">Quantum Fluctuations</h3>
<div class="flex space-x-2">
<button class="px-3 py-1 bg-gray-100 rounded-lg text-sm">1h</button>
<button class="px-3 py-1 bg-primary text-white rounded-lg text-sm">24h</button>
<button class="px-3 py-1 bg-gray-100 rounded-lg text-sm">7d</button>
</div>
</div>
<canvas id="quantumChart" height="250"></canvas>
</div>
<!-- Observer Status -->
<div class="bg-white rounded-xl shadow-md p-6">
<h3 class="text-lg font-semibold mb-6">Observer Status</h3>
<div class="space-y-4">
<div class="flex items-center justify-between">
<div class="flex items-center">
<div class="w-3 h-3 bg-green-500 rounded-full mr-3"></div>
<span>Observer #1</span>
</div>
<span class="text-sm text-gray-500">Active (12.7ms)</span>
</div>
<div class="flex items-center justify-between">
<div class="flex items-center">
<div class="w-3 h-3 bg-green-500 rounded-full mr-3"></div>
<span>Observer #2</span>
</div>
<span class="text-sm text-gray-500">Active (8.2ms)</span>
</div>
<div class="flex items-center justify-between">
<div class="flex items-center">
<div class="w-3 h-3 bg-yellow-500 rounded-full mr-3"></div>
<span>Observer #3</span>
</div>
<span class="text-sm text-gray-500">Standby</span>
</div>
<div class="flex items-center justify-between">
<div class="flex items-center">
<div class="w-3 h-3 bg-green-500 rounded-full mr-3"></div>
<span>Observer #4</span>
</div>
<span class="text-sm text-gray-500">Active (15.1ms)</span>
</div>
<div class="flex items-center justify-between">
<div class="flex items-center">
<div class="w-3 h-3 bg-red-500 rounded-full mr-3"></div>
<span>Observer #5</span>
</div>
<span class="text-sm text-gray-500">Offline</span>
</div>
</div>
</div>
<!-- Anomaly Detection -->
<div class="bg-white rounded-xl shadow-md p-6">
<h3 class="text-lg font-semibold mb-6">Anomaly Detection</h3>
<div class="flex items-center justify-between mb-4">
<div>
<p class="text-2xl font-bold text-primary">3</p>
<p class="text-sm text-gray-500">Active anomalies</p>
</div>
<div class="bg-pink-100 p-3 rounded-lg">
<i data-feather="alert-triangle" class="text-primary w-6 h-6"></i>
</div>
</div>
<div class="space-y-3">
<div class="p-3 bg-red-50 rounded-lg border-l-4 border-red-500">
<div class="flex justify-between">
<span class="font-medium">Quantum decoherence</span>
<span class="text-xs text-red-500">Critical</span>
</div>
<p class="text-sm text-gray-600 mt-1">Observer #7, Sector 4</p>
</div>
<div class="p-3 bg-yellow-50 rounded-lg border-l-4 border-yellow-500">
<div class="flex justify-between">
<span class="font-medium">Latency spike</span>
<span class="text-xs text-yellow-500">Warning</span>
</div>
<p class="text-sm text-gray-600 mt-1">Observer #2, Sector 1</p>
</div>
<div class="p-3 bg-yellow-50 rounded-lg border-l-4 border-yellow-500">
<div class="flex justify-between">
<span class="font-medium">Signal interference</span>
<span class="text-xs text-yellow-500">Warning</span>
</div>
<p class="text-sm text-gray-600 mt-1">Observer #4, Sector 3</p>
</div>
</div>
</div>
<!-- Reality Coherence Map -->
<div class="bg-white rounded-xl shadow-md p-6">
<h3 class="text-lg font-semibold mb-6">Reality Coherence Map</h3>
<div class="bg-gray-100 rounded-lg p-4 flex items-center justify-center">
<div class="relative">
<img src="http://static.photos/technology/640x360/42" alt="Reality Map" class="rounded-lg">
<div class="absolute -top-2 -right-2 bg-red-500 text-white text-xs px-2 py-1 rounded-full">Live</div>
</div>
</div>
<div class="mt-4 grid grid-cols-3 gap-2">
<div class="text-center">
<p class="text-sm text-gray-500">Sector 1</p>
<p class="font-medium">98.2%</p>
</div>
<div class="text-center">
<p class="text-sm text-gray-500">Sector 2</p>
<p class="font-medium">96.7%</p>
</div>
<div class="text-center">
<p class="text-sm text-gray-500">Sector 3</p>
<p class="font-medium">91.4%</p>
</div>
</div>
</div>
</div>
</section>
</main>
<custom-footer></custom-footer>
<script src="components/navbar.js"></script>
<script src="components/footer.js"></script>
<script src="components/anomaly-visualizer.js"></script>
<script src="script.js"></script>
<script>
feather.replace();
// Initialize charts
document.addEventListener('DOMContentLoaded', function() {
// Quantum Fluctuations Chart
const quantumCtx = document.getElementById('quantumChart').getContext('2d');
const quantumChart = new Chart(quantumCtx, {
type: 'line',
data: {
labels: Array.from({length: 24}, (_, i) => `${i}:00`),
datasets: [{
label: 'Quantum Variance',
data: [85, 86, 87, 88, 89, 90, 91, 92, 91, 90, 89, 88, 87, 86, 85, 84, 83, 82, 83, 84, 85, 86, 87, 88],
borderColor: '#ec4899',
backgroundColor: 'rgba(236, 72, 153, 0.1)',
borderWidth: 2,
tension: 0.4,
fill: true
}]
},
options: {
responsive: true,
plugins: {
legend: {
display: false
}
},
scales: {
y: {
beginAtZero: false,
min: 80,
max: 100
}
}
}
});
// Simulate live data updates
setInterval(() => {
const newData = quantumChart.data.datasets[0].data.map(value => {
const change = (Math.random() - 0.5) * 2;
return Math.max(80, Math.min(100, value + change));
});
quantumChart.data.datasets[0].data = newData;
quantumChart.update();
}, 5000);
});
</script>
</body>
</html> |