dataquantals commited on
Commit
ccf6efb
·
verified ·
1 Parent(s): 877537f

work on the Appointment - Follow Up Deployment

Browse files
Files changed (1) hide show
  1. index.html +61 -8
index.html CHANGED
@@ -249,14 +249,44 @@
249
  <i class="fas fa-home text-xl mb-1"></i>
250
  <span class="text-xs">Home</span>
251
  </a>
252
- <a href="#" class="flex flex-col items-center py-3 text-gray-500 hover:text-purple-600">
253
- <i class="fas fa-heartbeat text-xl mb-1"></i>
254
- <span class="text-xs">Health</span>
255
- </a>
256
- <a href="#" class="flex flex-col items-center py-3 text-gray-500 hover:text-purple-600">
257
- <i class="fas fa-calendar-check text-xl mb-1"></i>
258
- <span class="text-xs">Appointments</span>
259
- </a>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
260
  <a href="#" class="flex flex-col items-center py-3 text-gray-500 hover:text-purple-600">
261
  <i class="fas fa-bell text-xl mb-1"></i>
262
  <span class="text-xs">Alerts</span>
@@ -265,6 +295,29 @@
265
  </div>
266
  </nav>
267
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
268
  <!-- Emergency Button (Floating) -->
269
  <div class="fixed bottom-20 right-4">
270
  <button id="emergencyBtn" class="pulse-animation bg-red-600 text-white w-14 h-14 rounded-full shadow-xl flex items-center justify-center">
 
249
  <i class="fas fa-home text-xl mb-1"></i>
250
  <span class="text-xs">Home</span>
251
  </a>
252
+ <div class="relative">
253
+ <button id="healthBtn" class="flex flex-col items-center py-3 text-gray-500 hover:text-purple-600">
254
+ <i class="fas fa-heartbeat text-xl mb-1"></i>
255
+ <span class="text-xs">Health</span>
256
+ </button>
257
+ <div id="healthMenu" class="hidden absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 w-48 bg-white rounded-lg shadow-lg z-10">
258
+ <div class="py-1">
259
+ <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-purple-50 hover:text-purple-600">
260
+ <i class="fas fa-heartbeat mr-2"></i> Pregnancy
261
+ </a>
262
+ <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-purple-50 hover:text-purple-600">
263
+ <i class="fas fa-baby mr-2"></i> Newborn
264
+ </a>
265
+ <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-purple-50 hover:text-purple-600">
266
+ <i class="fas fa-child mr-2"></i> Child
267
+ </a>
268
+ </div>
269
+ </div>
270
+ </div>
271
+ <div class="relative">
272
+ <button id="appointmentsBtn" class="flex flex-col items-center py-3 text-gray-500 hover:text-purple-600">
273
+ <i class="fas fa-calendar-check text-xl mb-1"></i>
274
+ <span class="text-xs">Appointments</span>
275
+ </button>
276
+ <div id="appointmentsMenu" class="hidden absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 w-48 bg-white rounded-lg shadow-lg z-10">
277
+ <div class="py-1">
278
+ <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-purple-50 hover:text-purple-600">
279
+ <i class="fas fa-calendar-plus mr-2"></i> Schedule
280
+ </a>
281
+ <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-purple-50 hover:text-purple-600">
282
+ <i class="fas fa-list-alt mr-2"></i> View All
283
+ </a>
284
+ <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-purple-50 hover:text-purple-600">
285
+ <i class="fas fa-bell mr-2"></i> Reminders
286
+ </a>
287
+ </div>
288
+ </div>
289
+ </div>
290
  <a href="#" class="flex flex-col items-center py-3 text-gray-500 hover:text-purple-600">
291
  <i class="fas fa-bell text-xl mb-1"></i>
292
  <span class="text-xs">Alerts</span>
 
295
  </div>
296
  </nav>
297
 
298
+ <!-- Health Menu Toggle Script -->
299
+ <script>
300
+ const healthBtn = document.getElementById('healthBtn');
301
+ const healthMenu = document.getElementById('healthMenu');
302
+
303
+ healthBtn.addEventListener('click', (e) => {
304
+ e.preventDefault();
305
+ healthMenu.classList.toggle('hidden');
306
+
307
+ // Close other menus if open
308
+ mobileMenu.classList.add('hidden');
309
+ languageMenu.classList.add('hidden');
310
+ emergencyModal.classList.add('hidden');
311
+ });
312
+
313
+ // Close health menu when clicking outside
314
+ document.addEventListener('click', (e) => {
315
+ if (!healthMenu.contains(e.target) && e.target !== healthBtn) {
316
+ healthMenu.classList.add('hidden');
317
+ }
318
+ });
319
+ </script>
320
+
321
  <!-- Emergency Button (Floating) -->
322
  <div class="fixed bottom-20 right-4">
323
  <button id="emergencyBtn" class="pulse-animation bg-red-600 text-white w-14 h-14 rounded-full shadow-xl flex items-center justify-center">