Junimaru commited on
Commit
c1d7e51
·
verified ·
1 Parent(s): 760e43c

Add 2 files

Browse files
Files changed (2) hide show
  1. README.md +6 -4
  2. index.html +1096 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Hyperpulse
3
- emoji: 🌖
4
  colorFrom: purple
5
- colorTo: gray
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: hyperpulse
3
+ emoji: 🐳
4
  colorFrom: purple
5
+ colorTo: pink
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,1096 @@
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="es">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>HyperPulse - Pulse Dashboard</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
+ @import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');
11
+
12
+ :root {
13
+ --pulse-primary: #6d28d9;
14
+ --pulse-secondary: #a78bfa;
15
+ --pulse-accent: #f43f5e;
16
+ --pulse-dark: #0f172a;
17
+ --pulse-light: #f8fafc;
18
+ }
19
+
20
+ body {
21
+ font-family: 'Space Grotesk', sans-serif;
22
+ background-color: var(--pulse-dark);
23
+ color: var(--pulse-light);
24
+ }
25
+
26
+ .pulse-gradient {
27
+ background: linear-gradient(135deg, var(--pulse-primary), var(--pulse-accent));
28
+ }
29
+
30
+ .pulse-card {
31
+ background: rgba(15, 23, 42, 0.7);
32
+ backdrop-filter: blur(10px);
33
+ border: 1px solid rgba(255, 255, 255, 0.1);
34
+ transition: all 0.3s ease;
35
+ }
36
+
37
+ .pulse-card:hover {
38
+ transform: translateY(-5px);
39
+ box-shadow: 0 10px 25px rgba(109, 40, 217, 0.3);
40
+ }
41
+
42
+ .heartbeat-indicator {
43
+ animation: pulse 2s infinite;
44
+ }
45
+
46
+ @keyframes pulse {
47
+ 0% { transform: scale(1); opacity: 1; }
48
+ 50% { transform: scale(1.1); opacity: 0.7; }
49
+ 100% { transform: scale(1); opacity: 1; }
50
+ }
51
+
52
+ .bio-wave {
53
+ position: relative;
54
+ overflow: hidden;
55
+ }
56
+
57
+ .bio-wave::before {
58
+ content: "";
59
+ position: absolute;
60
+ top: 0;
61
+ left: 0;
62
+ right: 0;
63
+ bottom: 0;
64
+ background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.2), transparent);
65
+ animation: wave 3s linear infinite;
66
+ }
67
+
68
+ @keyframes wave {
69
+ 0% { transform: translateX(-100%); }
70
+ 100% { transform: translateX(100%); }
71
+ }
72
+
73
+ .heart-rate-line {
74
+ position: relative;
75
+ height: 40px;
76
+ width: 100%;
77
+ overflow: hidden;
78
+ }
79
+
80
+ .heart-rate-line::before {
81
+ content: "";
82
+ position: absolute;
83
+ top: 50%;
84
+ left: 0;
85
+ right: 0;
86
+ height: 2px;
87
+ background: linear-gradient(90deg,
88
+ transparent,
89
+ transparent 10%,
90
+ var(--pulse-accent) 10%,
91
+ var(--pulse-accent) 15%,
92
+ transparent 15%,
93
+ transparent 25%,
94
+ var(--pulse-primary) 25%,
95
+ var(--pulse-primary) 30%,
96
+ transparent 30%,
97
+ transparent 40%,
98
+ var(--pulse-accent) 40%,
99
+ var(--pulse-accent) 45%,
100
+ transparent 45%,
101
+ transparent 55%,
102
+ var(--pulse-primary) 55%,
103
+ var(--pulse-primary) 60%,
104
+ transparent 60%,
105
+ transparent 70%,
106
+ var(--pulse-accent) 70%,
107
+ var(--pulse-accent) 75%,
108
+ transparent 75%,
109
+ transparent 85%,
110
+ var(--pulse-primary) 85%,
111
+ var(--pulse-primary) 90%,
112
+ transparent 90%,
113
+ transparent
114
+ );
115
+ animation: heartLineMove 4s linear infinite;
116
+ }
117
+
118
+ @keyframes heartLineMove {
119
+ 0% { transform: translateX(0); }
120
+ 100% { transform: translateX(-100%); }
121
+ }
122
+
123
+ .ecg-line {
124
+ position: relative;
125
+ height: 100px;
126
+ width: 100%;
127
+ overflow: hidden;
128
+ background-color: rgba(0, 0, 0, 0.2);
129
+ }
130
+
131
+ .ecg-line::before {
132
+ content: "";
133
+ position: absolute;
134
+ top: 50%;
135
+ left: 0;
136
+ width: 100%;
137
+ height: 2px;
138
+ background: linear-gradient(90deg,
139
+ transparent,
140
+ transparent 5%,
141
+ var(--pulse-accent) 5%,
142
+ var(--pulse-accent) 6%,
143
+ transparent 6%,
144
+ transparent 10%,
145
+ var(--pulse-accent) 10%,
146
+ var(--pulse-accent) 11%,
147
+ transparent 11%,
148
+ transparent 15%,
149
+ var(--pulse-accent) 15%,
150
+ var(--pulse-accent) 16%,
151
+ transparent 16%,
152
+ transparent 20%,
153
+ var(--pulse-primary) 20%,
154
+ var(--pulse-primary) 30%,
155
+ var(--pulse-primary) 30%,
156
+ var(--pulse-primary) 31%,
157
+ transparent 31%,
158
+ transparent 35%,
159
+ var(--pulse-primary) 35%,
160
+ var(--pulse-primary) 36%,
161
+ transparent 36%,
162
+ transparent 40%,
163
+ var(--pulse-primary) 40%,
164
+ var(--pulse-primary) 41%,
165
+ transparent 41%,
166
+ transparent 45%,
167
+ var(--pulse-accent) 45%,
168
+ var(--pulse-accent) 50%,
169
+ transparent 50%,
170
+ transparent 55%,
171
+ var(--pulse-accent) 55%,
172
+ var(--pulse-accent) 56%,
173
+ transparent 56%,
174
+ transparent 60%,
175
+ var(--pulse-accent) 60%,
176
+ var(--pulse-accent) 61%,
177
+ transparent 61%,
178
+ transparent 65%,
179
+ var(--pulse-primary) 65%,
180
+ var(--pulse-primary) 70%,
181
+ var(--pulse-primary) 70%,
182
+ var(--pulse-primary) 71%,
183
+ transparent 71%,
184
+ transparent 75%,
185
+ var(--pulse-primary) 75%,
186
+ var(--pulse-primary) 76%,
187
+ transparent 76%,
188
+ transparent 80%,
189
+ var(--pulse-primary) 80%,
190
+ var(--pulse-primary) 81%,
191
+ transparent 81%,
192
+ transparent 85%,
193
+ var(--pulse-accent) 85%,
194
+ var(--pulse-accent) 86%,
195
+ transparent 86%,
196
+ transparent 90%,
197
+ var(--pulse-accent) 90%,
198
+ var(--pulse-accent) 91%,
199
+ transparent 91%,
200
+ transparent 95%,
201
+ var(--pulse-accent) 95%,
202
+ var(--pulse-accent) 96%,
203
+ transparent 96%,
204
+ transparent
205
+ );
206
+ animation: heartLineMove 8s linear infinite;
207
+ }
208
+
209
+ .bio-ring {
210
+ position: relative;
211
+ width: 80px;
212
+ height: 80px;
213
+ }
214
+
215
+ .bio-ring-circle {
216
+ position: absolute;
217
+ width: 100%;
218
+ height: 100%;
219
+ border-radius: 50%;
220
+ border: 8px solid;
221
+ border-color: var(--pulse-primary) transparent transparent transparent;
222
+ animation: rotate 2s linear infinite;
223
+ }
224
+
225
+ .bio-ring-circle:nth-child(2) {
226
+ border-color: transparent var(--pulse-accent) transparent transparent;
227
+ animation-delay: -0.5s;
228
+ }
229
+
230
+ .bio-ring-circle:nth-child(3) {
231
+ border-color: transparent transparent var(--pulse-secondary) transparent;
232
+ animation-delay: -1s;
233
+ }
234
+
235
+ @keyframes rotate {
236
+ 0% { transform: rotate(0deg); }
237
+ 100% { transform: rotate(360deg); }
238
+ }
239
+
240
+ .graph-container {
241
+ position: relative;
242
+ height: 120px;
243
+ width: 100%;
244
+ }
245
+
246
+ .graph-line {
247
+ position: absolute;
248
+ bottom: 0;
249
+ left: 0;
250
+ width: 100%;
251
+ height: 100%;
252
+ fill: none;
253
+ stroke: var(--pulse-primary);
254
+ stroke-width: 2;
255
+ stroke-linecap: round;
256
+ stroke-linejoin: round;
257
+ }
258
+
259
+ .graph-area {
260
+ position: absolute;
261
+ bottom: 0;
262
+ left: 0;
263
+ width: 100%;
264
+ height: 100%;
265
+ fill: url(#graphGradient);
266
+ }
267
+
268
+ .tooltip {
269
+ position: relative;
270
+ }
271
+
272
+ .tooltip:hover .tooltip-text {
273
+ visibility: visible;
274
+ opacity: 1;
275
+ }
276
+
277
+ .tooltip-text {
278
+ visibility: hidden;
279
+ width: 120px;
280
+ background-color: var(--pulse-dark);
281
+ color: var(--pulse-light);
282
+ text-align: center;
283
+ border-radius: 6px;
284
+ padding: 5px;
285
+ position: absolute;
286
+ z-index: 1;
287
+ bottom: 125%;
288
+ left: 50%;
289
+ margin-left: -60px;
290
+ opacity: 0;
291
+ transition: opacity 0.3s;
292
+ font-size: 12px;
293
+ border: 1px solid var(--pulse-primary);
294
+ }
295
+
296
+ .tooltip-text::after {
297
+ content: "";
298
+ position: absolute;
299
+ top: 100%;
300
+ left: 50%;
301
+ margin-left: -5px;
302
+ border-width: 5px;
303
+ border-style: solid;
304
+ border-color: var(--pulse-dark) transparent transparent transparent;
305
+ }
306
+
307
+ .neon-text {
308
+ text-shadow: 0 0 5px var(--pulse-secondary),
309
+ 0 0 10px var(--pulse-secondary),
310
+ 0 0 20px var(--pulse-secondary);
311
+ }
312
+
313
+ .glow-box {
314
+ box-shadow: 0 0 15px rgba(167, 139, 250, 0.5);
315
+ }
316
+
317
+ .pulse-tab {
318
+ position: relative;
319
+ overflow: hidden;
320
+ }
321
+
322
+ .pulse-tab::after {
323
+ content: "";
324
+ position: absolute;
325
+ bottom: 0;
326
+ left: 0;
327
+ width: 0;
328
+ height: 2px;
329
+ background: var(--pulse-primary);
330
+ transition: width 0.3s ease;
331
+ }
332
+
333
+ .pulse-tab.active::after {
334
+ width: 100%;
335
+ }
336
+
337
+ .pulse-tab.active {
338
+ color: var(--pulse-primary);
339
+ }
340
+
341
+ .lazy-load {
342
+ opacity: 0;
343
+ transform: translateY(20px);
344
+ transition: opacity 0.6s ease, transform 0.6s ease;
345
+ }
346
+
347
+ .lazy-load.loaded {
348
+ opacity: 1;
349
+ transform: translateY(0);
350
+ }
351
+
352
+ /* ECG Animation */
353
+ .ecg-container {
354
+ position: relative;
355
+ width: 100%;
356
+ height: 150px;
357
+ overflow: hidden;
358
+ background-color: rgba(0, 0, 0, 0.2);
359
+ }
360
+
361
+ .ecg-path {
362
+ position: absolute;
363
+ top: 50%;
364
+ left: 0;
365
+ width: 100%;
366
+ height: 2px;
367
+ background-color: var(--pulse-accent);
368
+ }
369
+
370
+ .ecg-peak {
371
+ position: absolute;
372
+ width: 4px;
373
+ height: 30px;
374
+ background-color: var(--pulse-accent);
375
+ transform: translateY(-15px);
376
+ animation: ecgPeak 1.5s infinite;
377
+ }
378
+
379
+ @keyframes ecgPeak {
380
+ 0% { left: 10%; opacity: 0; }
381
+ 10% { opacity: 1; height: 30px; }
382
+ 15% { height: 50px; }
383
+ 20% { height: 30px; }
384
+ 25% { height: 40px; }
385
+ 30% { height: 30px; }
386
+ 100% { left: 90%; opacity: 1; height: 30px; }
387
+ }
388
+
389
+ /* Breathing animation */
390
+ .breathing-circle {
391
+ width: 80px;
392
+ height: 80px;
393
+ border-radius: 50%;
394
+ background: rgba(167, 139, 250, 0.3);
395
+ animation: breathe 4s infinite ease-in-out;
396
+ }
397
+
398
+ @keyframes breathe {
399
+ 0%, 100% { transform: scale(0.9); }
400
+ 50% { transform: scale(1.1); }
401
+ }
402
+
403
+ /* Stress level animation */
404
+ .stress-indicator {
405
+ position: relative;
406
+ width: 80px;
407
+ height: 80px;
408
+ }
409
+
410
+ .stress-wave {
411
+ position: absolute;
412
+ width: 100%;
413
+ height: 100%;
414
+ border-radius: 50%;
415
+ border: 3px solid var(--pulse-accent);
416
+ opacity: 0;
417
+ animation: stressPulse 3s infinite;
418
+ }
419
+
420
+ .stress-wave:nth-child(2) {
421
+ animation-delay: 1s;
422
+ }
423
+
424
+ .stress-wave:nth-child(3) {
425
+ animation-delay: 2s;
426
+ }
427
+
428
+ @keyframes stressPulse {
429
+ 0% { transform: scale(0.5); opacity: 0.8; }
430
+ 100% { transform: scale(1.5); opacity: 0; }
431
+ }
432
+ </style>
433
+ </head>
434
+ <body class="min-h-screen">
435
+ <!-- Bio-Sensing Header -->
436
+ <header class="fixed top-0 left-0 right-0 z-50 bio-wave">
437
+ <div class="container mx-auto px-4 py-3 flex justify-between items-center">
438
+ <div class="flex items-center space-x-2">
439
+ <div class="heartbeat-indicator w-3 h-3 rounded-full bg-red-500"></div>
440
+ <span class="text-sm font-medium">LIVE BIOFEEDBACK</span>
441
+ <div class="flex items-center bg-purple-900/50 rounded-full px-2 py-1 ml-2">
442
+ <i class="fas fa-lock text-green-400 mr-1 text-xs"></i>
443
+ <span class="text-xs">ENCRYPTED</span>
444
+ </div>
445
+ </div>
446
+
447
+ <div class="flex items-center space-x-4">
448
+ <button id="camera-btn" class="p-2 rounded-full bg-purple-900/50 hover:bg-purple-800/50 transition tooltip">
449
+ <i class="fas fa-camera text-purple-300"></i>
450
+ <span class="tooltip-text">Facial Analysis</span>
451
+ </button>
452
+ <button id="bluetooth-btn" class="p-2 rounded-full bg-purple-900/50 hover:bg-purple-800/50 transition tooltip">
453
+ <i class="fas fa-bluetooth-b text-blue-300"></i>
454
+ <span class="tooltip-text">Devices</span>
455
+ </button>
456
+ <button id="settings-btn" class="p-2 rounded-full bg-purple-900/50 hover:bg-purple-800/50 transition tooltip">
457
+ <i class="fas fa-cog text-white/70"></i>
458
+ <span class="tooltip-text">Settings</span>
459
+ </button>
460
+ </div>
461
+ </div>
462
+
463
+ <div class="h-1 w-full bg-gradient-to-r from-purple-500 via-pink-500 to-red-500"></div>
464
+ </header>
465
+
466
+ <!-- Main Content -->
467
+ <main class="pt-20 pb-24">
468
+ <!-- Pulse Dashboard Header -->
469
+ <section class="container mx-auto px-4 mb-6">
470
+ <div class="flex items-center justify-between mb-4">
471
+ <h1 class="text-2xl font-bold flex items-center">
472
+ <i class="fas fa-heartbeat text-purple-400 mr-3"></i>
473
+ Pulse Dashboard
474
+ </h1>
475
+ <div class="flex items-center space-x-2">
476
+ <span class="text-xs bg-purple-900/50 px-2 py-1 rounded-full">REALTIME</span>
477
+ <button id="pause-btn" class="text-xs bg-white/10 px-3 py-1 rounded-full hover:bg-white/20 transition">
478
+ <i class="fas fa-pause mr-1"></i> Pause
479
+ </button>
480
+ </div>
481
+ </div>
482
+
483
+ <div class="pulse-card rounded-2xl p-6">
484
+ <div class="flex items-center justify-between mb-6">
485
+ <div>
486
+ <h2 class="text-xl font-bold">Your Vital Signs</h2>
487
+ <p class="text-sm opacity-70">Updated in real-time based on your biometrics</p>
488
+ </div>
489
+ <div class="flex items-center space-x-2">
490
+ <div class="w-2 h-2 rounded-full bg-green-400 animate-pulse"></div>
491
+ <span class="text-xs">ACTIVE</span>
492
+ </div>
493
+ </div>
494
+
495
+ <!-- ECG Visualization -->
496
+ <div class="ecg-container mb-6 rounded-lg overflow-hidden">
497
+ <div class="ecg-path"></div>
498
+ <div class="ecg-peak"></div>
499
+ </div>
500
+
501
+ <!-- Primary Metrics -->
502
+ <div class="grid grid-cols-2 md:grid-cols-4 gap-4 mb-6">
503
+ <!-- Heart Rate -->
504
+ <div class="pulse-card rounded-xl p-4 flex items-center">
505
+ <div class="mr-4">
506
+ <div class="bio-ring">
507
+ <div class="bio-ring-circle"></div>
508
+ <div class="bio-ring-circle"></div>
509
+ <div class="bio-ring-circle"></div>
510
+ </div>
511
+ </div>
512
+ <div>
513
+ <div class="text-xs opacity-70 mb-1">Heart Rate</div>
514
+ <div class="text-2xl font-bold heartbeat-value">72</div>
515
+ <div class="text-xs">BPM</div>
516
+ </div>
517
+ </div>
518
+
519
+ <!-- Blood Oxygen -->
520
+ <div class="pulse-card rounded-xl p-4 flex items-center">
521
+ <div class="mr-4">
522
+ <div class="w-12 h-12 rounded-full bg-blue-500/20 flex items-center justify-center">
523
+ <i class="fas fa-lungs text-blue-300 text-xl"></i>
524
+ </div>
525
+ </div>
526
+ <div>
527
+ <div class="text-xs opacity-70 mb-1">SpO₂</div>
528
+ <div class="text-2xl font-bold spo2-value">98</div>
529
+ <div class="text-xs">%</div>
530
+ </div>
531
+ </div>
532
+
533
+ <!-- Stress Level -->
534
+ <div class="pulse-card rounded-xl p-4 flex items-center">
535
+ <div class="mr-4">
536
+ <div class="stress-indicator">
537
+ <div class="stress-wave"></div>
538
+ <div class="stress-wave"></div>
539
+ <div class="stress-wave"></div>
540
+ </div>
541
+ </div>
542
+ <div>
543
+ <div class="text-xs opacity-70 mb-1">Stress</div>
544
+ <div class="text-2xl font-bold stress-value">24</div>
545
+ <div class="text-xs">Low</div>
546
+ </div>
547
+ </div>
548
+
549
+ <!-- Respiratory Rate -->
550
+ <div class="pulse-card rounded-xl p-4 flex items-center">
551
+ <div class="mr-4">
552
+ <div class="breathing-circle flex items-center justify-center">
553
+ <i class="fas fa-wind text-purple-300 text-xl"></i>
554
+ </div>
555
+ </div>
556
+ <div>
557
+ <div class="text-xs opacity-70 mb-1">Breathing</div>
558
+ <div class="text-2xl font-bold resp-rate-value">14</div>
559
+ <div class="text-xs">breaths/min</div>
560
+ </div>
561
+ </div>
562
+ </div>
563
+
564
+ <!-- Secondary Metrics -->
565
+ <div class="grid grid-cols-2 md:grid-cols-3 gap-4 mb-6">
566
+ <!-- HR Variability -->
567
+ <div class="pulse-card rounded-xl p-4">
568
+ <div class="text-xs opacity-70 mb-1">HR Variability</div>
569
+ <div class="flex items-end justify-between">
570
+ <div class="text-xl font-bold hr-variability-value">68</div>
571
+ <div class="text-xs">ms</div>
572
+ </div>
573
+ <div class="w-full bg-gray-700 rounded-full h-1 mt-2">
574
+ <div class="bg-green-500 h-1 rounded-full" style="width: 65%"></div>
575
+ </div>
576
+ </div>
577
+
578
+ <!-- Blood Pressure -->
579
+ <div class="pulse-card rounded-xl p-4">
580
+ <div class="text-xs opacity-70 mb-1">Blood Pressure</div>
581
+ <div class="flex items-end justify-between">
582
+ <div class="text-xl font-bold bp-value">118/76</div>
583
+ <div class="text-xs">mmHg</div>
584
+ </div>
585
+ <div class="w-full bg-gray-700 rounded-full h-1 mt-2">
586
+ <div class="bg-blue-500 h-1 rounded-full" style="width: 80%"></div>
587
+ </div>
588
+ </div>
589
+
590
+ <!-- Body Temp -->
591
+ <div class="pulse-card rounded-xl p-4">
592
+ <div class="text-xs opacity-70 mb-1">Body Temp</div>
593
+ <div class="flex items-end justify-between">
594
+ <div class="text-xl font-bold temp-value">36.7</div>
595
+ <div class="text-xs">°C</div>
596
+ </div>
597
+ <div class="w-full bg-gray-700 rounded-full h-1 mt-2">
598
+ <div class="bg-yellow-500 h-1 rounded-full" style="width: 50%"></div>
599
+ </div>
600
+ </div>
601
+ </div>
602
+
603
+ <!-- Time Period Selector -->
604
+ <div class="flex items-center justify-between mb-4">
605
+ <h3 class="font-bold">Historical Data</h3>
606
+ <div class="flex space-x-1 bg-white/10 rounded-full p-1">
607
+ <button class="time-period-btn px-3 py-1 rounded-full text-xs bg-purple-900" data-period="day">Day</button>
608
+ <button class="time-period-btn px-3 py-1 rounded-full text-xs hover:bg-white/10" data-period="week">Week</button>
609
+ <button class="time-period-btn px-3 py-1 rounded-full text-xs hover:bg-white/10" data-period="month">Month</button>
610
+ </div>
611
+ </div>
612
+
613
+ <!-- Historical Graph -->
614
+ <div class="pulse-card rounded-xl p-4 mb-6">
615
+ <div class="graph-container">
616
+ <svg viewBox="0 0 300 100" preserveAspectRatio="none">
617
+ <defs>
618
+ <linearGradient id="graphGradient" x1="0" y1="0" x2="0" y2="1">
619
+ <stop offset="0%" stop-color="rgba(109, 40, 217, 0.5)" />
620
+ <stop offset="100%" stop-color="rgba(109, 40, 217, 0)" />
621
+ </linearGradient>
622
+ </defs>
623
+ <path class="graph-area" d="M0,100 L50,80 L100,60 L150,70 L200,50 L250,30 L300,40 L300,100 Z"></path>
624
+ <path class="graph-line" d="M0,100 L50,80 L100,60 L150,70 L200,50 L250,30 L300,40"></path>
625
+ </svg>
626
+ </div>
627
+ <div class="flex justify-between text-xs opacity-70 mt-2">
628
+ <span>12:00 AM</span>
629
+ <span>6:00 AM</span>
630
+ <span>12:00 PM</span>
631
+ <span>6:00 PM</span>
632
+ <span>Now</span>
633
+ </div>
634
+ </div>
635
+
636
+ <!-- Insights & Recommendations -->
637
+ <div class="pulse-card rounded-2xl p-6">
638
+ <h3 class="font-bold mb-3">Health Insights</h3>
639
+ <p class="text-sm opacity-80 mb-4">Based on your current biometrics and trends, here's what we recommend:</p>
640
+
641
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-4">
642
+ <!-- Activity Recommendation -->
643
+ <div class="pulse-card rounded-xl p-4 flex items-start">
644
+ <div class="w-10 h-10 rounded-full bg-blue-500/20 flex items-center justify-center mr-3">
645
+ <i class="fas fa-walking text-blue-300"></i>
646
+ </div>
647
+ <div>
648
+ <h4 class="font-medium mb-1">Activity</h4>
649
+ <p class="text-xs opacity-70">Light walking for 15-20 minutes</p>
650
+ </div>
651
+ </div>
652
+
653
+ <!-- Nutrition Recommendation -->
654
+ <div class="pulse-card rounded-xl p-4 flex items-start">
655
+ <div class="w-10 h-10 rounded-full bg-green-500/20 flex items-center justify-center mr-3">
656
+ <i class="fas fa-apple-alt text-green-300"></i>
657
+ </div>
658
+ <div>
659
+ <h4 class="font-medium mb-1">Nutrition</h4>
660
+ <p class="text-xs opacity-70">Hydrate with electrolyte-rich fluids</p>
661
+ </div>
662
+ </div>
663
+
664
+ <!-- Recovery Recommendation -->
665
+ <div class="pulse-card rounded-xl p-4 flex items-start">
666
+ <div class="w-10 h-10 rounded-full bg-purple-500/20 flex items-center justify-center mr-3">
667
+ <i class="fas fa-moon text-purple-300"></i>
668
+ </div>
669
+ <div>
670
+ <div class="font-medium mb-1">Recovery</div>
671
+ <p class="text-xs opacity-70">Consider a 10-minute meditation session</p>
672
+ </div>
673
+ </div>
674
+ </div>
675
+ </div>
676
+ </div>
677
+ </section>
678
+
679
+ <!-- Bio-Connections -->
680
+ <section class="container mx-auto px-4 mb-6">
681
+ <div class="flex items-center justify-between mb-4">
682
+ <h3 class="text-lg font-bold">Connected Bio-Devices</h3>
683
+ <button id="add-device" class="text-xs px-3 py-1 rounded-full bg-white/10 hover:bg-white/20 transition">
684
+ <i class="fas fa-plus mr-1"></i> Add Device
685
+ </button>
686
+ </div>
687
+
688
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-4">
689
+ <!-- Apple Watch -->
690
+ <div class="pulse-card rounded-xl p-4">
691
+ <div class="flex items-center justify-between mb-3">
692
+ <div class="flex items-center">
693
+ <div class="w-10 h-10 rounded-full bg-gray-800 flex items-center justify-center mr-3">
694
+ <i class="fab fa-apple text-white"></i>
695
+ </div>
696
+ <div>
697
+ <h4 class="font-medium">Apple Watch</h4>
698
+ <p class="text-xs opacity-70">Series 6</p>
699
+ </div>
700
+ </div>
701
+ <div class="w-2 h-2 rounded-full bg-green-400 animate-pulse"></div>
702
+ </div>
703
+ <div class="text-xs opacity-70 mb-2">Connected: 2h 15m ago</div>
704
+ <div class="flex justify-between text-xs mb-3">
705
+ <span>Battery: 78%</span>
706
+ <span>Signal: Strong</span>
707
+ </div>
708
+ <button class="w-full py-2 rounded-full bg-white/10 hover:bg-white/20 transition text-xs">
709
+ <i class="fas fa-cog mr-1"></i> Device Settings
710
+ </button>
711
+ </div>
712
+
713
+ <!-- Fitbit -->
714
+ <div class="pulse-card rounded-xl p-4">
715
+ <div class="flex items-center justify-between mb-3">
716
+ <div class="flex items-center">
717
+ <div class="w-10 h-10 rounded-full bg-blue-500/20 flex items-center justify-center mr-3">
718
+ <i class="fas fa-heartbeat text-blue-300"></i>
719
+ </div>
720
+ <div>
721
+ <h4 class="font-medium">Fitbit Sense</h4>
722
+ <p class="text-xs opacity-70">v2.1</p>
723
+ </div>
724
+ </div>
725
+ <div class="w-2 h-2 rounded-full bg-green-400 animate-pulse"></div>
726
+ </div>
727
+ <div class="text-xs opacity-70 mb-2">Connected: 45m ago</div>
728
+ <div class="flex justify-between text-xs mb-3">
729
+ <span>Battery: 92%</span>
730
+ <span>Signal: Medium</span>
731
+ </div>
732
+ <button class="w-full py-2 rounded-full bg-white/10 hover:bg-white/20 transition text-xs">
733
+ <i class="fas fa-cog mr-1"></i> Device Settings
734
+ </button>
735
+ </div>
736
+
737
+ <!-- Oura Ring -->
738
+ <div class="pulse-card rounded-xl p-4">
739
+ <div class="flex items-center justify-between mb-3">
740
+ <div class="flex items-center">
741
+ <div class="w-10 h-10 rounded-full bg-purple-500/20 flex items-center justify-center mr-3">
742
+ <i class="fas fa-ring text-purple-300"></i>
743
+ </div>
744
+ <div>
745
+ <h4 class="font-medium">Oura Ring</h4>
746
+ <p class="text-xs opacity-70">Gen 3</p>
747
+ </div>
748
+ </div>
749
+ <div class="w-2 h-2 rounded-full bg-yellow-400 animate-pulse"></div>
750
+ </div>
751
+ <div class="text-xs opacity-70 mb-2">Connected: 5h ago</div>
752
+ <div class="flex justify-between text-xs mb-3">
753
+ <span>Battery: 42%</span>
754
+ <span>Signal: Weak</span>
755
+ </div>
756
+ <button class="w-full py-2 rounded-full bg-white/10 hover:bg-white/20 transition text-xs">
757
+ <i class="fas fa-bolt mr-1"></i> Charge Device
758
+ </button>
759
+ </div>
760
+ </div>
761
+ </section>
762
+ </main>
763
+
764
+ <!-- Bio-Navigation -->
765
+ <nav class="fixed bottom-0 left-0 right-0 z-50 bg-gray-900/80 backdrop-filter backdrop-blur-lg border-t border-white/10">
766
+ <div class="container mx-auto px-4">
767
+ <div class="flex justify-around items-center py-3">
768
+ <button class="nav-btn flex flex-col items-center text-white/60 hover:text-white transition" data-page="home">
769
+ <i class="fas fa-home text-lg"></i>
770
+ <span class="text-xs mt-1">Home</span>
771
+ </button>
772
+
773
+ <button class="nav-btn flex flex-col items-center text-purple-400" data-page="pulse">
774
+ <i class="fas fa-heartbeat text-lg"></i>
775
+ <span class="text-xs mt-1">Pulse</span>
776
+ </button>
777
+
778
+ <button class="nav-btn flex flex-col items-center text-white/60 hover:text-white transition" data-page="explore">
779
+ <i class="fas fa-compass text-lg"></i>
780
+ <span class="text-xs mt-1">Explore</span>
781
+ </button>
782
+
783
+ <button class="nav-btn flex flex-col items-center text-white/60 hover:text-white transition" data-page="profile">
784
+ <i class="fas fa-user-astronaut text-lg"></i>
785
+ <span class="text-xs mt-1">Profile</span>
786
+ </button>
787
+
788
+ <button class="quick-action-btn w-12 h-12 -mt-8 rounded-full pulse-gradient flex items-center justify-center text-white shadow-lg glow-box">
789
+ <i class="fas fa-bolt text-xl"></i>
790
+ </button>
791
+ </div>
792
+ </div>
793
+ </nav>
794
+
795
+ <!-- Bluetooth Modal -->
796
+ <div id="bluetooth-modal" class="fixed inset-0 z-50 flex items-center justify-center bg-black/80 hidden">
797
+ <div class="pulse-card rounded-2xl w-full max-w-md mx-4">
798
+ <div class="p-6">
799
+ <div class="flex justify-between items-center mb-4">
800
+ <h3 class="text-lg font-bold">Connect Device</h3>
801
+ <button id="close-bluetooth" class="p-2 rounded-full bg-white/10 hover:bg-white/20 transition">
802
+ <i class="fas fa-times"></i>
803
+ </button>
804
+ </div>
805
+
806
+ <div class="space-y-3 mb-4">
807
+ <div class="pulse-card rounded-xl p-4 flex items-center justify-between">
808
+ <div class="flex items-center space-x-3">
809
+ <div class="w-10 h-10 rounded-full bg-blue-500 flex items-center justify-center">
810
+ <i class="fas fa-heartbeat text-white"></i>
811
+ </div>
812
+ <div>
813
+ <h4 class="font-medium">Apple Watch</h4>
814
+ <p class="text-xs opacity-70">Last connected: 2h ago</p>
815
+ </div>
816
+ </div>
817
+ <button class="connect-device px-3 py-1 rounded-full bg-blue-900 hover:bg-blue-800 transition text-xs" data-device="apple-watch">
818
+ Connect
819
+ </button>
820
+ </div>
821
+
822
+ <div class="pulse-card rounded-xl p-4 flex items-center justify-between">
823
+ <div class="flex items-center space-x-3">
824
+ <div class="w-10 h-10 rounded-full bg-green-500 flex items-center justify-center">
825
+ <i class="fas fa-heartbeat text-white"></i>
826
+ </div>
827
+ <div>
828
+ <h4 class="font-medium">Fitbit Sense</h4>
829
+ <p class="text-xs opacity-70">Available</p>
830
+ </div>
831
+ </div>
832
+ <button class="connect-device px-3 py-1 rounded-full bg-green-900 hover:bg-green-800 transition text-xs" data-device="fitbit">
833
+ Connect
834
+ </button>
835
+ </div>
836
+
837
+ <div class="pulse-card rounded-xl p-4 flex items-center justify-between">
838
+ <div class="flex items-center space-x-3">
839
+ <div class="w-10 h-10 rounded-full bg-purple-500 flex items-center justify-center">
840
+ <i class="fas fa-heartbeat text-white"></i>
841
+ </div>
842
+ <div>
843
+ <h4 class="font-medium">Garmin Venu</h4>
844
+ <p class="text-xs opacity-70">Not in range</p>
845
+ </div>
846
+ </div>
847
+ <button class="px-3 py-1 rounded-full bg-gray-700 text-xs cursor-not-allowed" disabled>
848
+ Connect
849
+ </button>
850
+ </div>
851
+ </div>
852
+
853
+ <button id="scan-devices" class="w-full py-3 rounded-xl bg-purple-900 hover:bg-purple-800 transition font-medium">
854
+ <i class="fas fa-search mr-2"></i> Scan for Devices
855
+ </button>
856
+ </div>
857
+ </div>
858
+ </div>
859
+
860
+ <script>
861
+ // DOM Elements
862
+ const bluetoothBtn = document.getElementById('bluetooth-btn');
863
+ const bluetoothModal = document.getElementById('bluetooth-modal');
864
+ const closeBluetooth = document.getElementById('close-bluetooth');
865
+ const scanDevices = document.getElementById('scan-devices');
866
+ const connectDevices = document.querySelectorAll('.connect-device');
867
+ const addDeviceBtn = document.getElementById('add-device');
868
+ const pauseBtn = document.getElementById('pause-btn');
869
+ const timePeriodBtns = document.querySelectorAll('.time-period-btn');
870
+ const quickActionBtn = document.querySelector('.quick-action-btn');
871
+ const navBtns = document.querySelectorAll('.nav-btn');
872
+
873
+ // Biometric data elements
874
+ const heartbeatValue = document.querySelector('.heartbeat-value');
875
+ const spo2Value = document.querySelector('.spo2-value');
876
+ const stressValue = document.querySelector('.stress-value');
877
+ const respRateValue = document.querySelector('.resp-rate-value');
878
+ const hrVariabilityValue = document.querySelector('.hr-variability-value');
879
+ const bpValue = document.querySelector('.bp-value');
880
+ const tempValue = document.querySelector('.temp-value');
881
+
882
+ // Modal functions
883
+ function openModal(modal) {
884
+ modal.classList.remove('hidden');
885
+ document.body.style.overflow = 'hidden';
886
+ }
887
+
888
+ function closeModal(modal) {
889
+ modal.classList.add('hidden');
890
+ document.body.style.overflow = '';
891
+ }
892
+
893
+ // Event Listeners
894
+ bluetoothBtn.addEventListener('click', () => openModal(bluetoothModal));
895
+ closeBluetooth.addEventListener('click', () => closeModal(bluetoothModal));
896
+ addDeviceBtn.addEventListener('click', () => openModal(bluetoothModal));
897
+
898
+ // Close modal when clicking outside
899
+ window.addEventListener('click', (e) => {
900
+ if (e.target === bluetoothModal) closeModal(bluetoothModal);
901
+ });
902
+
903
+ // Connect devices
904
+ connectDevices.forEach(btn => {
905
+ btn.addEventListener('click', () => {
906
+ const device = btn.dataset.device;
907
+ btn.textContent = 'Connecting...';
908
+ btn.classList.remove('bg-blue-900', 'bg-green-900', 'hover:bg-blue-800', 'hover:bg-green-800');
909
+ btn.classList.add('bg-gray-700', 'cursor-not-allowed');
910
+
911
+ // Simulate connection delay
912
+ setTimeout(() => {
913
+ btn.textContent = 'Connected';
914
+ showNotification(`${device.replace('-', ' ').toUpperCase()} connected successfully!`);
915
+
916
+ // Update status in bluetooth modal
917
+ const deviceStatus = btn.closest('.pulse-card').querySelector('.text-xs.opacity-70');
918
+ deviceStatus.textContent = 'Connected';
919
+ deviceStatus.classList.remove('opacity-70');
920
+ deviceStatus.classList.add('text-green-400');
921
+ }, 1500);
922
+ });
923
+ });
924
+
925
+ // Scan for devices
926
+ scanDevices.addEventListener('click', () => {
927
+ scanDevices.innerHTML = '<i class="fas fa-circle-notch fa-spin mr-2"></i> Scanning...';
928
+
929
+ // Simulate scanning delay
930
+ setTimeout(() => {
931
+ scanDevices.innerHTML = '<i class="fas fa-search mr-2"></i> Scan for Devices';
932
+ showNotification('Found 2 new devices nearby');
933
+ }, 2000);
934
+ });
935
+
936
+ // Pause/Resume real-time data
937
+ let isPaused = false;
938
+ pauseBtn.addEventListener('click', () => {
939
+ isPaused = !isPaused;
940
+
941
+ if (isPaused) {
942
+ pauseBtn.innerHTML = '<i class="fas fa-play mr-1"></i> Resume';
943
+ document.querySelector('.heartbeat-indicator').style.animationPlayState = 'paused';
944
+ document.querySelectorAll('.stress-wave').forEach(wave => {
945
+ wave.style.animationPlayState = 'paused';
946
+ });
947
+ document.querySelector('.breathing-circle').style.animationPlayState = 'paused';
948
+ } else {
949
+ pauseBtn.innerHTML = '<i class="fas fa-pause mr-1"></i> Pause';
950
+ document.querySelector('.heartbeat-indicator').style.animationPlayState = 'running';
951
+ document.querySelectorAll('.stress-wave').forEach(wave => {
952
+ wave.style.animationPlayState = 'running';
953
+ });
954
+ document.querySelector('.breathing-circle').style.animationPlayState = 'running';
955
+ }
956
+ });
957
+
958
+ // Time period selection
959
+ timePeriodBtns.forEach(btn => {
960
+ btn.addEventListener('click', () => {
961
+ timePeriodBtns.forEach(b => {
962
+ b.classList.remove('bg-purple-900');
963
+ b.classList.add('hover:bg-white/10');
964
+ });
965
+ btn.classList.add('bg-purple-900');
966
+ btn.classList.remove('hover:bg-white/10');
967
+
968
+ // Here you would typically load data for the selected time period
969
+ console.log(`Loading data for ${btn.dataset.period} period`);
970
+ });
971
+ });
972
+
973
+ // Quick action button
974
+ quickActionBtn.addEventListener('click', () => {
975
+ // Toggle between different quick actions
976
+ const icon = quickActionBtn.querySelector('i');
977
+ if (icon.classList.contains('fa-bolt')) {
978
+ icon.classList.remove('fa-bolt');
979
+ icon.classList.add('fa-heart');
980
+ quickActionBtn.classList.remove('pulse-gradient');
981
+ quickActionBtn.classList.add('bg-red-500');
982
+ } else if (icon.classList.contains('fa-heart')) {
983
+ icon.classList.remove('fa-heart');
984
+ icon.classList.add('fa-moon');
985
+ quickActionBtn.classList.remove('bg-red-500');
986
+ quickActionBtn.classList.add('bg-indigo-500');
987
+ } else {
988
+ icon.classList.remove('fa-moon');
989
+ icon.classList.add('fa-bolt');
990
+ quickActionBtn.classList.remove('bg-indigo-500');
991
+ quickActionBtn.classList.add('pulse-gradient');
992
+ }
993
+
994
+ // Show notification
995
+ showNotification('Quick action activated!');
996
+ });
997
+
998
+ // Navigation buttons
999
+ navBtns.forEach(btn => {
1000
+ btn.addEventListener('click', () => {
1001
+ navBtns.forEach(b => {
1002
+ b.classList.remove('text-purple-400');
1003
+ b.classList.add('text-white/60');
1004
+ });
1005
+ btn.classList.add('text-purple-400');
1006
+ btn.classList.remove('text-white/60');
1007
+
1008
+ // Here you would typically navigate to different pages
1009
+ console.log(`Navigating to ${btn.dataset.page}`);
1010
+ });
1011
+ });
1012
+
1013
+ // Simulate real-time biometric data changes
1014
+ function simulateBiometricData() {
1015
+ if (isPaused) return;
1016
+
1017
+ // Heart rate (60-100 bpm normal range)
1018
+ const baseHeartRate = 72;
1019
+ const heartRateVariation = Math.floor(Math.random() * 10) - 3; // -3 to +6
1020
+ const newHeartRate = baseHeartRate + heartRateVariation;
1021
+ heartbeatValue.textContent = newHeartRate;
1022
+
1023
+ // SpO2 (95-100% normal range)
1024
+ const spo2Variation = Math.floor(Math.random() * 3) - 1; // -1 to +1
1025
+ const newSpo2 = Math.min(100, Math.max(95, 98 + spo2Variation));
1026
+ spo2Value.textContent = newSpo2;
1027
+
1028
+ // Stress level (0-100 scale)
1029
+ const stressVariation = Math.floor(Math.random() * 10) - 2; // -2 to +7
1030
+ const newStress = Math.min(100, Math.max(0, 24 + stressVariation));
1031
+ stressValue.textContent = newStress;
1032
+
1033
+ // Respiratory rate (12-20 breaths/min normal range)
1034
+ const respVariation = Math.floor(Math.random() * 3) - 1; // -1 to +1
1035
+ const newRespRate = 14 + respVariation;
1036
+ respRateValue.textContent = newRespRate;
1037
+
1038
+ // HR Variability (ms)
1039
+ const hrvVariation = Math.floor(Math.random() * 10) - 3; // -3 to +6
1040
+ const newHRV = 68 + hrvVariation;
1041
+ hrVariabilityValue.textContent = newHRV;
1042
+
1043
+ // Blood Pressure (mmHg)
1044
+ const bpSystolicVariation = Math.floor(Math.random() * 5) - 1; // -1 to +3
1045
+ const bpDiastolicVariation = Math.floor(Math.random() * 3) - 1; // -1 to +1
1046
+ const newBPSystolic = 118 + bpSystolicVariation;
1047
+ const newBPDiastolic = 76 + bpDiastolicVariation;
1048
+ bpValue.textContent = `${newBPSystolic}/${newBPDiastolic}`;
1049
+
1050
+ // Body Temperature (°C)
1051
+ const tempVariation = (Math.random() * 0.4) - 0.2; // -0.2 to +0.2
1052
+ const newTemp = 36.7 + tempVariation;
1053
+ tempValue.textContent = newTemp.toFixed(1);
1054
+ }
1055
+
1056
+ // Update data every 3 seconds
1057
+ setInterval(simulateBiometricData, 3000);
1058
+
1059
+ // Initial data load
1060
+ simulateBiometricData();
1061
+
1062
+ // Notification function
1063
+ function showNotification(message) {
1064
+ const notification = document.createElement('div');
1065
+ notification.className = 'fixed top-20 right-4 z-50 pulse-card px-4 py-3 rounded-lg flex items-center shadow-lg';
1066
+ notification.innerHTML = `
1067
+ <i class="fas fa-check-circle text-green-400 mr-2"></i>
1068
+ <span>${message}</span>
1069
+ `;
1070
+ document.body.appendChild(notification);
1071
+
1072
+ setTimeout(() => {
1073
+ notification.style.opacity = '0';
1074
+ notification.style.transform = 'translateX(20px)';
1075
+ setTimeout(() => notification.remove(), 300);
1076
+ }, 3000);
1077
+ }
1078
+
1079
+ // Lazy load animation
1080
+ document.addEventListener('DOMContentLoaded', () => {
1081
+ const lazyElements = document.querySelectorAll('.lazy-load');
1082
+
1083
+ const observer = new IntersectionObserver((entries) => {
1084
+ entries.forEach(entry => {
1085
+ if (entry.isIntersecting) {
1086
+ entry.target.classList.add('loaded');
1087
+ observer.unobserve(entry.target);
1088
+ }
1089
+ });
1090
+ }, { threshold: 0.1 });
1091
+
1092
+ lazyElements.forEach(el => observer.observe(el));
1093
+ });
1094
+ </script>
1095
+ <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=Junimaru/hyperpulse" style="color: #fff;text-decoration: underline;" target="_blank" >🧬 Remix</a></p></body>
1096
+ </html>