Spaces:
Running
Running
File size: 17,121 Bytes
adf4ac6 8ae7a13 adf4ac6 8ae7a13 adf4ac6 8ae7a13 adf4ac6 8ae7a13 adf4ac6 8ae7a13 adf4ac6 8ae7a13 adf4ac6 8ae7a13 adf4ac6 8ae7a13 adf4ac6 8ae7a13 adf4ac6 8ae7a13 adf4ac6 8ae7a13 adf4ac6 8ae7a13 adf4ac6 8ae7a13 adf4ac6 8ae7a13 adf4ac6 8ae7a13 adf4ac6 |
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 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AI Vision | Event Monitoring</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>
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
animation: fadeIn 0.5s ease-out forwards;
}
.glass-card {
background: rgba(255, 255, 255, 0.08);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid rgba(255, 255, 255, 0.08);
}
.severity-high {
box-shadow: 0 0 15px rgba(255, 59, 48, 0.5);
}
.severity-medium {
box-shadow: 0 0 15px rgba(255, 149, 0, 0.5);
}
.severity-low {
box-shadow: 0 0 15px rgba(52, 199, 89, 0.3);
}
.map-container {
height: 200px;
background: linear-gradient(135deg, #1e3a8a, #3b82f6);
border-radius: 12px;
position: relative;
overflow: hidden;
}
.map-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
}
.pulse-dot {
animation: pulse 2s infinite;
}
@keyframes pulse {
0% { transform: scale(1); opacity: 1; }
50% { transform: scale(1.2); opacity: 0.7; }
100% { transform: scale(1); opacity: 1; }
}
</style>
</head>
<body class="bg-black text-gray-100 font-sans min-h-screen">
<div class="container mx-auto px-4 py-8 max-w-4xl">
<!-- Header -->
<header class="flex justify-between items-center mb-8">
<div class="flex items-center space-x-2">
<div class="w-8 h-8 rounded-full bg-gradient-to-br from-blue-500 to-blue-700 flex items-center justify-center">
<i class="fas fa-eye text-white text-sm"></i>
</div>
<h1 class="text-xl font-semibold">AI Vision Monitoring</h1>
</div>
<div class="flex space-x-4">
<button class="p-2 rounded-full bg-gray-800 hover:bg-gray-700 transition">
<i class="fas fa-search text-gray-400"></i>
</button>
<button class="p-2 rounded-full bg-gray-800 hover:bg-gray-700 transition">
<i class="fas fa-cog text-gray-400"></i>
</button>
</div>
</header>
<!-- Event Alert -->
<div class="glass-card rounded-2xl p-6 mb-8 severity-high animate-fade-in">
<div class="flex justify-between items-start mb-4">
<div>
<div class="flex items-center space-x-2 mb-2">
<div class="w-3 h-3 rounded-full bg-red-500 pulse-dot"></div>
<span class="text-red-400 font-medium">ALERT</span>
</div>
<h2 class="text-2xl font-semibold">Unauthorized Perimeter Access</h2>
<p class="text-gray-400">Security event detected</p>
</div>
<div class="bg-red-500/20 p-2 rounded-lg">
<i class="fas fa-car-crash text-red-500 text-xl"></i>
</div>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<!-- Incident Image -->
<div class="bg-gray-900 rounded-xl overflow-hidden">
<div class="relative">
<img src="https://images.unsplash.com/photo-1580273916550-e4c0b03e7ba6?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=800&q=80"
alt="Collision scene" class="w-full h-48 object-cover">
<div class="absolute inset-0 bg-gradient-to-t from-black/60 to-transparent"></div>
<div class="absolute bottom-4 left-4">
<div class="flex items-center space-x-2">
<div class="bg-red-500 p-1.5 rounded-full">
<i class="fas fa-exclamation text-white text-xs"></i>
</div>
<span class="text-white font-medium">AI Detected Impact</span>
</div>
</div>
</div>
<div class="p-4">
<div class="flex justify-between text-sm">
<span class="text-gray-400">Confidence: 98%</span>
<span class="text-gray-400">2 min ago</span>
</div>
</div>
</div>
<!-- Incident Details -->
<div>
<div class="space-y-4">
<div>
<h3 class="text-sm font-medium text-gray-400 mb-1">INCIDENT DETAILS</h3>
<p class="text-gray-200">
Individual detected near restricted perimeter fence. Person has remained in area for 8 minutes. No authorized access credentials detected.
</p>
</div>
<div class="grid grid-cols-2 gap-4">
<div>
<h3 class="text-sm font-medium text-gray-400 mb-1">LOCATION</h3>
<p class="text-gray-200">Intersection of 5th Ave & Main St</p>
</div>
<div>
<h3 class="text-sm font-medium text-gray-400 mb-1">VEHICLES</h3>
<p class="text-gray-200">2 vehicles involved</p>
</div>
</div>
<div class="map-container">
<div class="map-overlay"></div>
<div class="absolute top-4 left-4 z-10">
<div class="bg-black/70 px-3 py-1.5 rounded-full">
<i class="fas fa-map-marker-alt text-red-500 mr-2"></i>
<span class="text-white">Incident Location</span>
</div>
</div>
<div class="absolute bottom-4 right-4 z-10">
<div class="flex space-x-2">
<button class="bg-black/70 p-2 rounded-full">
<i class="fas fa-compress text-white"></i>
</button>
<button class="bg-blue-600 p-2 rounded-full">
<i class="fas fa-directions text-white"></i>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="mt-6 pt-6 border-t border-gray-800 flex justify-between">
<button class="px-4 py-2.5 rounded-full bg-gray-800 hover:bg-gray-700 transition flex items-center space-x-2">
<i class="fas fa-phone text-blue-400"></i>
<span>Call Emergency</span>
</button>
<button class="px-4 py-2.5 rounded-full bg-blue-600 hover:bg-blue-700 transition flex items-center space-x-2">
<i class="fas fa-info-circle"></i>
<span>View Full Report</span>
</button>
</div>
</div>
<!-- Recent Events -->
<div class="mb-8">
<h2 class="text-xl font-semibold mb-4">Recent Events</h2>
<div class="space-y-3">
<!-- Incident 1 -->
<div class="glass-card rounded-xl p-4 hover:bg-gray-900/50 transition cursor-pointer">
<div class="flex justify-between items-center">
<div class="flex items-center space-x-3">
<div class="p-2.5 rounded-lg bg-red-500/20">
<i class="fas fa-user-shield text-red-500"></i>
</div>
<div>
<h3 class="font-medium">Suspicious Loitering</h3>
<p class="text-sm text-gray-400">North Parking Lot • 15 min ago</p>
</div>
</div>
<div class="flex items-center space-x-2">
<span class="text-sm bg-red-500/20 text-red-400 px-2 py-1 rounded-full">High</span>
<i class="fas fa-chevron-right text-gray-400"></i>
</div>
</div>
</div>
<!-- Incident 2 -->
<div class="glass-card rounded-xl p-4 hover:bg-gray-900/50 transition cursor-pointer">
<div class="flex justify-between items-center">
<div class="flex items-center space-x-3">
<div class="p-2.5 rounded-lg bg-yellow-500/20">
<i class="fas fa-car text-yellow-500"></i>
</div>
<div>
<h3 class="font-medium">Vehicle Idling</h3>
<p class="text-sm text-gray-400">Loading Dock • 42 min ago</p>
</div>
</div>
<div class="flex items-center space-x-2">
<span class="text-sm bg-yellow-500/20 text-yellow-400 px-2 py-1 rounded-full">Medium</span>
<i class="fas fa-chevron-right text-gray-400"></i>
</div>
</div>
</div>
<!-- Incident 3 -->
<div class="glass-card rounded-xl p-4 hover:bg-gray-900/50 transition cursor-pointer">
<div class="flex justify-between items-center">
<div class="flex items-center space-x-3">
<div class="p-2.5 rounded-lg bg-green-500/20">
<i class="fas fa-box text-green-500"></i>
</div>
<div>
<h3 class="font-medium">Package Delivery</h3>
<p class="text-sm text-gray-400">Main Entrance • 1 hr ago</p>
</div>
</div>
<div class="flex items-center space-x-2">
<span class="text-sm bg-green-500/20 text-green-400 px-2 py-1 rounded-full">Low</span>
<i class="fas fa-chevron-right text-gray-400"></i>
</div>
</div>
</div>
</div>
</div>
<!-- Camera Status -->
<div class="glass-card rounded-2xl p-6">
<h2 class="text-xl font-semibold mb-4">Monitoring Status</h2>
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
<div class="bg-gray-900/50 rounded-xl p-4">
<div class="flex justify-between items-center mb-2">
<span class="text-gray-400">Active Cameras</span>
<div class="w-8 h-8 rounded-full bg-green-500/20 flex items-center justify-center">
<i class="fas fa-check text-green-500 text-sm"></i>
</div>
</div>
<h3 class="text-2xl font-medium">24</h3>
<p class="text-sm text-gray-400">98% operational</p>
</div>
<div class="bg-gray-900/50 rounded-xl p-4">
<div class="flex justify-between items-center mb-2">
<span class="text-gray-400">Incidents Today</span>
<div class="w-8 h-8 rounded-full bg-red-500/20 flex items-center justify-center">
<i class="fas fa-exclamation text-red-500 text-sm"></i>
</div>
</div>
<h3 class="text-2xl font-medium">7</h3>
<p class="text-sm text-gray-400">3 high severity</p>
</div>
<div class="bg-gray-900/50 rounded-xl p-4">
<div class="flex justify-between items-center mb-2">
<span class="text-gray-400">Response Time</span>
<div class="w-8 h-8 rounded-full bg-blue-500/20 flex items-center justify-center">
<i class="fas fa-clock text-blue-500 text-sm"></i>
</div>
</div>
<h3 class="text-2xl font-medium">2.4m</h3>
<p class="text-sm text-gray-400">Average response</p>
</div>
</div>
</div>
</div>
<script>
// Simulate real-time updates
function simulateUpdates() {
// Update timestamp for main incident
const timestampElement = document.querySelector('.text-gray-400:has(+ .text-gray-400)');
if (timestampElement) {
const minutes = Math.floor(Math.random() * 5) + 1;
timestampElement.textContent = `${minutes} min ago`;
}
// Animate severity dot
const severityDot = document.querySelector('.pulse-dot');
if (severityDot) {
setInterval(() => {
severityDot.classList.toggle('pulse-dot');
setTimeout(() => severityDot.classList.toggle('pulse-dot'), 50);
}, 2000);
}
// Simulate new incident notification
setTimeout(() => {
const notification = document.createElement('div');
notification.className = 'fixed bottom-4 right-4 bg-gray-800 rounded-xl p-4 shadow-lg border-l-4 border-red-500 animate-fade-in';
notification.innerHTML = `
<div class="flex items-center space-x-3">
<div class="w-3 h-3 rounded-full bg-red-500"></div>
<div>
<h4 class="font-medium">New Incident Detected</h4>
<p class="text-sm text-gray-400">Side collision on Oak St</p>
</div>
</div>
`;
document.body.appendChild(notification);
setTimeout(() => {
notification.classList.add('opacity-0', 'transition-opacity', 'duration-300');
setTimeout(() => notification.remove(), 300);
}, 5000);
}, 8000);
}
// Initialize
document.addEventListener('DOMContentLoaded', () => {
simulateUpdates();
// Add click handlers for incident cards
document.querySelectorAll('.glass-card.rounded-xl').forEach(card => {
card.addEventListener('click', () => {
// In a real app, this would navigate to incident detail
console.log('Viewing incident details');
});
});
});
</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=transformered/ai-vision" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html> |