Spaces:
Running
Running
i have a nextjs app that wants show AI cameras events detectors and wants tell user car crashed with desripction and ...design should be like apple theme create it - Initial Deployment
Browse files- README.md +7 -5
- index.html +340 -19
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: ai-vision
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: green
|
| 5 |
+
colorTo: blue
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
|
@@ -1,19 +1,340 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>AI Vision | Incident Detection</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
+
<style>
|
| 10 |
+
@keyframes fadeIn {
|
| 11 |
+
from { opacity: 0; transform: translateY(10px); }
|
| 12 |
+
to { opacity: 1; transform: translateY(0); }
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
+
.animate-fade-in {
|
| 16 |
+
animation: fadeIn 0.5s ease-out forwards;
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
.glass-card {
|
| 20 |
+
background: rgba(255, 255, 255, 0.08);
|
| 21 |
+
backdrop-filter: blur(12px);
|
| 22 |
+
-webkit-backdrop-filter: blur(12px);
|
| 23 |
+
border: 1px solid rgba(255, 255, 255, 0.08);
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
.severity-high {
|
| 27 |
+
box-shadow: 0 0 15px rgba(255, 59, 48, 0.5);
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
.severity-medium {
|
| 31 |
+
box-shadow: 0 0 15px rgba(255, 149, 0, 0.5);
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
.severity-low {
|
| 35 |
+
box-shadow: 0 0 15px rgba(52, 199, 89, 0.3);
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
.map-container {
|
| 39 |
+
height: 200px;
|
| 40 |
+
background: linear-gradient(135deg, #1e3a8a, #3b82f6);
|
| 41 |
+
border-radius: 12px;
|
| 42 |
+
position: relative;
|
| 43 |
+
overflow: hidden;
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
.map-overlay {
|
| 47 |
+
position: absolute;
|
| 48 |
+
top: 0;
|
| 49 |
+
left: 0;
|
| 50 |
+
right: 0;
|
| 51 |
+
bottom: 0;
|
| 52 |
+
background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
|
| 53 |
+
}
|
| 54 |
+
|
| 55 |
+
.pulse-dot {
|
| 56 |
+
animation: pulse 2s infinite;
|
| 57 |
+
}
|
| 58 |
+
|
| 59 |
+
@keyframes pulse {
|
| 60 |
+
0% { transform: scale(1); opacity: 1; }
|
| 61 |
+
50% { transform: scale(1.2); opacity: 0.7; }
|
| 62 |
+
100% { transform: scale(1); opacity: 1; }
|
| 63 |
+
}
|
| 64 |
+
</style>
|
| 65 |
+
</head>
|
| 66 |
+
<body class="bg-black text-gray-100 font-sans min-h-screen">
|
| 67 |
+
<div class="container mx-auto px-4 py-8 max-w-4xl">
|
| 68 |
+
<!-- Header -->
|
| 69 |
+
<header class="flex justify-between items-center mb-8">
|
| 70 |
+
<div class="flex items-center space-x-2">
|
| 71 |
+
<div class="w-8 h-8 rounded-full bg-gradient-to-br from-blue-500 to-blue-700 flex items-center justify-center">
|
| 72 |
+
<i class="fas fa-eye text-white text-sm"></i>
|
| 73 |
+
</div>
|
| 74 |
+
<h1 class="text-xl font-semibold">AI Vision</h1>
|
| 75 |
+
</div>
|
| 76 |
+
<div class="flex space-x-4">
|
| 77 |
+
<button class="p-2 rounded-full bg-gray-800 hover:bg-gray-700 transition">
|
| 78 |
+
<i class="fas fa-search text-gray-400"></i>
|
| 79 |
+
</button>
|
| 80 |
+
<button class="p-2 rounded-full bg-gray-800 hover:bg-gray-700 transition">
|
| 81 |
+
<i class="fas fa-cog text-gray-400"></i>
|
| 82 |
+
</button>
|
| 83 |
+
</div>
|
| 84 |
+
</header>
|
| 85 |
+
|
| 86 |
+
<!-- Incident Alert -->
|
| 87 |
+
<div class="glass-card rounded-2xl p-6 mb-8 severity-high animate-fade-in">
|
| 88 |
+
<div class="flex justify-between items-start mb-4">
|
| 89 |
+
<div>
|
| 90 |
+
<div class="flex items-center space-x-2 mb-2">
|
| 91 |
+
<div class="w-3 h-3 rounded-full bg-red-500 pulse-dot"></div>
|
| 92 |
+
<span class="text-red-400 font-medium">URGENT</span>
|
| 93 |
+
</div>
|
| 94 |
+
<h2 class="text-2xl font-semibold">Vehicle Collision Detected</h2>
|
| 95 |
+
<p class="text-gray-400">High severity incident</p>
|
| 96 |
+
</div>
|
| 97 |
+
<div class="bg-red-500/20 p-2 rounded-lg">
|
| 98 |
+
<i class="fas fa-car-crash text-red-500 text-xl"></i>
|
| 99 |
+
</div>
|
| 100 |
+
</div>
|
| 101 |
+
|
| 102 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
|
| 103 |
+
<!-- Incident Image -->
|
| 104 |
+
<div class="bg-gray-900 rounded-xl overflow-hidden">
|
| 105 |
+
<div class="relative">
|
| 106 |
+
<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"
|
| 107 |
+
alt="Collision scene" class="w-full h-48 object-cover">
|
| 108 |
+
<div class="absolute inset-0 bg-gradient-to-t from-black/60 to-transparent"></div>
|
| 109 |
+
<div class="absolute bottom-4 left-4">
|
| 110 |
+
<div class="flex items-center space-x-2">
|
| 111 |
+
<div class="bg-red-500 p-1.5 rounded-full">
|
| 112 |
+
<i class="fas fa-exclamation text-white text-xs"></i>
|
| 113 |
+
</div>
|
| 114 |
+
<span class="text-white font-medium">AI Detected Impact</span>
|
| 115 |
+
</div>
|
| 116 |
+
</div>
|
| 117 |
+
</div>
|
| 118 |
+
<div class="p-4">
|
| 119 |
+
<div class="flex justify-between text-sm">
|
| 120 |
+
<span class="text-gray-400">Confidence: 98%</span>
|
| 121 |
+
<span class="text-gray-400">2 min ago</span>
|
| 122 |
+
</div>
|
| 123 |
+
</div>
|
| 124 |
+
</div>
|
| 125 |
+
|
| 126 |
+
<!-- Incident Details -->
|
| 127 |
+
<div>
|
| 128 |
+
<div class="space-y-4">
|
| 129 |
+
<div>
|
| 130 |
+
<h3 class="text-sm font-medium text-gray-400 mb-1">INCIDENT DETAILS</h3>
|
| 131 |
+
<p class="text-gray-200">
|
| 132 |
+
Front-end collision detected between two vehicles at approximately 35 mph. Airbag deployment detected in primary vehicle. Secondary impact with roadside barrier observed.
|
| 133 |
+
</p>
|
| 134 |
+
</div>
|
| 135 |
+
|
| 136 |
+
<div class="grid grid-cols-2 gap-4">
|
| 137 |
+
<div>
|
| 138 |
+
<h3 class="text-sm font-medium text-gray-400 mb-1">LOCATION</h3>
|
| 139 |
+
<p class="text-gray-200">Intersection of 5th Ave & Main St</p>
|
| 140 |
+
</div>
|
| 141 |
+
<div>
|
| 142 |
+
<h3 class="text-sm font-medium text-gray-400 mb-1">VEHICLES</h3>
|
| 143 |
+
<p class="text-gray-200">2 vehicles involved</p>
|
| 144 |
+
</div>
|
| 145 |
+
</div>
|
| 146 |
+
|
| 147 |
+
<div class="map-container">
|
| 148 |
+
<div class="map-overlay"></div>
|
| 149 |
+
<div class="absolute top-4 left-4 z-10">
|
| 150 |
+
<div class="bg-black/70 px-3 py-1.5 rounded-full">
|
| 151 |
+
<i class="fas fa-map-marker-alt text-red-500 mr-2"></i>
|
| 152 |
+
<span class="text-white">Incident Location</span>
|
| 153 |
+
</div>
|
| 154 |
+
</div>
|
| 155 |
+
<div class="absolute bottom-4 right-4 z-10">
|
| 156 |
+
<div class="flex space-x-2">
|
| 157 |
+
<button class="bg-black/70 p-2 rounded-full">
|
| 158 |
+
<i class="fas fa-compress text-white"></i>
|
| 159 |
+
</button>
|
| 160 |
+
<button class="bg-blue-600 p-2 rounded-full">
|
| 161 |
+
<i class="fas fa-directions text-white"></i>
|
| 162 |
+
</button>
|
| 163 |
+
</div>
|
| 164 |
+
</div>
|
| 165 |
+
</div>
|
| 166 |
+
</div>
|
| 167 |
+
</div>
|
| 168 |
+
</div>
|
| 169 |
+
|
| 170 |
+
<div class="mt-6 pt-6 border-t border-gray-800 flex justify-between">
|
| 171 |
+
<button class="px-4 py-2.5 rounded-full bg-gray-800 hover:bg-gray-700 transition flex items-center space-x-2">
|
| 172 |
+
<i class="fas fa-phone text-blue-400"></i>
|
| 173 |
+
<span>Call Emergency</span>
|
| 174 |
+
</button>
|
| 175 |
+
<button class="px-4 py-2.5 rounded-full bg-blue-600 hover:bg-blue-700 transition flex items-center space-x-2">
|
| 176 |
+
<i class="fas fa-info-circle"></i>
|
| 177 |
+
<span>View Full Report</span>
|
| 178 |
+
</button>
|
| 179 |
+
</div>
|
| 180 |
+
</div>
|
| 181 |
+
|
| 182 |
+
<!-- Recent Incidents -->
|
| 183 |
+
<div class="mb-8">
|
| 184 |
+
<h2 class="text-xl font-semibold mb-4">Recent Incidents</h2>
|
| 185 |
+
<div class="space-y-3">
|
| 186 |
+
<!-- Incident 1 -->
|
| 187 |
+
<div class="glass-card rounded-xl p-4 hover:bg-gray-900/50 transition cursor-pointer">
|
| 188 |
+
<div class="flex justify-between items-center">
|
| 189 |
+
<div class="flex items-center space-x-3">
|
| 190 |
+
<div class="p-2.5 rounded-lg bg-red-500/20">
|
| 191 |
+
<i class="fas fa-car-crash text-red-500"></i>
|
| 192 |
+
</div>
|
| 193 |
+
<div>
|
| 194 |
+
<h3 class="font-medium">Rear-end Collision</h3>
|
| 195 |
+
<p class="text-sm text-gray-400">Main St & 3rd Ave • 15 min ago</p>
|
| 196 |
+
</div>
|
| 197 |
+
</div>
|
| 198 |
+
<div class="flex items-center space-x-2">
|
| 199 |
+
<span class="text-sm bg-red-500/20 text-red-400 px-2 py-1 rounded-full">High</span>
|
| 200 |
+
<i class="fas fa-chevron-right text-gray-400"></i>
|
| 201 |
+
</div>
|
| 202 |
+
</div>
|
| 203 |
+
</div>
|
| 204 |
+
|
| 205 |
+
<!-- Incident 2 -->
|
| 206 |
+
<div class="glass-card rounded-xl p-4 hover:bg-gray-900/50 transition cursor-pointer">
|
| 207 |
+
<div class="flex justify-between items-center">
|
| 208 |
+
<div class="flex items-center space-x-3">
|
| 209 |
+
<div class="p-2.5 rounded-lg bg-yellow-500/20">
|
| 210 |
+
<i class="fas fa-car-burst text-yellow-500"></i>
|
| 211 |
+
</div>
|
| 212 |
+
<div>
|
| 213 |
+
<h3 class="font-medium">Side Impact</h3>
|
| 214 |
+
<p class="text-sm text-gray-400">Broadway & 7th St • 42 min ago</p>
|
| 215 |
+
</div>
|
| 216 |
+
</div>
|
| 217 |
+
<div class="flex items-center space-x-2">
|
| 218 |
+
<span class="text-sm bg-yellow-500/20 text-yellow-400 px-2 py-1 rounded-full">Medium</span>
|
| 219 |
+
<i class="fas fa-chevron-right text-gray-400"></i>
|
| 220 |
+
</div>
|
| 221 |
+
</div>
|
| 222 |
+
</div>
|
| 223 |
+
|
| 224 |
+
<!-- Incident 3 -->
|
| 225 |
+
<div class="glass-card rounded-xl p-4 hover:bg-gray-900/50 transition cursor-pointer">
|
| 226 |
+
<div class="flex justify-between items-center">
|
| 227 |
+
<div class="flex items-center space-x-3">
|
| 228 |
+
<div class="p-2.5 rounded-lg bg-green-500/20">
|
| 229 |
+
<i class="fas fa-car-side text-green-500"></i>
|
| 230 |
+
</div>
|
| 231 |
+
<div>
|
| 232 |
+
<h3 class="font-medium">Near Miss</h3>
|
| 233 |
+
<p class="text-sm text-gray-400">Park Ave & 15th St • 1 hr ago</p>
|
| 234 |
+
</div>
|
| 235 |
+
</div>
|
| 236 |
+
<div class="flex items-center space-x-2">
|
| 237 |
+
<span class="text-sm bg-green-500/20 text-green-400 px-2 py-1 rounded-full">Low</span>
|
| 238 |
+
<i class="fas fa-chevron-right text-gray-400"></i>
|
| 239 |
+
</div>
|
| 240 |
+
</div>
|
| 241 |
+
</div>
|
| 242 |
+
</div>
|
| 243 |
+
</div>
|
| 244 |
+
|
| 245 |
+
<!-- Camera Status -->
|
| 246 |
+
<div class="glass-card rounded-2xl p-6">
|
| 247 |
+
<h2 class="text-xl font-semibold mb-4">Camera Network Status</h2>
|
| 248 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
|
| 249 |
+
<div class="bg-gray-900/50 rounded-xl p-4">
|
| 250 |
+
<div class="flex justify-between items-center mb-2">
|
| 251 |
+
<span class="text-gray-400">Active Cameras</span>
|
| 252 |
+
<div class="w-8 h-8 rounded-full bg-green-500/20 flex items-center justify-center">
|
| 253 |
+
<i class="fas fa-check text-green-500 text-sm"></i>
|
| 254 |
+
</div>
|
| 255 |
+
</div>
|
| 256 |
+
<h3 class="text-2xl font-medium">24</h3>
|
| 257 |
+
<p class="text-sm text-gray-400">98% operational</p>
|
| 258 |
+
</div>
|
| 259 |
+
|
| 260 |
+
<div class="bg-gray-900/50 rounded-xl p-4">
|
| 261 |
+
<div class="flex justify-between items-center mb-2">
|
| 262 |
+
<span class="text-gray-400">Incidents Today</span>
|
| 263 |
+
<div class="w-8 h-8 rounded-full bg-red-500/20 flex items-center justify-center">
|
| 264 |
+
<i class="fas fa-exclamation text-red-500 text-sm"></i>
|
| 265 |
+
</div>
|
| 266 |
+
</div>
|
| 267 |
+
<h3 class="text-2xl font-medium">7</h3>
|
| 268 |
+
<p class="text-sm text-gray-400">3 high severity</p>
|
| 269 |
+
</div>
|
| 270 |
+
|
| 271 |
+
<div class="bg-gray-900/50 rounded-xl p-4">
|
| 272 |
+
<div class="flex justify-between items-center mb-2">
|
| 273 |
+
<span class="text-gray-400">Response Time</span>
|
| 274 |
+
<div class="w-8 h-8 rounded-full bg-blue-500/20 flex items-center justify-center">
|
| 275 |
+
<i class="fas fa-clock text-blue-500 text-sm"></i>
|
| 276 |
+
</div>
|
| 277 |
+
</div>
|
| 278 |
+
<h3 class="text-2xl font-medium">2.4m</h3>
|
| 279 |
+
<p class="text-sm text-gray-400">Average response</p>
|
| 280 |
+
</div>
|
| 281 |
+
</div>
|
| 282 |
+
</div>
|
| 283 |
+
</div>
|
| 284 |
+
|
| 285 |
+
<script>
|
| 286 |
+
// Simulate real-time updates
|
| 287 |
+
function simulateUpdates() {
|
| 288 |
+
// Update timestamp for main incident
|
| 289 |
+
const timestampElement = document.querySelector('.text-gray-400:has(+ .text-gray-400)');
|
| 290 |
+
if (timestampElement) {
|
| 291 |
+
const minutes = Math.floor(Math.random() * 5) + 1;
|
| 292 |
+
timestampElement.textContent = `${minutes} min ago`;
|
| 293 |
+
}
|
| 294 |
+
|
| 295 |
+
// Animate severity dot
|
| 296 |
+
const severityDot = document.querySelector('.pulse-dot');
|
| 297 |
+
if (severityDot) {
|
| 298 |
+
setInterval(() => {
|
| 299 |
+
severityDot.classList.toggle('pulse-dot');
|
| 300 |
+
setTimeout(() => severityDot.classList.toggle('pulse-dot'), 50);
|
| 301 |
+
}, 2000);
|
| 302 |
+
}
|
| 303 |
+
|
| 304 |
+
// Simulate new incident notification
|
| 305 |
+
setTimeout(() => {
|
| 306 |
+
const notification = document.createElement('div');
|
| 307 |
+
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';
|
| 308 |
+
notification.innerHTML = `
|
| 309 |
+
<div class="flex items-center space-x-3">
|
| 310 |
+
<div class="w-3 h-3 rounded-full bg-red-500"></div>
|
| 311 |
+
<div>
|
| 312 |
+
<h4 class="font-medium">New Incident Detected</h4>
|
| 313 |
+
<p class="text-sm text-gray-400">Side collision on Oak St</p>
|
| 314 |
+
</div>
|
| 315 |
+
</div>
|
| 316 |
+
`;
|
| 317 |
+
document.body.appendChild(notification);
|
| 318 |
+
|
| 319 |
+
setTimeout(() => {
|
| 320 |
+
notification.classList.add('opacity-0', 'transition-opacity', 'duration-300');
|
| 321 |
+
setTimeout(() => notification.remove(), 300);
|
| 322 |
+
}, 5000);
|
| 323 |
+
}, 8000);
|
| 324 |
+
}
|
| 325 |
+
|
| 326 |
+
// Initialize
|
| 327 |
+
document.addEventListener('DOMContentLoaded', () => {
|
| 328 |
+
simulateUpdates();
|
| 329 |
+
|
| 330 |
+
// Add click handlers for incident cards
|
| 331 |
+
document.querySelectorAll('.glass-card.rounded-xl').forEach(card => {
|
| 332 |
+
card.addEventListener('click', () => {
|
| 333 |
+
// In a real app, this would navigate to incident detail
|
| 334 |
+
console.log('Viewing incident details');
|
| 335 |
+
});
|
| 336 |
+
});
|
| 337 |
+
});
|
| 338 |
+
</script>
|
| 339 |
+
<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>
|
| 340 |
+
</html>
|