mrd33p commited on
Commit
e550646
·
verified ·
1 Parent(s): 5afb64a

Add 3 files

Browse files
Files changed (3) hide show
  1. README.md +7 -5
  2. index.html +649 -19
  3. prompts.txt +2 -0
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Diesel Engine Movement
3
- emoji: 🐢
4
- colorFrom: yellow
5
- colorTo: blue
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: diesel-engine-movement
3
+ emoji: 🐳
4
+ colorFrom: blue
5
+ colorTo: green
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,649 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>Municipal Diesel Engine Tracking System</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
+ .map-container {
11
+ height: 400px;
12
+ background-color: #e5e7eb;
13
+ position: relative;
14
+ overflow: hidden;
15
+ }
16
+
17
+ .location-marker {
18
+ position: absolute;
19
+ width: 24px;
20
+ height: 24px;
21
+ background-color: #3b82f6;
22
+ border-radius: 50%;
23
+ transform: translate(-50%, -50%);
24
+ display: flex;
25
+ align-items: center;
26
+ justify-content: center;
27
+ color: white;
28
+ font-weight: bold;
29
+ cursor: pointer;
30
+ box-shadow: 0 2px 4px rgba(0,0,0,0.2);
31
+ }
32
+
33
+ .location-marker:hover {
34
+ background-color: #2563eb;
35
+ transform: translate(-50%, -50%) scale(1.2);
36
+ }
37
+
38
+ .engine-status-active {
39
+ border-left: 4px solid #10b981;
40
+ }
41
+
42
+ .engine-status-inactive {
43
+ border-left: 4px solid #ef4444;
44
+ }
45
+
46
+ .engine-status-maintenance {
47
+ border-left: 4px solid #f59e0b;
48
+ }
49
+
50
+ .animate-pulse {
51
+ animation: pulse 2s infinite;
52
+ }
53
+
54
+ @keyframes pulse {
55
+ 0% {
56
+ opacity: 1;
57
+ }
58
+ 50% {
59
+ opacity: 0.5;
60
+ }
61
+ 100% {
62
+ opacity: 1;
63
+ }
64
+ }
65
+
66
+ .sidebar {
67
+ transition: all 0.3s ease;
68
+ }
69
+
70
+ @media (max-width: 768px) {
71
+ .sidebar {
72
+ position: absolute;
73
+ left: -100%;
74
+ z-index: 50;
75
+ }
76
+
77
+ .sidebar-open {
78
+ left: 0;
79
+ }
80
+ }
81
+
82
+ .scroll-to-section {
83
+ scroll-margin-top: 20px;
84
+ }
85
+
86
+ .highlight-section {
87
+ animation: highlight 2s ease-out;
88
+ }
89
+
90
+ @keyframes highlight {
91
+ 0% {
92
+ box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
93
+ }
94
+ 70% {
95
+ box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
96
+ }
97
+ 100% {
98
+ box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
99
+ }
100
+ }
101
+ </style>
102
+ </head>
103
+ <body class="bg-gray-100">
104
+ <div class="flex h-screen overflow-hidden">
105
+ <!-- Sidebar -->
106
+ <div class="sidebar bg-white w-64 border-r border-gray-200 flex flex-col">
107
+ <div class="p-4 border-b border-gray-200 bg-blue-600 text-white">
108
+ <h1 class="text-xl font-bold flex items-center">
109
+ <i class="fas fa-gas-pump mr-2"></i>
110
+ Municipal Engine Tracker
111
+ </h1>
112
+ </div>
113
+ <div class="flex-1 overflow-y-auto">
114
+ <nav class="p-4">
115
+ <div class="mb-6">
116
+ <h2 class="text-xs uppercase font-semibold text-gray-500 mb-3">Navigation</h2>
117
+ <ul>
118
+ <li class="mb-2">
119
+ <a href="#" class="flex items-center p-2 text-blue-600 rounded-lg bg-blue-50">
120
+ <i class="fas fa-tachometer-alt mr-3"></i>
121
+ Dashboard
122
+ </a>
123
+ </li>
124
+ <li class="mb-2">
125
+ <a href="#engineListSection" id="enginesNavLink" class="flex items-center p-2 text-gray-700 hover:bg-gray-100 rounded-lg">
126
+ <i class="fas fa-gas-pump mr-3"></i>
127
+ Engines
128
+ </a>
129
+ </li>
130
+ <li class="mb-2">
131
+ <a href="#" class="flex items-center p-2 text-gray-700 hover:bg-gray-100 rounded-lg">
132
+ <i class="fas fa-users mr-3"></i>
133
+ Operators
134
+ </a>
135
+ </li>
136
+ <li class="mb-2">
137
+ <a href="#" class="flex items-center p-2 text-gray-700 hover:bg-gray-100 rounded-lg">
138
+ <i class="fas fa-map-marker-alt mr-3"></i>
139
+ Locations
140
+ </a>
141
+ </li>
142
+ <li class="mb-2">
143
+ <a href="#" class="flex items-center p-2 text-gray-700 hover:bg-gray-100 rounded-lg">
144
+ <i class="fas fa-history mr-3"></i>
145
+ Movement Log
146
+ </a>
147
+ </li>
148
+ </ul>
149
+ </div>
150
+ <div>
151
+ <h2 class="text-xs uppercase font-semibold text-gray-500 mb-极速赛车开奖直播官网3">Reports</h2>
152
+ <ul>
153
+ <li class="mb-2">
154
+ <a href="#" class="flex items-center p-2 text-gray-700 hover:bg-gray-100 rounded-lg">
155
+ <i class="fas fa-chart-bar mr-3"></i>
156
+ Usage Statistics
157
+ </a>
158
+ </li>
159
+ <li class="mb-2">
160
+ <a href="#" class="flex items-center p-2 text-gray-700 hover:bg-gray-100 rounded-lg">
161
+ <i class="fas fa-file-alt mr极速赛车开奖直播官网-3"></i>
162
+ Maintenance Logs
163
+ </a>
164
+ </li>
165
+ </ul>
166
+ </div>
167
+ </nav>
168
+ </div>
169
+ <div class="p-4 border-t border-gray-200">
170
+ <div class="flex items-center">
171
+ <div class="w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center text-blue-600">
172
+ <i class="fas fa-user"></i>
173
+ </div>
174
+ <div class="ml-3">
175
+ <p class="text-sm font-medium">Admin User</p>
176
+ <p class="text-xs text-gray-500">Municipal Office</p>
177
+ </div>
178
+ </div>
179
+ </div>
180
+ </div>
181
+
182
+ <!-- Main Content -->
183
+ <div class="flex-1 flex flex-col overflow-hidden">
184
+ <!-- Top Navigation -->
185
+ <header class="bg-white border-b border-gray-200 p-4 flex items-center justify-between">
186
+ <div class="flex items-center">
187
+ <button id="sidebarToggle" class="md:hidden mr-4 text-gray-600">
188
+ <i class="fas fa-bars"></i>
189
+ </button>
190
+ <h2 class="text-lg font-semibold">Diesel Engine Movement Tracking</h2>
191
+ </div>
192
+ <div class="flex items-center space-x-4">
193
+ <div class="relative">
194
+ <input type="text" placeholder="Search..." class="pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
195
+ <i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
196
+ </div>
197
+ <button class="p-2 text-gray-600 hover:text-gray-900">
198
+ <i class="fas fa-bell"></i>
199
+ </button>
200
+ </div>
201
+ </header>
202
+
203
+ <!-- Main Content Area -->
204
+ <main class="flex-1 overflow-y-auto p-6">
205
+ <!-- Stats Cards -->
206
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6">
207
+ <div id="totalEnginesCard" class="bg-white rounded-lg shadow p-6 cursor-pointer hover:shadow-md transition-shadow">
208
+ <div class="flex items-center justify-between">
209
+ <div>
210
+ <p class="text-sm font-medium text-gray-500">Total Engines</p>
211
+ <p class="text-2xl font-bold">24</p>
212
+ </div>
213
+ <div class="p-3 rounded-full bg-blue-100 text-blue-600">
214
+ <i class="fas fa-gas-pump text-xl"></i>
215
+ </div>
216
+ </div>
217
+ </div>
218
+ <div class="bg-white rounded-lg shadow p-6">
219
+ <div class="flex items-center justify-between">
220
+ <div>
221
+ <p class="text-sm font-medium text-gray-500">Active Engines</p>
222
+ <p class="text-2xl font-bold">18</p>
223
+ </div>
224
+ <div class="p-3 rounded-full bg-green-100 text-green-600">
225
+ <i class="fas fa-check-circle text-xl"></i>
226
+ </div>
227
+ </div>
228
+ </div>
229
+ <div class="bg-white rounded-lg shadow p-6">
230
+ <div class="flex items-center justify-between">
231
+ <div>
232
+ <p class="text-sm font-medium text-gray-500">In Maintenance</p>
233
+ <p class="text-2xl font-bold">4</p>
234
+ </div>
235
+ <div class="p-3 rounded-full bg-yellow-100 text-yellow-600">
236
+ <i class="fas fa-tools text-xl"></i>
237
+ </div>
238
+ </div>
239
+ </div>
240
+ <div class="bg-white rounded-lg shadow p-6">
241
+ <div class="flex items-center justify-between">
242
+ <div>
243
+ <p class="text-sm font-medium text-gray-500">Operators</p>
244
+ <p class="text-2xl font-bold">15</p>
245
+ </div>
246
+ <div class="p-3 rounded-full bg-purple-100 text-purple-600">
247
+ <i class="fas fa-users text-xl"></i>
248
+ </div>
249
+ </div>
250
+ </div>
251
+ </div>
252
+
253
+ <!-- Map and Recent Movements -->
254
+ <div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6">
255
+ <!-- Map Container -->
256
+ <div class="lg:col-span-2 bg-white rounded-lg shadow overflow-hidden">
257
+ <div class="p-4 border-b border-gray-200">
258
+ <h3 class="font-semibold">Engine Locations</h3>
259
+ </div>
260
+ <div class="map-container relative">
261
+ <!-- This would be replaced with a real map in production -->
262
+ <div class="location-marker" style="top: 30%; left: 25%;" data-engine="DE-001">
263
+ <span>1</span>
264
+ </div>
265
+ <div class="location-marker" style="top: 45%; left: 60%;" data-engine="DE-005">
266
+ <span>5</span>
267
+ </div>
268
+ <div class="location-marker" style="top: 70%; left: 40%;" data-engine="DE-012">
269
+ <span>12</span>
270
+ </div>
271
+ <div class="location-marker animate-pulse" style="top: 55%; left: 75%;" data-engine="DE-018">
272
+ <span>18</span>
273
+ </div>
274
+ </div>
275
+ </div>
276
+
277
+ <!-- Recent Movements -->
278
+ <div class="bg-white rounded-lg shadow overflow-hidden">
279
+ <div class="p-4 border-b border-gray-200">
280
+ <h3 class="font-semibold">Recent Movements</h3>
281
+ </div>
282
+ <div class="divide-y divide-gray-200 max-h-96 overflow-y-auto">
283
+ <div class="p-4 hover:bg-gray-50 cursor-pointer">
284
+ <div class="flex items-center justify-between">
285
+ <div>
286
+ <p class="font-medium">DE-018</p>
287
+ <p class="text-sm text-gray-500">From: Pump Station 3</p>
288
+ <p class="text-sm text-gray-500">To: Flood Control Area B</p>
289
+ </div>
290
+ <div class="text-right">
291
+ <p class="text-sm text-gray-500">Today, 09:45 AM</p>
292
+ <p class="text-sm font-medium">Operator: Rajesh Kumar</p>
293
+ </div>
294
+ </div>
295
+ </div>
296
+ <div class="p-4 hover:bg-gray-50 cursor-pointer">
297
+ <div class="flex items-center justify-between">
298
+ <div>
299
+ <p class="font-medium">DE-005</p>
300
+ <p class="text-sm text-gray-500">From: Water Treatment Plant</p>
301
+ <p class="text-sm text-gray-500">To: Pump Station 3</p>
302
+ </div>
303
+ <div class="text-right">
304
+ <p class="text-sm text-gray-500">Yesterday, 04:30 PM</p>
305
+ <p class="text-sm font-medium">Operator: Sunita Patel</p>
306
+ </div>
307
+ </div>
308
+ </div>
309
+ <div class="p-4 hover:bg-gray-50 cursor-pointer">
310
+ <div class="flex items-center justify-between">
311
+ <div>
312
+ <p class="font-medium">DE-012</p>
313
+ <p class="text-sm text-gray-500">From: Flood Control Area A</p>
314
+ <p class="text-sm text-gray-500">To: Maintenance Center</极速赛车开奖直播官网p>
315
+ </div>
316
+ <div class="text-right">
317
+ <p class="text-sm text-gray-500">Yesterday, 11:20 AM</p>
318
+ <p class="text-sm font-medium">Operator: Amit Sharma</p>
319
+ </div>
320
+ </div>
321
+ </div>
322
+ <div class="p-4 hover:bg-gray-50 cursor-pointer">
323
+ <div class="flex items-center justify-between">
324
+ <div>
325
+ <p class="font-medium">DE-001</p>
326
+ <p class="text-sm text-gray-500">From: Storage Facility</p>
327
+ <p class="text-sm text-gray-500">To: Water Treatment Plant</p>
328
+ </div>
329
+ <div class="text-right">
330
+ <p class="text-sm text-gray-500">2 days ago, 08:15 AM</p>
331
+ <p class="text-sm font-medium">Operator: Priya Gupta</p>
332
+ </div>
333
+ </div>
334
+ </div>
335
+ </div>
336
+ </div>
337
+ </div>
338
+
339
+ <!-- Engine List -->
340
+ <div id="engineListSection" class="bg-white rounded-lg shadow overflow-hidden scroll-to-section">
341
+ <div class="p-4 border-b border-gray-200 flex justify-between items-center">
342
+ <h3 class="font-semibold">All Diesel Engines</h3>
343
+ <button class="bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700 flex items-center">
344
+ <i class="fas fa-plus mr-2"></i>
345
+ Add New Engine
346
+ </button>
347
+ </div>
348
+ <div class="overflow-x-auto">
349
+ <table class="min-w-full divide-y divide-gray-200">
350
+ <thead class="bg-gray-50">
351
+ <tr>
352
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Engine ID</th>
353
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Current Location</th>
354
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
355
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Last Moved</th>
356
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Assigned Operator</th>
357
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
358
+ </tr>
359
+ </thead>
360
+ <tbody class="bg-white divide-y divide-gray-200">
361
+ <tr class="engine-status-active hover:bg-gray-50">
362
+ <td class="px-6 py-4 whitespace-nowrap">
363
+ <div class="flex items-center">
364
+ <div class="flex-shrink-0 h-10 w-10 bg-blue-100 rounded-full flex items-center justify-center text-blue-600">
365
+ <i class="fas fa-gas-pump"></i>
366
+ </div>
367
+ <div class="ml-4">
368
+ <div class="text-sm font-medium text-gray-900">DE-001</div>
369
+ <div class="text-sm text-gray-500">150 HP</div>
370
+ </div>
371
+ </div>
372
+ </td>
373
+ <td class="px-6 py-4 whitespace-nowrap">
374
+ <div class="text-sm text-gray-900">Water Treatment Plant</div>
375
+ <div class="text-sm text-gray-500">Zone 2</div>
376
+ </td>
377
+ <td class="px-6 py-4 whitespace-nowrap">
378
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">
379
+ Active
380
+ </span>
381
+ </td>
382
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
383
+ 2 days ago
384
+ </td>
385
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
386
+ Priya Gupta
387
+ </td>
388
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
389
+ <button class="text-blue-600 hover:text-blue-900 mr-3">Track</button>
390
+ <button class="text-gray-600 hover:text-gray-900">History</button>
391
+ </td>
392
+ </tr>
393
+ <tr class="engine-status-maintenance hover:bg-gray-50">
394
+ <td class="px-6 py-4 whitespace-nowrap">
395
+ <div class="flex items-center">
396
+ <div class="flex-shrink-0 h-10 w-10 bg-yellow-100 rounded-full flex items-center justify-center text-yellow-600">
397
+ <i class="fas fa-gas-pump"></i>
398
+ </div>
399
+ <div class="ml-4">
400
+ <div class="text-sm font-medium text-gray-900">DE-005</div>
401
+ <div class="text-sm text-gray-500">200 HP</div>
402
+ </div>
403
+ </div>
404
+ </td>
405
+ <td class="px-6 py-4 whitespace-nowrap">
406
+ <div class="text-sm text-gray-900">Pump Station 3</div>
407
+ <div class="text-sm text-gray-500">Zone 4</div>
408
+ </td>
409
+ <td class="px-6 py-4 whitespace-nowrap">
410
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">
411
+ Maintenance
412
+ </span>
413
+ </td>
414
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
415
+ Yesterday
416
+ </td>
417
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
418
+ Sunita Patel
419
+ </td>
420
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
421
+ <button class="text-blue-600 hover:text-blue-900 mr-3">Track</button>
422
+ <button class="text-gray-600 hover:text-gray-900">History</button>
423
+ </td>
424
+ </tr>
425
+ <tr class="engine-status-active hover:bg-gray-50">
426
+ <td class="px-6 py-4 whitespace-nowrap">
427
+ <div class="flex items-center">
428
+ <div class="flex-shrink-0 h-10 w-10 bg-blue-100 rounded-full flex items-center justify-center text-blue-600">
429
+ <i class="fas fa-gas-pump"></i>
430
+ </div>
431
+ <div class="ml-4">
432
+ <div class="text-sm font-medium text-gray-900">DE-012</div>
433
+ <div class="text-sm text-gray-500">175 HP</div>
434
+ </div>
435
+ </div>
436
+ </td>
437
+ <td class="px-6 py-4 whitespace-nowrap">
438
+ <div class="text-sm text-gray-900">Maintenance Center</div>
439
+ <div class="极速赛车开奖直播官网text-sm text-gray-500">Central Zone</div>
440
+ </td>
441
+ <td class="px-6 py-4 whitespace-nowrap">
442
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">
443
+ Active
444
+ </span>
445
+ </td>
446
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
447
+ Yesterday
448
+ </td>
449
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
450
+ Amit Sharma
451
+ </td>
452
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
453
+ <button class="text-blue-600 hover:text-blue-900 mr-3">Track</button>
454
+ <button class="text-gray-600 hover:text-gray-900">History</button>
455
+ </td>
456
+ </tr>
457
+ <tr class="engine-status-active hover:bg-gray-50">
458
+ <td class="px-6 py-4 whitespace-nowrap">
459
+ <div class="flex items-center">
460
+ <div class="flex-shrink-0 h-10 w-10 bg-blue-100 rounded-full flex items-center justify-center text-blue-600">
461
+ <i class="fas fa-gas-pump"></i>
462
+ </div>
463
+ <div class="ml-4">
464
+ <div class="text-sm font-medium text-gray-900">DE-018</div>
465
+ <div class="text-sm text-gray-500">250 HP</div>
466
+ </div>
467
+ </div>
468
+ </td>
469
+ <td class="px-6 py-4 whitespace-nowrap">
470
+ <div class="text-sm text-gray-900">Flood Control Area B</div>
471
+ <div class="text-sm text-gray-500">Zone 5</div>
472
+ </td>
473
+ <td class="px-6 py-4 whitespace-nowrap">
474
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">
475
+ Active
476
+ </span>
477
+ </td>
478
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
479
+ Today
480
+ </td>
481
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
482
+ Rajesh Kumar
483
+ </td>
484
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
485
+ <button class="text-blue-600 hover:text-blue-900 mr-3">Track</button>
486
+ <button class="text-gray-600 hover:text-gray-900">History</button>
487
+ </td>
488
+ </tr>
489
+ </tbody>
490
+ </table>
491
+ </div>
492
+ </div>
493
+ </main>
494
+ </div>
495
+ </div>
496
+
497
+ <!-- Engine Details Modal (hidden by default) -->
498
+ <div id="engineModal" class="fixed inset-0 bg-gray-600 bg-opacity-50 flex items-center justify-center hidden z-50">
499
+ <div class="bg-white rounded-lg shadow-xl w-full max-w-2xl">
500
+ <div class="p-4 border-b border-gray-200 flex justify-between items-center">
501
+ <h3 class="text-lg font-semibold">Engine Details - DE-001</h3>
502
+ <button id="closeModal" class="text-gray-500 hover:text-gray-700">
503
+ <i class="fas fa-times"></i>
504
+ </button>
505
+ </div>
506
+ <div class="p-6">
507
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6">
508
+ <div>
509
+ <h4 class="font-medium text-gray-700 mb-2">Specifications</h4>
510
+ <div class="bg-gray-50 p-4 rounded-lg">
511
+ <div class="flex justify-between mb-2">
512
+ <span class="text-gray-600">HP Rating:</span>
513
+ <span class="font-medium">150 HP</span>
514
+ </div>
515
+ <div class="flex justify-between mb-2">
516
+ <span class="text-gray-600">Manufacturer:</span>
517
+ <span class="font-medium">Cummins</span>
518
+ </div>
519
+ <div class="flex justify-between mb-2">
520
+ <span class="text-gray-600">Model:</span>
521
+ <span class="font-medium">QSK19</span>
522
+ </div>
523
+ <div class="flex justify-between">
524
+ <span class="text-gray-600">Year:</span>
525
+ <span class="font-medium">2019</span>
526
+ </div>
527
+ </div>
528
+ </div>
529
+ <div>
530
+ <h4 class="font-medium text-gray-700 mb-2">Current Status</h4>
531
+ <div class="bg-gray-50 p-4 rounded-lg">
532
+ <div class="flex justify-between mb-2">
533
+ <span class="text-gray-600">Location:</span>
534
+ <span class="font-medium">Water Treatment Plant</span>
535
+ </div>
536
+ <div class="flex justify-between mb-2">
537
+ <span class="text-gray-600">Assigned Operator:</span>
538
+ <span class="font-medium">Priya Gupta</span>
539
+ </div>
540
+ <div class="flex justify-between mb-2">
541
+ <span class="text-gray-600">Status:</span>
542
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">
543
+ Active
544
+ </span>
545
+ </div>
546
+ <div class="flex justify-between">
547
+ <span class="text-gray-600">Last Moved:</span>
548
+ <span class="font-medium">2 days ago</span>
549
+ </div>
550
+ </div>
551
+ </div>
552
+ </div>
553
+
554
+ <h4 class="font-medium text-gray-700 mb-4">Movement History</h4>
555
+ <div class="bg-gray-50 p-4 rounded-lg max-h-60 overflow-y-auto">
556
+ <div class="mb-4 pb-4 border-b border-gray-200">
557
+ <div class="flex justify-between mb-1">
558
+ <span class="font-medium">From: Pump Station 2</span>
559
+ <span class="text-sm text-gray-500">2 days ago</span>
560
+ </div>
561
+ <div class="flex justify-between">
562
+ <span>To: Water Treatment Plant</span>
563
+ <span class="text-sm">Operator: Priya Gupta</span>
564
+ </div>
565
+ </div>
566
+ <div class="mb-4 pb-4 border-b border-gray-200">
567
+ <div class="flex justify-between mb-1">
568
+ <span class="font-medium">From: Storage Facility</span>
569
+ <span class="text-sm text-gray-500">1 week ago</span>
570
+ </div>
571
+ <div class="flex justify-between">
572
+ <span>To: Pump Station 2</span>
573
+ <span class="text-sm">Operator: Amit Sharma</span>
574
+ </div>
575
+ </div>
576
+ <div class="mb-4 pb-4 border-b border-gray-200">
577
+ <div class="flex justify-between mb-1">
578
+ <span class="font-medium">From: Flood Control Area A</span>
579
+ <span class="text-sm text-gray-500">2 weeks ago</span>
580
+ </div>
581
+ <div class="flex justify-between">
582
+ <span>To: Storage Facility</span>
583
+ <span class="text-sm">Operator: Rajesh Kumar</span>
584
+ </div>
585
+ </div>
586
+ </div>
587
+ </div>
588
+ <div class="p-4 border-t border-gray-200 flex justify-end">
589
+ <button class="bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700 mr-2">
590
+ <i class="fas fa-exchange-alt mr-2"></i>Record Movement
591
+ </button>
592
+ <button class="bg-gray-200 text-gray-700 px-4 py-2 rounded-lg hover:bg-gray-300">
593
+ Close
594
+ </button>
595
+ </div>
596
+ </div>
597
+ </div>
598
+
599
+ <script>
600
+ // Toggle sidebar on mobile
601
+ document.getElementById('sidebarToggle').addEventListener('click', function() {
602
+ document.querySelector('.sidebar').classList.toggle('sidebar-open');
603
+ });
604
+
605
+ // Close modal
606
+ document.getElementById('closeModal').addEventListener('click', function() {
607
+ document.getElementById('engineModal').classList.add('hidden');
608
+ });
609
+
610
+ // Show modal when clicking on engine markers (simulated)
611
+ document.querySelectorAll('.location-marker').forEach(marker => {
612
+ marker.addEventListener('click', function() {
613
+ document.getElementById('engineModal').classList.remove('hidden');
614
+ });
615
+ });
616
+
617
+ // Function to scroll to engine list with highlight effect
618
+ function scrollToEngineList() {
619
+ const engineListSection = document.getElementById('engineListSection');
620
+ engineListSection.scrollIntoView({ behavior: 'smooth' });
621
+
622
+ // Add highlight effect
623
+ engineListSection.classList.add('highlight-section');
624
+ setTimeout(() => {
625
+ engineListSection.classList.remove('highlight-section');
626
+ }, 2000);
627
+ }
628
+
629
+ // Scroll to engine list when clicking on total engines card
630
+ document.getElementById('totalEnginesCard').addEventListener('click', scrollToEngineList);
631
+
632
+ // Scroll to engine list when clicking on engines nav link
633
+ document.getElementById('enginesNavLink').addEventListener('click', function(e) {
634
+ e.preventDefault();
635
+ scrollToEngineList();
636
+
637
+ // Close sidebar on mobile after clicking
638
+ if (window.innerWidth <= 768) {
639
+ document.querySelector('.sidebar').classList.remove('sidebar-open');
640
+ }
641
+ });
642
+
643
+ // Simulate clicking on a marker to show the modal (for demo purposes)
644
+ setTimeout(() => {
645
+ document.querySelector('.location-marker').click();
646
+ }, 1000);
647
+ </script>
648
+ <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=mrd33p/diesel-engine-movement" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
649
+ </html>
prompts.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ when I click on total engines in dashboard space, it should open list of all engines.
2
+ when I click engines below dashboard, it should open the list of engines similar to the opening from the "Total Engines" in dashboard space, both should be linked to one page.