-
Notifications
You must be signed in to change notification settings - Fork 1
/
caretaker-dashboard.html
153 lines (131 loc) · 6.51 KB
/
caretaker-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
<!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="./js/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</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 ">Caretakers' 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">
<div class="mb-4">
<i class="ri-medicine-bottle-fill text-5xl text-accent"></i>
</div>
<h3 class="h3 mb-5">Store Reports</h3>
<p class="mb-5 max-w-md mx-auto">Memory Lane provides an EHR system to store patients reports and prescriptions without any hassle.</p>
<a href="./store-report.html" class="font-medium">Click here
<i class="ri-arrow-right-line"></i>
</a>
</div>
<!--Step 2-->
<div class="steps__step text-center bg-accent-secondary p-4 rounded-xl">
<div class="mb-4">
<i class="ri-file-list-3-fill text-5xl text-accent"></i>
</div>
<h3 class="h3 mb-5">Medicines Checklist</h3>
<p class="mb-5 max-w-md mx-auto">Checklist to keep track of the medicines intake by the patient</p>
<a href="./upload.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">
<div class="mb-4">
<i class="ri-camera-fill text-5xl text-accent"></i>
</div>
<h3 class="h3 mb-5">Add Photos</h3>
<p class="mb-5 max-w-md mx-auto">Add photos of people and things closely related to the patient.</p>
<a href="./caretaker-add_photos.html" class="font-medium">Click Here
<i class="ri-arrow-right-line"></i>
</a>
</div>
</div>
</div>
<div class="flex-col justify-center items-center text-center p-8 mt-8">
<h3 class="h3">Track Patients Location</h3>
<button id="track-location-btn">
<a href="#" class="font-medium">Click Here
<i class="ri-arrow-right-line"></i>
</a>
</button>
</div>
<!-- Container where the map will be displayed -->
<div id="map-container" class="mt-8" style="width: 100%; height: 450px;"></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="../static/js/main.js"></script>
<script>
document.getElementById('track-location-btn').addEventListener('click', function(event) {
event.preventDefault();
// Retrieve the latitude and longitude from localStorage
const latitude = parseFloat(localStorage.getItem('latitude'));
const longitude = parseFloat(localStorage.getItem('longitude'));
if (!isNaN(latitude) && !isNaN(longitude)) {
// Create an OpenStreetMap URL with the retrieved location
const openStreetMapUrl = `https://www.openstreetmap.org/?mlat=${latitude}&mlon=${longitude}#map=18/${latitude}/${longitude}`;
// Embed the map into the page using an iframe
const mapContainer = document.getElementById('map-container');
mapContainer.innerHTML = `<iframe
width="100%"
height="450"
frameborder="0"
scrolling="no"
marginheight="0"
marginwidth="0"
src="https://www.openstreetmap.org/export/embed.html?bbox=${longitude-0.01},${latitude-0.01},${longitude+0.01},${latitude+0.01}&layer=mapnik&marker=${latitude},${longitude}"
style="border: 1px solid black;"></iframe>
<br/><small><a href="${openStreetMapUrl}" target="_blank">View Larger Map</a></small>`;
} else {
alert("No valid location found. Please turn on location on the first page.");
}
});
</script>
</body>
</html>