-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp-information.php
692 lines (564 loc) · 19.7 KB
/
app-information.php
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
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
<?php
session_start(); // Start the session
// Check if the user is logged in
if (!isset($_SESSION['user_id'])) {
header("Location: login.php"); // Redirect to login page if not logged in
exit();
}
// Get the current page name
$current_page = basename($_SERVER['PHP_SELF']);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sleep Statistics</title>
<style>
/* General Styles */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background: linear-gradient(to right, #616cbb, #748ac7);
color: #fff;
display: flex;
flex-direction: column;
align-items: center;
min-height: 100vh;
}
/* Header Styles */
.header {
width: 100%;
max-width: 1200px;
padding: 10px 20px;
display: flex;
align-items: center;
justify-content: space-between;
background-color: #4C57A7;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
color: white;
border-radius: 10px;
}
.header img {
max-width: 100px;
}
.date-time {
font-size: 16px;
font-weight: bold;
color: white;
margin-top: 5px; /* Added margin to move it down a bit */
}
.logout-settings-container {
display: flex;
align-items: center;
gap: 15px;
}
.logout-button {
padding: 10px 20px;
background-color: white;
color: #4C57A7;
border: 1px solid #4C57A7;
border-radius: 5px;
cursor: pointer;
}
.logout-button:hover {
background-color: #E2E8F0;
}
/* Button Styling */
.settings-button {
background: none;
border: none;
cursor: pointer;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
width: 50px; /* Increased width */
height: 50px; /* Increased height */
padding: 12px; /* Adjusted padding for better proportions */
border-radius: 50%;
transition: background-color 0.3s ease;
background-color: white;
}
/* Hover Effect for the Button */
.settings-button:hover {
background-color: rgba(0, 0, 0, 0.1);
}
/* Fullscreen overlay */
.settings-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.8);
display: none;
justify-content: space-between; /* Divides left and right sections */
padding: 20px;
z-index: 1000;
color: white;
}
/* Settings Menu (Left Section) */
.settings-menu {
flex: 1; /* Left section takes 30% */
max-width: 20%; /* Optional: Restrict max width */
/*background: linear-gradient(to left, #748ac7, #4C57A7);*/
background: linear-gradient(to right, #616cbb, #748ac7);
padding: 30px;
border-radius: 10px;
font-size: 24px;
box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.5);
}
.settings-menu h2 {
color: #D1D9F1;
margin-top: 0;
font-weight: bold;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}
.settings-menu ul {
list-style: none;
padding: 0;
margin: 0;
}
.settings-menu li {
margin-bottom: 15px;
}
.settings-menu a {
text-decoration: none;
color: #E2E8F0;
font-size: 20px;
padding: 5px;
transition: color 0.3s, background-color 0.3s;
border-radius: 5px;
}
.settings-menu a:hover {
color: #2C3E99;
background-color: #D1D9F1;
}
/* Team Section */
.team-section {
flex: 2;
background: linear-gradient(to right, #616cbb, #748ac7);
padding: 20px;
border-radius: 10px;
box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.5);
color: #ffffff;
overflow-y: auto;
display: grid; /* Use grid to align team members */
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Create responsive grid */
gap: 20px; /* Space between the team members */
}
.team-section h1 {
font-size: 52px;
margin-bottom: 100px;
color: white;
font-family: 'Yatra One', cursive;
}
.team-member {
transition: transform 0.3s ease-in-out;
text-decoration: none;
color: inherit;
background: white;
padding: 20px;
border-radius: 10px;
position: relative;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.team-member:hover {
transform: scale(1.05);
}
.team-member img {
width: 100px;
height: 100px;
object-fit: cover;
border-radius: 50%;
}
.team-member h3 {
color: #4C57A7;
font-size: 26px;
margin-top: 20px;
}
.team-member p {
color: #4C57A7;
font-size: 14px;
}
/* Close Button */
.close-settings {
background: none;
border: none;
font-size: 18px;
color: #E2E8F0;
cursor: pointer;
margin-bottom: 20px;
border-radius: 5px;
transition: color 0.3s, background-color 0.3s;
}
.close-settings:hover {
color: #2C3E99;
background-color: #D1D9F1;
}
/* Go Back Button Styles */
.go-back-button {
padding: 10px 20px;
background-color: #4C57A7;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
margin-top: 20px;
}
.go-back-button:hover {
background-color: #3B4A8A;
}
/* Container */
.container {
margin: 100px auto;
padding: 20px;
max-width: 1200px;
display: flex;
flex-direction: column;
gap: 40px;
}
/* Info Section */
.info-section {
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
background: white;
border-radius: 10px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
padding: 40px;
transition: transform 0.3s ease, box-shadow 0.3s ease; /* Add transition */
}
.info-section:hover {
transform: scale(1.05); /* Slightly increase size on hover */
box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2); /* Increase shadow on hover */
}
.combined-box:hover {
transform: scale(1.05); /* Slightly increase size on hover */
box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2); /* Increase shadow on hover */
transition: transform 0.3s ease, box-shadow 0.3s ease; /* Add smooth transition */
}
.info-section.reverse {
flex-direction: row-reverse;
}
/* Text Box */
.text-box {
flex: 1;
color: #4C57A7;
font-size: 18px;
}
.text-box h2 {
font-size: 28px;
margin-bottom: 15px;
color: #4C57A7;
}
.text-box p, .text-box ul {
line-height: 1.8;
}
/* Combined White Box */
.combined-box {
background-color: white;
border-radius: 10px;
padding: 40px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
/* Blue Box Inside the Combined White Box */
.blue-box {
background-color: #2E4A7D; /* Darker Blue */
color: white;
border-radius: 10px;
padding: 80px;
padding-bottom: px;
margin: 40px 0px; /* Space around the blue box */
/* Box width */
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
font-size: 18px;
line-height: 1.9;
overflow: hidden; /* Ensure smooth expansion */
word-wrap: break-word; /* Allow long words to break */
}
.blue-box h2 {
font-size: 24px;
margin-bottom: 15px;
}
.blue-box h3 {
font-size: 24px;
margin-bottom: 10px;
}
.blue-box ul {
list-style: none;
padding: 0;
}
.blue-box ul li {
margin: 10px 0;
}
/* Connections Section */
.connections-section {
margin-top: 60px;
/* Larger gap before Connections heading */
}
.connections-section h2 {
margin-bottom: 20px;
}
.connection-graphic {
display:flex;
justify-content:center
align-items:center
text-align: center;
margin: 0px auto;
}
.connection-graphic img {
max-width: 100%;
height: auto;
display:block;
}
/* Footer Styles */
.footer {
font-size: 14px;
text-align: center;
margin-top: auto;
}
footer hr {
border: 0;
border-top: 1px solid white;
margin-bottom: 10px;
}
@media (max-width: 768px) {
.header {
flex-direction: column;
align-items: flex-start;
}
.header img {
max-width: 80px;
}
.settings-overlay {
flex-direction: column; /* Stack the settings and about sections */
gap: 20px;
}
.team-section {
grid-template-columns: repeat(2, 1fr); /* Two items per row on larger screens */
}
.settings-menu, .about-us {
max-width: 100%; /* Use full width for smaller screens */
flex: none;
}
.bar-chart {
height: 150px; /* Adjust chart height */
}
.nav-link {
font-size: 16px;
padding: 8px 10px;
}
}
/* Active overlay display */
.settings-overlay.active {
display: flex; /* Flex layout is only applied when active */
}
</style>
</head>
<body>
<!-- Header -->
<div class="header">
<img src="images/sleep.png" alt="Sleep Med Logo">
<div class="date-time" id="currentDateTime"></div>
<div class="logout-settings-container">
<button id="logout-btn" class="logout-button">Logout</button>
<button id="settings-btn" class="settings-button">⋮</button>
</div>
</div>
<script>
// Update the date and time dynamically
function updateDateTime() {
const date = new Date();
const options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric', hour: '2-digit', minute: '2-digit', second: '2-digit' };
const formattedDateTime = date.toLocaleString('en-US', options);
document.getElementById('currentDateTime').textContent = formattedDateTime;
}
setInterval(updateDateTime, 1000);
updateDateTime();
</script>
<div class="settings-overlay" id="settings-overlay">
<!-- Settings Menu -->
<div class="settings-menu">
<button class="close-settings" id="close-settings">Close ✕</button>
<h2>Settings</h2>
<ul>
<li><a href="#">Switch Account</a></li>
<li><a href="#">Delete Account</a></li>
<li><a href="#">Language</a></li>
<li><a href="#">Support</a></li>
<li><a href="app-information.php">App Information</a></li>
</ul>
</div>
<!-- Team Section -->
<div class="team-section">
<h1>Our Team</h1>
<!-- Team Member 1 -->
<a href="https://github.com/safrinfaizz" target="_blank" class="team-member">
<div>
<img src="../../images/safreena.jpg" alt="Safreena">
</div>
<h3>Safreena</h3>
<p>Front-End Developer</p>
<p>"As a health informatics student interested in building websites and working with data, I contributed to the Sleep Monitor project by developing the front-end. For me, front-end development is where creativity and technology meet to solve problems and inspire users."</p>
</a>
<!-- Team Member 2 -->
<a href="https://github.com/SenaDok" target="_blank" class="team-member">
<div>
<img src="../../images/sena.jpg" alt="Sena">
</div>
<h3>Sena</h3>
<p>Front-End Developer</p>
<p>“A healthy body holds a healthy mind and soul, and that's what we should strive to have and share”</p>
</a>
<!-- Team Member 3 -->
<a href="https://github.com/AngelinaNSS" target="_blank" class="team-member">
<div>
<img src="../../images/angelina.jpg" alt="Angelina">
</div>
<h3>Angelina</h3>
<p>Front-End Developer</p>
<p>"I’m a health informatics student with a passion for using tech to improve healthcare. With this Sleep Monitor project, I aim to help people track and improve their sleep, especially for those working late shifts, so they can feel better and perform their best."</p>
</a>
<!-- Team Member 4 -->
<a href="https://github.com/kseniiavi" target="_blank" class="team-member">
<div>
<img src="../../images/kseniia.jpg" alt="Kseniia">
</div>
<h3>Kseniia</h3>
<p>Back-End Developer</p>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Est quaerat tempora.</p>
</a>
<!-- Team Member 5 -->
<a href="https://github.com/Maryem29" target="_blank" class="team-member">
<div>
<img src="../../images/maryem.jpg" alt="Maryem">
</div>
<h3>Maryem</h3>
<p>Back-End Developer</p>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Est quaerat tempora.</p>
</a>
</div>
</div>
<script>
// Open settings overlay
const settingsBtn = document.getElementById("settings-btn");
const settingsOverlay = document.getElementById("settings-overlay");
const closeSettings = document.getElementById("close-settings");
// Open settings overlay
settingsBtn.addEventListener("click", () => {
settingsOverlay.classList.add("active");
});
// Close settings overlay
closeSettings.addEventListener("click", () => {
settingsOverlay.classList.remove("active");
});
// Optional: Close overlay when clicking outside the settings panel
settingsOverlay.addEventListener("click", (e) => {
if (e.target === settingsOverlay) {
settingsOverlay.classList.remove("active");
}
});
</script>
<!-- Go Back Button -->
<button onclick="goBack()" class="go-back-button">Go Back</button>
<script>
// Function to go back to the previous page
function goBack() {
window.history.back();
}
</script>
<div class="container">
<!-- Section 1 -->
<div class="info-section">
<div class="text-box">
<h2>Sleep Med</h2>
<p> A real-time monitoring app powered by a chest sensor for accurate health and sleep insights.</p>
</div>
<div class="image-box">
<img src="../../images/pic2.jpg" alt="Doctors resting">
</div>
</div>
<!-- Section 2 -->
<div class="info-section reverse">
<div class="text-box">
<h2>Night Shift Workers</h2>
<p> Tailored specifically for night shift healthcare workers to monitor and improve sleep quality and health.</p>
</div>
<div class="image-box">
<img src="../../images/pic3.jpg" alt="Key features">
</div>
</div>
<!-- Section 3 -->
<div class="info-section">
<div class="text-box">
<h2> Better Care for Patients</h2>
<p>Enhancing healthcare providers' performance for improved patient outcomes</p>
</div>
<div class="image-box">
<img src="../../images/pic4.jpg" alt="Getting started">
</div>
</div>
<!-- Combined Section -->
<div class="combined-box">
<h2 style="color: #4C57A7;">Sleep Med</h2>
<div class="features-section">
<ul class="feature-list" style="list-style: none; padding: 0; margin: 20px 0;">
<li style="display: flex; align-items: center; margin-bottom: 15px;">
<div style="width: 10px; height: 10px; background-color: #4C57A7; border-radius: 50%; margin-right: 10px;"></div>
<span style="color: #4C57A7;">Real-Time Health Monitoring</span>
</li>
<li style="display: flex; align-items: center; margin-bottom: 15px;">
<div style="width: 10px; height: 10px; background-color: #4C57A7; border-radius: 50%; margin-right: 10px;"></div>
<span style="color: #4C57A7;">Weekly and Monthly Reports</span>
</li>
<li style="display: flex; align-items: center; margin-bottom: 15px;">
<div style="width: 10px; height: 10px; background-color: #4C57A7; border-radius: 50%; margin-right: 10px;"></div>
<span style="color: #4C57A7;">Personalized Sleep Insights</span>
</li>
</ul>
</div>
<!-- Blue Box -->
<div class="blue-box">
Healthcare providers on night shifts face significant challenges, including disrupted circadian rhythms, high stress levels,
and demanding workloads, leading to poor sleep quality, burnout, and compromised patient care.
To address these issues, the app utilizes the **BITalino sensor**, which attaches to the healthcare worker's
chest to capture real-time **ECG (Electrocardiogram)** data.
this data offers insights into heart rate variability, stress levels, and sleep patterns.
Through the app, users can monitor real-time metrics and access detailed weekly and monthly reports,
enabling them to optimize recovery, improve sleep quality, and enhance their performance during night shifts,
ultimately benefiting both healthcare providers and their patients.
</div>
<!-- Connections Section -->
<div class="connections-section">
<h2 style="color: #4C57A7; text-align: center;">Connections</h2>
<p style="color: #4C57A7; text-align: center;">MedSleep is connected through sensors to doctors, and then the data can be accessed on phones</p>
<div class="connection-graphic" style="display: flex; justify-content: center; align-items: center; margin: 20px auto;">
<img src="../../images/graphic.png" alt="Connections Graphic" style="max-width: 100%; height: auto; display: block;">
</div>
</div>
</div>
</div>
<!-- Footer -->
<footer>
<hr>
<p>Created by: Kseniia, Maryem, Sena, Saffree, Angelina - Sleep Med </p>
</footer>
<script>
// Handle logout
document.getElementById("logout-btn").addEventListener("click", function () {
if (confirm("Are you sure you want to log out?")) {
window.location.href = "login.php";
}
});
</script>
</body>
</html>