-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
490 lines (480 loc) · 21.5 KB
/
index.html
File metadata and controls
490 lines (480 loc) · 21.5 KB
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
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
<!DOCTYPE html>
<html lang="en" class="scroll-smooth">
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
/>
<meta name="description" content="" />
<meta name="theme-color" content="#ffffff" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="robots" content="" />
<title>RapidRescue</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css"
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<link
href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css"
rel="stylesheet"
/>
<link rel="stylesheet" href="styles.css" />
<!-- Link to the CSS file -->
</head>
<body class="antialiased text-gray-800 min-h-screen flex flex-col">
<a
href="#main-content"
class="sr-only focus:not-sr-only focus:absolute focus:top-0 focus:left-0 focus:z-50 focus:p-4 focus:bg-white focus:text-black"
>Skip to main content</a
>
<main id="main-content" class="flex-1 relative h-full">
<div id="RolloutPageContent">
<div id="root">
<nav class="bg-neutral-900 fixed w-full z-50" id="header">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex items-center justify-between h-16">
<div class="flex-shrink-0 flex items-center">
<span class="text-white text-2xl font-bold">RapidRescue</span>
</div>
<div class="hidden md:block">
<ul class="flex space-x-8">
<li>
<a href="#" class="text-white hover:text-gray-300"
>Home</a
>
</li>
<li>
<a href="#" class="text-white hover:text-gray-300"
>My Location</a
>
</li>
<li>
<a href="#" class="text-white hover:text-gray-300"
>Send Emergency Alert</a
>
</li>
<li>
<a href="#" class="text-white hover:text-gray-300"
>Contact Info</a
>
</li>
<li>
<a href="#" class="text-white hover:text-gray-300"
>Help/FAQ</a
>
</li>
<li>
<a href="#" class="text-white hover:text-gray-300"
>Settings</a
>
</li>
<li>
<a href="#" class="text-white hover:text-gray-300"
>Recent Alerts</a
>
</li>
</ul>
</div>
<div class="md:hidden">
<button
type="button"
id="mobile-menu-button"
aria-controls="mobile-menu"
aria-expanded="false"
class="text-gray-400 hover:text-white focus:outline-none focus:ring-2 focus:ring-inset focus:ring-white"
>
<span class="sr-only">Open main menu</span>
<svg
class="h-6 w-6"
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M4 6h16M4 12h16M4 18h16"
></path>
</svg>
</button>
</div>
</div>
</div>
<div class="md:hidden hidden" id="mobile-menu">
<ul class="px-2 pt-2 pb-3 space-y-1">
<li>
<a href="#" class="text-white hover:text-gray-300">Home</a>
</li>
<li>
<a href="#" class="text-white hover:text-gray-300"
>My Location</a
>
</li>
<li>
<a href="#" class="text-white hover:text-gray-300"
>Send Emergency Alert</a
>
</li>
<li>
<a href="#" class="text-white hover:text-gray-300"
>Contact Info</a
>
</li>
<li>
<a href="#" class="text-white hover:text-gray-300"
>Help/FAQ</a
>
</li>
<li>
<a href="#" class="text-white hover:text-gray-300"
>Settings</a
>
</li>
<li>
<a href="#" class="text-white hover:text-gray-300"
>Recent Alerts</a
>
</li>
</ul>
</div>
</nav>
<section
id="emergency-button"
class="min-h-screen bg-neutral-900 flex flex-col items-center justify-center px-4"
>
<button
id="sosButton"
class="group relative w-48 h-48 rounded-full bg-gradient-to-br from-red-600 to-red-700 shadow-2xl hover:from-red-500 hover:to-red-600 transition-all duration-300 transform hover:scale-105 focus:outline-none"
aria-label="Emergency SOS Button"
>
<div
class="absolute inset-0 rounded-full bg-red-500 opacity-50 group-hover:animate-ping"
></div>
<span class="relative text-4xl font-bold text-white">SOS</span>
<div
class="absolute -inset-2 bg-red-500 rounded-full opacity-20 animate-pulse"
></div>
</button>
<p class="text-white text-center mt-8 mb-12 text-lg">
Double click the SOS button to send an immediate ambulance call
</p>
<div class="flex flex-col sm:flex-row gap-6 mt-8">
<button
class="px-8 py-4 bg-neutral-700 text-white rounded-lg hover:bg-neutral-600 transition-colors duration-300 flex items-center justify-center gap-2"
>
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-6 w-6"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M19 11a7 7 0 01-7 7m0 0a7 7 0 01-7-7m7 7v4m0 0H8m4 0h4m-4-8a3 3 0 01-3-3V5a3 3 0 116 0v6a3 3 0 01-3 3z"
></path>
</svg>
Record Incident
</button>
<button
id="fillDetailsButton"
class="px-8 py-4 bg-neutral-700 text-white rounded-lg hover:bg-neutral-600 transition-colors duration-300 flex items-center justify-center gap-2"
>
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-6 w-6"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"
></path>
</svg>
Fill Details Manually
</button>
</div>
<!-- Modal for Filling Details Manually -->
<div id="manualDetailsModal" class="fixed inset-0 flex items-center justify-center bg-black bg-opacity-50 hidden">
<div class="bg-white p-6 rounded-lg shadow-lg max-w-md w-full">
<h2 class="text-2xl font-bold text-gray-800 mb-4">Fill Incident Details</h2>
<form id="incidentForm">
<label for="numPatients" class="block mb-2 text-gray-700">Number of People Injured:</label>
<input type="number" id="numPatients" class="border border-gray-300 rounded p-2 mb-4 w-full" required>
<label for="severity" class="block mb-2 text-gray-700">Severity of Situation:</label>
<select id="severity" class="border border-gray-300 rounded p-2 mb-4 w-full" required>
<option value="" disabled selected>Select Severity</option>
<option value="minor">Minor</option>
<option value="moderate">Moderate</option>
<option value="critical">Critical</option>
</select>
<label for="description" class="block mb-2 text-gray-700">Add Description:</label>
<textarea id="description" class="border border-gray-300 rounded p-2 mb-4 w-full" rows="4" placeholder="Provide additional details about the incident..."></textarea>
<button type="submit" class="w-full px-4 py-2 bg-blue-600 text-white rounded hover:bg-blue-500 transition duration-200">Submit</button>
</form>
<button id="closeModal" class="mt-4 w-full px-4 py-2 bg-gray-500 text-white rounded hover:bg-gray-400 transition duration-200">Close</button>
</div>
</div>
html
</section>
<section id="instructions" class="bg-neutral-800 py-16 px-4">
<div class="max-w-3xl mx-auto">
<h2 class="text-3xl font-bold text-white text-center mb-12">
How To Use
</h2>
<div class="space-y-8">
<div class="bg-neutral-700 p-6 rounded-lg">
<div class="flex items-start">
<div class="bg-red-500 rounded-full p-3 mr-4">
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-6 w-6 text-white"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M12 19l9 2-9-18-9 18 9-2zm0 0v-8"
></path>
</svg>
</div>
<div>
<h3 class="text-xl font-semibold text-white mb-2">
Double Click SOS
</h3>
<p class="text-gray-300">
In case of emergency, double click the red SOS button.
This will immediately initiate an ambulance call.
</p>
</div>
</div>
</div>
<div class="bg-neutral-700 p-6 rounded-lg">
<div class="flex items-start">
<div class="bg-red-500 rounded-full p-3 mr-4">
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-6 w-6 text-white"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M19 11a7 7 0 01-7 7m0 0a7 7 0 01-7-7m7 7v4m0 0H8m4 0h4m-4-8a3 3 0 01-3-3V5a3 3 0 116 0v6a3 3 0 01-3 3z"
></path>
</svg>
</div>
<div>
<h3 class="text-xl font-semibold text-white mb-2">
Record Incident
</h3>
<p class="text-gray-300">
Use voice recording to quickly describe the emergency
situation. This information will be sent to emergency
services.
</p>
</div>
</div>
</div>
<div class="bg-neutral-700 p-6 rounded-lg">
<div class="flex items-start">
<div class="bg-red-500 rounded-full p-3 mr-4">
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-6 w-6 text-white"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"
></path>
</svg>
</div>
<div>
<h3 class="text-xl font-semibold text-white mb-2">
Manual Details
</h3>
<p class="text-gray-300">
Alternatively, you can manually fill in the incident
details using our simple form interface.
</p>
</div>
</div>
</div>
</div>
</div>
</section>
<section id="emergency-contacts" class="bg-neutral-800 py-20 px-4">
<div class="max-w-6xl mx-auto">
<h2 class="text-4xl font-bold text-white text-center mb-16">
Emergency Contacts
</h2>
<div class="grid md:grid-cols-2 lg:grid-cols-3 gap-8">
<div
class="bg-neutral-700 rounded-xl p-6 hover:shadow-xl transition-shadow duration-300"
>
<div class="flex items-center mb-4">
<div class="bg-red-500 rounded-full p-3">
<svg
xmlns="http://www.w3.org/2000/svg"
class="h html -6 w-6 text-white"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"
></path>
</svg>
</div>
<h3 class="text-xl font-bold text-white ml-4">Ambulance</h3>
</div>
<a
href="tel:102"
class="text-2xl font-bold text-red-500 hover:text-red-400 transition-colors duration-300 flex items-center gap-2"
>102
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-5 w-5"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z"
></path>
</svg>
</a>
</div>
<div
class="bg-neutral-700 rounded-xl p-6 hover:shadow-xl transition-shadow duration-300"
>
<div class="flex items-center mb-4">
<div class="bg-red-500 rounded-full p-3">
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-6 w-6 text-white"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M3 6l3 1m0 0l-3 9a5.002 5.002 0 006.001 0M6 7l3 9M6 7l6-2m6 2l3-1m-3 1l-3 9a5.002 5.002 0 006.001 0M18 7l3 9m-3-9l-6-2m0-2v2m0 16V5m0 16H9m3 0h3"
></path>
</svg>
</div>
<h3 class="text-xl font-bold text-white ml-4">Police</h3>
</div>
<a
href="tel:100"
class="text-2xl font-bold text-red-500 hover:text-red-400 transition-colors duration-300 flex items-center gap-2"
>100
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-5 w-5"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h- ```html
1C9.716 21 3 14.284 3 6V5z"
></path>
</svg>
</a>
</div>
<div
class="bg-neutral-700 rounded-xl p-6 hover:shadow-xl transition-shadow duration-300"
>
<div class="flex items-center mb-4">
<div class="bg-red-500 rounded-full p-3">
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-6 w-6 text-white"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M17.657 18.657A8 8 0 016.343 7.343S7 9 9 10c0-2 .5-5 2.986-7C14 5 16.09 5.777 17.656 7.343A7.975 7.975 0 0120 13a7.975 7.975 0 01-2.343 5.657z"
></path>
</svg>
</div>
<h3 class="text-xl font-bold text-white ml-4">
Fire Brigade
</h3>
</div>
<a
href="tel:101"
class="text-2xl font-bold text-red-500 hover:text-red-400 transition-colors duration-300 flex items-center gap-2"
>101
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-5 w-5"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z"
></path>
</svg>
</a>
</div>
</div>
</div>
</section>
<!-- <section id="incidentReports" class="bg-gray-100 p-6 mt-8 rounded-lg">
<h2 class="text-2xl font-bold mb-4">Incident Reports</h2>
<ul id="reportList" class="space-y-2">
<!-- Reports will be populated here -->
<!-- </ul>
</section> -->
</div>
</div>
</main>
<script src="/socket.io/socket.io.js"></script>
<script src="scripts.js"></script>
<!-- Link to the JavaScript file -->
</body>
</html>