forked from eNishanth/IV-Drip-Flow-Monitor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
347 lines (314 loc) · 16.1 KB
/
Copy pathindex.html
File metadata and controls
347 lines (314 loc) · 16.1 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>IV Drip Monitoring System</title>
<link rel="stylesheet" href="style.css" />
<!-- Google Fonts: Premium display + body pairing -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link href="https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@300;400;500;600&family=Space+Mono:wght@400;700&display=swap" rel="stylesheet" />
<!-- GSAP for advanced animations -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/gsap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/ScrollTrigger.min.js"></script>
<!-- Socket.IO for real-time backend comms -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.7.5/socket.io.min.js"></script>
</head>
<body>
<!-- ═══════════════════════════════════════════════
CUSTOM CURSOR
═══════════════════════════════════════════════ -->
<div class="cursor-dot" id="cursorDot"></div>
<!-- ═══════════════════════════════════════════════
STICKY NAVIGATION
═══════════════════════════════════════════════ -->
<nav class="navbar" id="navbar">
<!-- LEFT: Nav links -->
<div class="nav-left">
<a href="#" class="nav-link active" data-tab="dashboard">Dashboard</a>
<a href="#" class="nav-link" data-tab="patients">Patient Records</a>
<a href="#" class="nav-link" data-tab="alerts">Alerts</a>
<a href="#" class="nav-link" data-tab="graphs">Graphs</a>
</div>
<!-- CENTER: empty spacer (logo removed) -->
<div class="nav-center"></div>
<!-- RIGHT: CTA -->
<div class="nav-right">
<span class="nav-status-indicator"></span>
<span class="nav-status-text">LIVE</span>
<button class="nav-cta" id="addPatientBtn">+ New Patient</button>
</div>
</nav>
<!-- ═══════════════════════════════════════════════
HERO SECTION
═══════════════════════════════════════════════ -->
<section class="hero" id="home">
<!-- Floating 3D-style IV Stand Graphic -->
<div class="hero-graphic" id="heroGraphic">
<svg class="iv-stand-svg" viewBox="0 0 320 480" fill="none" xmlns="http://www.w3.org/2000/svg">
<!-- Pole shadow -->
<ellipse cx="160" cy="455" rx="55" ry="12" fill="rgba(0,0,0,0.12)" class="stand-shadow"/>
<!-- Base tripod -->
<path d="M160 430 L110 455 M160 430 L210 455 M160 430 L160 458"
stroke="#1a1a1a" stroke-width="7" stroke-linecap="round"/>
<!-- Wheels -->
<circle cx="110" cy="455" r="8" fill="#1a1a1a" opacity="0.85"/>
<circle cx="210" cy="455" r="8" fill="#1a1a1a" opacity="0.85"/>
<circle cx="160" cy="458" r="8" fill="#1a1a1a" opacity="0.85"/>
<!-- Main pole -->
<rect x="156" y="100" width="8" height="335" rx="4" fill="#2a2a2a"/>
<!-- Pole top crossbar -->
<path d="M125 105 Q160 95 195 105" stroke="#2a2a2a" stroke-width="6" stroke-linecap="round" fill="none"/>
<!-- Hook left -->
<path d="M135 108 Q125 100 130 90 Q135 82 140 90" stroke="#1a1a1a" stroke-width="4" stroke-linecap="round" fill="none"/>
<!-- Hook right -->
<path d="M185 108 Q195 100 190 90 Q185 82 180 90" stroke="#1a1a1a" stroke-width="4" stroke-linecap="round" fill="none"/>
<!-- IV Bag left -->
<g class="iv-bag-left" transform="translate(95, 85)">
<rect x="0" y="0" width="48" height="70" rx="10" fill="rgba(255,255,255,0.92)" stroke="#d0d0d0" stroke-width="1.5"/>
<!-- Bag liquid fill -->
<rect x="5" y="28" width="38" height="37" rx="5" fill="rgba(160,200,230,0.5)"/>
<!-- Bag label -->
<rect x="5" y="5" width="38" height="18" rx="4" fill="rgba(0,0,0,0.06)"/>
<text x="24" y="17" text-anchor="middle" font-family="Space Mono" font-size="6" fill="#333" font-weight="700">0.9% NaCl</text>
<!-- Volume markers -->
<line x1="8" y1="38" x2="15" y2="38" stroke="#aaa" stroke-width="0.8"/>
<line x1="8" y1="48" x2="15" y2="48" stroke="#aaa" stroke-width="0.8"/>
<line x1="8" y1="58" x2="15" y2="58" stroke="#aaa" stroke-width="0.8"/>
<!-- Drip tube connector -->
<rect x="20" y="70" width="8" height="6" rx="2" fill="#bbb"/>
</g>
<!-- IV Bag right -->
<g class="iv-bag-right" transform="translate(177, 85)">
<rect x="0" y="0" width="48" height="70" rx="10" fill="rgba(255,255,255,0.92)" stroke="#d0d0d0" stroke-width="1.5"/>
<rect x="5" y="35" width="38" height="30" rx="5" fill="rgba(200,160,230,0.5)"/>
<rect x="5" y="5" width="38" height="18" rx="4" fill="rgba(0,0,0,0.06)"/>
<text x="24" y="17" text-anchor="middle" font-family="Space Mono" font-size="6" fill="#333" font-weight="700">Glucose 5%</text>
<line x1="8" y1="42" x2="15" y2="42" stroke="#aaa" stroke-width="0.8"/>
<line x1="8" y1="52" x2="15" y2="52" stroke="#aaa" stroke-width="0.8"/>
<rect x="20" y="70" width="8" height="6" rx="2" fill="#bbb"/>
</g>
<!-- Drip tubes -->
<path d="M119 161 Q119 220 145 240 L155 260" stroke="#ccc" stroke-width="2.5" fill="none" stroke-dasharray="4 3"/>
<path d="M201 161 Q201 220 175 240 L165 260" stroke="#ccc" stroke-width="2.5" fill="none" stroke-dasharray="4 3"/>
<!-- Drip chamber -->
<rect x="148" y="258" width="24" height="36" rx="6" fill="rgba(255,255,255,0.8)" stroke="#bbb" stroke-width="1.5"/>
<!-- Drip drops animation -->
<circle class="drip-drop" cx="160" cy="268" r="3" fill="rgba(100,180,255,0.8)"/>
<circle class="drip-drop2" cx="160" cy="282" r="2.5" fill="rgba(100,180,255,0.6)"/>
<!-- Monitor / display unit -->
<g class="monitor-unit" transform="translate(118, 290)">
<!-- Monitor body -->
<rect x="0" y="0" width="84" height="110" rx="14" fill="#1c1c1e" stroke="#333" stroke-width="1"/>
<!-- Screen bezel -->
<rect x="6" y="8" width="72" height="75" rx="8" fill="#0a0f14"/>
<!-- Screen content - glow -->
<rect x="6" y="8" width="72" height="75" rx="8" fill="url(#screenGlow)" opacity="0.9"/>
<!-- Screen text lines -->
<text x="42" y="26" text-anchor="middle" font-family="Space Mono" font-size="5.5" fill="#7fffd4" opacity="0.9">FLOW RATE</text>
<text x="42" y="40" text-anchor="middle" font-family="Space Mono" font-size="13" font-weight="700" fill="#00ff88">42 mL/h</text>
<line x1="12" y1="46" x2="72" y2="46" stroke="#333" stroke-width="0.8"/>
<text x="42" y="58" text-anchor="middle" font-family="Space Mono" font-size="5.5" fill="#7fffd4" opacity="0.9">VOLUME REM.</text>
<text x="42" y="72" text-anchor="middle" font-family="Space Mono" font-size="13" font-weight="700" fill="#00e5ff">78%</text>
<!-- Buttons row -->
<rect x="8" y="88" width="30" height="14" rx="5" fill="#00ff88"/>
<text x="23" y="97.5" text-anchor="middle" font-family="Space Mono" font-size="5" fill="#000" font-weight="700">FLOW</text>
<rect x="46" y="88" width="30" height="14" rx="5" fill="#333"/>
<text x="61" y="97.5" text-anchor="middle" font-family="Space Mono" font-size="5" fill="#aaa">STOP</text>
<!-- Power indicator -->
<circle cx="42" cy="105" r="3" fill="#00ff88" class="power-pulse"/>
</g>
<!-- Gradient def for screen -->
<defs>
<radialGradient id="screenGlow" cx="50%" cy="50%" r="60%">
<stop offset="0%" stop-color="#00ff8822"/>
<stop offset="100%" stop-color="#00000000"/>
</radialGradient>
</defs>
</svg>
<!-- Floating highlight orb behind the graphic -->
<div class="graphic-orb"></div>
</div>
<!-- Hero text block -->
<div class="hero-content">
<div class="hero-eyebrow reveal-item">
<span class="eyebrow-dot"></span>
Real-time infusion intelligence
</div>
<h1 class="hero-title reveal-item">
<span class="title-line title-line--sm">Intravenous</span>
<span class="title-line">Drip</span>
<span class="title-line accent-line">Monitoring</span>
<span class="title-line">System</span>
</h1>
<p class="hero-sub reveal-item">
Precision-engineered. Always on. Built for ward-level clinical excellence.
</p>
<div class="hero-actions reveal-item">
<button class="btn-primary" data-tab="dashboard">Open Dashboard →</button>
<button class="btn-ghost" data-tab="patients">View Patients</button>
</div>
</div>
</section>
<!-- ═══════════════════════════════════════════════
CURVED TICKER BANNER
═══════════════════════════════════════════════ -->
<div class="ticker-wrapper">
<div class="ticker-track">
<span class="ticker-item">IV CARE</span>
<span class="ticker-sep">•</span>
<span class="ticker-item">PRECISION MONITORING</span>
<span class="ticker-sep">•</span>
<span class="ticker-item">IV CARE</span>
<span class="ticker-sep">•</span>
<span class="ticker-item">PRECISION MONITORING</span>
<span class="ticker-sep">•</span>
<span class="ticker-item">IV CARE</span>
<span class="ticker-sep">•</span>
<span class="ticker-item">PRECISION MONITORING</span>
<span class="ticker-sep">•</span>
<span class="ticker-item">IV CARE</span>
<span class="ticker-sep">•</span>
<span class="ticker-item">PRECISION MONITORING</span>
<span class="ticker-sep">•</span>
</div>
</div>
<!-- ═══════════════════════════════════════════════
MAIN APP VIEWS (Tab-driven)
═══════════════════════════════════════════════ -->
<main class="app-main" id="appMain">
<!-- ── DASHBOARD TAB ── -->
<section class="tab-view active" id="view-dashboard">
<div class="section-header reveal-item">
<h2 class="section-title">Dashboard</h2>
<div class="section-meta">
<span class="meta-tag">Ward 3B</span>
<span class="meta-tag live-tag">● LIVE</span>
</div>
</div>
<!-- Stats row -->
<div class="stats-grid reveal-item">
<div class="stat-card">
<div class="stat-value" id="stat-active">4</div>
<div class="stat-label">Active Drips</div>
</div>
<div class="stat-card">
<div class="stat-value" id="stat-alerts">1</div>
<div class="stat-label">Active Alerts</div>
</div>
<div class="stat-card">
<div class="stat-value" id="stat-completed">7</div>
<div class="stat-label">Completed Today</div>
</div>
<div class="stat-card">
<div class="stat-value" id="stat-patients">11</div>
<div class="stat-label">Total Patients</div>
</div>
</div>
<!-- Alert banner -->
<div class="alert-banner reveal-item" id="alertBanner">
<span class="alert-icon">!</span>
<span class="alert-msg">Patient <strong>Arjun Mehta</strong> (Bed 7) — IV volume critical: <strong>12%</strong> remaining.</span>
<button class="alert-dismiss" onclick="this.parentElement.style.display='none'">✕</button>
</div>
<!-- Live flow graph placeholder -->
<div class="flow-graph-container reveal-item">
<div class="graph-header">
<span class="graph-title">Live Flow Rate — All Patients</span>
<span class="graph-meta">mL/hour · updated every 5s</span>
</div>
<canvas id="flowChart" height="160"></canvas>
</div>
</section>
<!-- ── PATIENT RECORDS TAB ── -->
<section class="tab-view" id="view-patients">
<div class="section-header reveal-item">
<h2 class="section-title">Patient Records</h2>
<div class="section-meta">
<input class="search-input" type="text" id="patientSearch" placeholder="Search patients…" />
</div>
</div>
<!-- Patient cards grid -->
<div class="cards-grid" id="patientCardsGrid">
<!-- Cards injected by JS / Flask -->
</div>
</section>
<!-- ── ALERTS TAB ── -->
<section class="tab-view" id="view-alerts">
<div class="section-header reveal-item">
<h2 class="section-title">Alerts</h2>
</div>
<div class="alerts-list" id="alertsList">
<!-- Populated by JS -->
</div>
</section>
<!-- ── GRAPHS TAB ── -->
<section class="tab-view" id="view-graphs">
<div class="section-header reveal-item">
<h2 class="section-title">Graphs</h2>
<div class="section-meta">
<select class="graph-select" id="graphPatientSelect">
<option value="all">All Patients</option>
</select>
</div>
</div>
<div class="graphs-grid reveal-item">
<div class="graph-card">
<div class="graph-label">Flow Rate Over Time</div>
<canvas id="chart-flow" height="200"></canvas>
</div>
<div class="graph-card">
<div class="graph-label">Volume Remaining (%)</div>
<canvas id="chart-volume" height="200"></canvas>
</div>
</div>
</section>
</main>
<!-- ═══════════════════════════════════════════════
ADD PATIENT MODAL
═══════════════════════════════════════════════ -->
<div class="modal-overlay" id="modalOverlay">
<div class="modal-box">
<div class="modal-header">
<span class="modal-title">New Patient</span>
<button class="modal-close" id="modalClose">✕</button>
</div>
<div class="modal-body">
<div class="field-group">
<label class="field-label">Patient Name</label>
<input class="field-input" id="inp-name" type="text" placeholder="Full name" />
</div>
<div class="field-row">
<div class="field-group">
<label class="field-label">Bed #</label>
<input class="field-input" id="inp-bed" type="text" placeholder="e.g. 3B-12" />
</div>
<div class="field-group">
<label class="field-label">Bag Volume</label>
<select class="field-input" id="inp-volume">
<option value="500">500 mL</option>
<option value="1000">1 L</option>
</select>
</div>
</div>
<div class="field-group">
<label class="field-label">Solution Type</label>
<select class="field-input" id="inp-solution">
<option>0.9% NaCl (Normal Saline)</option>
<option>Glucose 5% (D5W)</option>
<option>Ringer's Lactate</option>
<option>Dextrose + NaCl</option>
</select>
</div>
</div>
<div class="modal-footer">
<button class="btn-ghost" id="modalCancelBtn">Cancel</button>
<button class="btn-primary" id="modalSubmitBtn">Add Patient</button>
</div>
</div>
</div>
<!-- Chart.js for graphs -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/4.4.1/chart.umd.min.js"></script>
<script src="script.js"></script>
</body>
</html>