-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpatient-dashboard.html
190 lines (158 loc) · 7.47 KB
/
patient-dashboard.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Memory Lane</title>
<!--CSS-->
<link rel="stylesheet" href="../dist/output.css">
<!--ICONS-->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/fonts/remixicon.min.css">
<!--Fonts-->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Jost:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet">
<!-- <link rel="stylesheet" href="css/swiper-bundle.min.css"> -->
<link rel="stylesheet" href="https://unpkg.com/swiper/swiper-bundle.min.css">
<script type="module" src="./sign-up.js" defer></script>
</head>
<body>
<!-- Nav bar -->
<header class="sticky top-0 h-[90px] shadow-xl z-30 bg-white">
<div class="container mx-auto flex justify-between h-full items-center">
<a href="#">
<img src="./assets/logo.jpeg" alt="" class="w-[200px]">
</a>
<nav>
<div class="cursor-pointer lg:hidden" id="nav_trigger_btn">
<i class="ri-menu-4-line text-4xl text-primary"></i>
</div>
<ul class="fixed w-full h-0 p-0 bg-white overflow-hidden border-t top-[90px] left-0 right-0 flex flex-col gap-4 lg:relative lg:flex-row lg:p-0 lg:top-0 lg:border-none lg:h-full transition-all duration-300" id="nav_menu">
<li class="p-2"><a href="./index.html#home">Home</a></li>
<li class="p-2"><a href="./index.html#about">About</a></li>
<li class="p-2"><a href="./index.html#contact">Contact Us</a></li>
<!-- Placeholder for user info or sign-in button -->
<div id="user-auth-section">
<button class="btn-accent w-[120px] h-[50px] lg:p-0 p-2 rounded-lg">
<a href="./sign-up.html" class="text-white hover:text-black" id="auth-btn">Sign In</a>
</button>
</div>
</ul>
</nav>
</div>
</header>
<section class="steps mt-[30px] xl:mt-[30px] relative z-20 mb-10" id="">
<div class="container mx-auto">
<div class="flex justify-center text-center pb-10">
<h2 class="h2 ">Patient's Dashboard</h2>
</div>
<div class="grid grid-cols-1 gap-12 xl:grid-cols-3">
<!--Step 1-->
<div class="steps__step text-center bg-accent-secondary p-4 rounded-xl">
<a href="patient-todo.html">
<div class="mb-4">
<i class="ri-file-list-3-fill text-5xl text-accent"></i>
</div>
<h3 class="h3 mb-5">Daily Activities Checklist</h3>
<p class="mb-5 max-w-md mx-auto">Helps the patient to remember all the essential daily activities</p>
<a href="patient-todo.html" class="font-medium">Click here
<i class="ri-arrow-right-line"></i>
</a>
</a>
</div>
<!--Step-->
<div class="steps__step text-center bg-accent-secondary p-4 rounded-xl">
<a href="/emergency-contact.html">
<div class="mb-4">
<i class="ri-phone-fill text-5xl text-accent"></i>
</div>
<h3 class="h3 mb-5">Emergency Contacts</h3>
<p class="mb-5 max-w-md mx-auto">Store emergency contacts to help reach family members easily when in need.</p>
<a href="/emergency-contact.html" class="font-medium">Click Here
<i class="ri-arrow-right-line"></i>
</a>
</a>
</div>
<!--Step 2-->
<div class="steps__step text-center bg-accent-secondary p-4 rounded-xl">
<div class="mb-4">
<i class="ri-image-fill text-5xl text-accent"></i>
</div>
<h3 class="h3 mb-5">Photo Gallery</h3>
<p class="mb-5 max-w-md mx-auto">Helps to refresh patients memories by visual photos.</p>
<a href="./patient-photo_gallery.html" class="font-medium">Click Here
<i class="ri-arrow-right-line"></i>
</a>
</div>
<!--Step 3-->
<div class="steps__step text-center bg-accent-secondary p-4 rounded-xl">
<a href="patient-games.html">
<div class="mb-4">
<i class="ri-gamepad-fill text-5xl text-accent"></i>
</div>
<h3 class="h3 mb-5">Games</h3>
<p class="mb-5 max-w-md mx-auto">Games can help slow down the progression of dementia by stimulating the brain and improving cognitive abilities</p>
<a href="patient-games.html" class="font-medium">Click Here
<i class="ri-arrow-right-line"></i>
</a>
</a>
</div>
<div class="steps__step text-center bg-accent-secondary p-4 rounded-xl">
<a href="journals.html">
<div class="mb-4">
<i class="ri-book-marked-line text-5xl text-accent"></i>
</div>
<h3 class="h3 mb-5">Journals</h3>
<p class="mb-5 max-w-md mx-auto">Journaling allows you to identify things that are troubling you and that are hard for you to verbalize.</p>
<a href="journals.html" class="font-medium">Click Here
<i class="ri-arrow-right-line"></i>
</a>
</a>
</div>
</div>
</div>
<div class="flex-col justify-center items-center text-center p-8 mt-8">
<h3 class="h3">Turn on your location</h3>
<button id="location-btn">
<a href="#" class="font-medium">Click Here
<i class="ri-arrow-right-line"></i>
</a>
</button>
</div>
</section>
<footer class="bg-white m-4">
<div class="w-full max-w-screen-xl mx-auto p-4 md:py-8">
<hr class="my-6 border-gray-200 sm:mx-auto lg:my-8" />
<span class="block text-sm text-gray-500 sm:text-center dark:text-gray-400">© 2022 <a href="index.html" class="hover:underline">Memory Lane™</a>. All Rights Reserved.</span>
</div>
</footer>
<script src="https://kit.fontawesome.com/cb88b54bf5.js" crossorigin="anonymous"></script>
<script src="./js/main.js"></script>
<script>
document.getElementById('location-btn').addEventListener('click', function(event) {
event.preventDefault();
// Check if Geolocation is supported
if (navigator.geolocation) {
// Request the user's current location
navigator.geolocation.getCurrentPosition(successCallback, errorCallback);
} else {
alert("Geolocation is not supported by your browser.");
}
// Success callback function when location is retrieved
function successCallback(position) {
const latitude = position.coords.latitude;
const longitude = position.coords.longitude;
// Store the latitude and longitude in localStorage
localStorage.setItem('latitude', latitude);
localStorage.setItem('longitude', longitude);
alert("Location sent to your caretaker!");
}
// Error callback function if location retrieval fails
function errorCallback(error) {
alert("Unable to retrieve your location. Please try again.");
console.error("Geolocation error:", error);
}
});
</script>
</body>
</html>