Spaces:
Running
Running
File size: 23,571 Bytes
abd2b97 877537f abd2b97 877537f abd2b97 877537f abd2b97 877537f abd2b97 877537f abd2b97 ccf6efb abd2b97 ccf6efb abd2b97 | 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 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ZamCARE360 - Maternal and Child Health App</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
.coat-of-arms {
filter: brightness(0) invert(1);
}
.gradient-bg {
background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}
.pulse-animation {
animation: pulse 2s infinite;
}
@keyframes pulse {
0% { transform: scale(1); }
50% { transform: scale(1.05); }
100% { transform: scale(1); }
}
.slide-in {
animation: slideIn 0.5s ease-out;
}
@keyframes slideIn {
from { transform: translateY(20px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
</style>
</head>
<body class="font-sans bg-gray-50">
<!-- Header/Navigation -->
<header class="bg-green-100 text-gray-800 shadow-lg border-b border-green-200">
<div class="container mx-auto px-4 py-4">
<div class="flex justify-between items-center">
<div class="flex items-center space-x-3">
<img src="https://fiekjaskdqimxhurmekp.supabase.co/storage/v1/object/sign/assets/Logos/Coat_of_arms_of_Zambia.png.png?token=eyJraWQiOiJzdG9yYWdlLXVybC1zaWduaW5nLWtleV8yYWYyNGFjOC0xYmQ2LTRhYzYtYjdhMC0yMGIzYThlOWVhZWYiLCJhbGciOiJIUzI1NiJ9.eyJ1cmwiOiJhc3NldHMvTG9nb3MvQ29hdF9vZl9hcm1zX29mX1phbWJpYS5wbmcucG5nIiwiaWF0IjoxNzUxNzg1ODM2LCJleHAiOjE3ODMzMjE4MzZ9._anJh7cBFZv4skJPGPt2LHKnFUNOijhF1f5Q65DDrNQ"
alt="Zambian Coat of Arms"
class="h-8 w-auto object-contain">
<div class="flex items-center space-x-2 bg-green-100 px-3 py-1 rounded-full">
<h1 class="text-lg font-bold">ZamaCare360</h1>
</div>
</div>
<div class="flex items-center space-x-4">
<button id="languageBtn" class="flex items-center space-x-1 bg-green-100 px-3 py-1 rounded-full text-gray-700">
<i class="fas fa-globe"></i>
<span>EN</span>
</button>
<button id="menuBtn" class="text-white">
<i class="fas fa-bars text-xl"></i>
</button>
</div>
</div>
</div>
</header>
<!-- Mobile Menu (Hidden by default) -->
<div id="mobileMenu" class="hidden bg-white shadow-lg rounded-b-lg">
<div class="container mx-auto px-4 py-3">
<ul class="space-y-3">
<li><a href="#" class="flex items-center space-x-2 text-gray-700 hover:text-purple-600"><i class="fas fa-home w-6"></i><span>Dashboard</span></a></li>
<li><a href="#" class="flex items-center space-x-2 text-gray-700 hover:text-purple-600"><i class="fas fa-heartbeat w-6"></i><span>Pregnancy Care</span></a></li>
<li><a href="#" class="flex items-center space-x-2 text-gray-700 hover:text-purple-600"><i class="fas fa-baby w-6"></i><span>Newborn Health</span></a></li>
<li><a href="#" class="flex items-center space-x-2 text-gray-700 hover:text-purple-600"><i class="fas fa-child w-6"></i><span>Child Health</span></a></li>
<li><a href="#" class="flex items-center space-x-2 text-gray-700 hover:text-purple-600"><i class="fas fa-comments w-6"></i><span>AI Chatbot</span></a></li>
<li><a href="#" class="flex items-center space-x-2 text-gray-700 hover:text-purple-600"><i class="fas fa-user-md w-6"></i><span>CHW Dashboard</span></a></li>
<li><a href="#" class="flex items-center space-x-2 text-gray-700 hover:text-purple-600"><i class="fas fa-cog w-6"></i><span>Settings</span></a></li>
<li><a href="#" class="flex items-center space-x-2 text-gray-700 hover:text-purple-600"><i class="fas fa-sign-out-alt w-6"></i><span>Logout</span></a></li>
</ul>
</div>
</div>
<!-- Language Selector (Hidden by default) -->
<div id="languageMenu" class="hidden bg-white shadow-lg rounded-lg absolute right-4 top-16 z-10 w-48">
<div class="p-3">
<h3 class="font-semibold text-gray-700 mb-2">Select Language</h3>
<ul class="space-y-2">
<li><button class="w-full text-left px-2 py-1 hover:bg-gray-100 rounded">English</button></li>
<li><button class="w-full text-left px-2 py-1 hover:bg-gray-100 rounded">Bemba</button></li>
<li><button class="w-full text-left px-2 py-1 hover:bg-gray-100 rounded">Nyanja</button></li>
<li><button class="w-full text-left px-2 py-1 hover:bg-gray-100 rounded">Tonga</button></li>
</ul>
</div>
</div>
<!-- Main Content -->
<main class="container mx-auto px-4 py-6">
<!-- Welcome Section -->
<section class="mb-8 slide-in">
<div class="bg-white rounded-xl shadow-md p-6">
<div class="flex items-center justify-between">
<div>
<h2 class="text-2xl font-bold text-gray-800">Welcome, Sarah!</h2>
<p class="text-gray-600">Your maternal and child health companion</p>
</div>
<div class="relative">
<img src="https://ghajirqwxfidwkywlefw.supabase.co/storage/v1/object/sign/assets/ZAMAA.png?token=eyJraWQiOiJzdG9yYWdlLXVybC1zaWduaW5nLWtleV84Mzg4YWFiMC0zNTg1LTQ5MTctYjVjNC05OWMwNDIyYjk2ZmQiLCJhbGciOiJIUzI1NiJ9.eyJ1cmwiOiJhc3NldHMvWkFNQUEucG5nIiwiaWF0IjoxNzUxNzg3MDY5LCJleHAiOjE3ODMzMjMwNjl9.nNXOEkSRnpb0qaCM3kYW_WkbZXI-Nt-VwU4r_xv8FTs" alt="Profile" class="w-16 h-16 rounded-full border-2 border-purple-500 object-cover">
<span class="absolute bottom-0 right-0 bg-green-500 rounded-full w-4 h-4 border-2 border-white"></span>
</div>
</div>
</div>
</section>
<!-- Quick Actions -->
<section class="mb-8 slide-in" style="animation-delay: 0.1s;">
<h2 class="text-xl font-semibold text-gray-800 mb-4">Quick Actions</h2>
<div class="grid grid-cols-2 md:grid-cols-4 gap-4">
<div class="bg-white rounded-xl shadow-md p-4 text-center hover:shadow-lg transition-shadow cursor-pointer">
<div class="bg-purple-100 w-12 h-12 rounded-full flex items-center justify-center mx-auto mb-2">
<i class="fas fa-heartbeat text-purple-600 text-xl"></i>
</div>
<p class="font-medium">Pregnancy</p>
</div>
<div class="bg-white rounded-xl shadow-md p-4 text-center hover:shadow-lg transition-shadow cursor-pointer">
<div class="bg-blue-100 w-12 h-12 rounded-full flex items-center justify-center mx-auto mb-2">
<i class="fas fa-baby text-blue-600 text-xl"></i>
</div>
<p class="font-medium">Newborn</p>
</div>
<div class="bg-white rounded-xl shadow-md p-4 text-center hover:shadow-lg transition-shadow cursor-pointer">
<div class="bg-green-100 w-12 h-12 rounded-full flex items-center justify-center mx-auto mb-2">
<i class="fas fa-child text-green-600 text-xl"></i>
</div>
<p class="font-medium">Child</p>
</div>
<div class="bg-white rounded-xl shadow-md p-4 text-center hover:shadow-lg transition-shadow cursor-pointer">
<div class="bg-red-100 w-12 h-12 rounded-full flex items-center justify-center mx-auto mb-2">
<i class="fas fa-ambulance text-red-600 text-xl"></i>
</div>
<p class="font-medium">Emergency</p>
</div>
</div>
</section>
<!-- Pregnancy Progress -->
<section class="mb-8 slide-in" style="animation-delay: 0.2s;">
<div class="bg-white rounded-xl shadow-md p-6">
<div class="flex justify-between items-center mb-4">
<h2 class="text-xl font-semibold text-gray-800">Pregnancy Progress</h2>
<span class="bg-purple-100 text-purple-800 px-3 py-1 rounded-full text-sm font-medium">Week 24</span>
</div>
<div class="mb-4">
<div class="flex justify-between text-sm text-gray-600 mb-1">
<span>Start</span>
<span>Due Date</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-2.5">
<div class="bg-purple-600 h-2.5 rounded-full" style="width: 60%"></div>
</div>
</div>
<div class="grid grid-cols-3 gap-4 text-center">
<div>
<p class="text-sm text-gray-500">Next ANC Visit</p>
<p class="font-semibold">May 15</p>
</div>
<div>
<p class="text-sm text-gray-500">Weight Gain</p>
<p class="font-semibold">+5.2 kg</p>
</div>
<div>
<p class="text-sm text-gray-500">BP</p>
<p class="font-semibold text-green-600">120/80</p>
</div>
</div>
</div>
</section>
<!-- Child Health -->
<section class="mb-8 slide-in" style="animation-delay: 0.3s;">
<div class="bg-white rounded-xl shadow-md p-6">
<div class="flex justify-between items-center mb-4">
<h2 class="text-xl font-semibold text-gray-800">Child Health</h2>
<button class="text-purple-600 hover:text-purple-800">
<i class="fas fa-plus-circle"></i> Add Child
</button>
</div>
<div class="space-y-4">
<div class="flex items-center p-3 border border-gray-100 rounded-lg hover:bg-gray-50">
<div class="bg-pink-100 w-12 h-12 rounded-full flex items-center justify-center mr-3">
<i class="fas fa-child text-pink-600"></i>
</div>
<div class="flex-grow">
<h3 class="font-medium">Emma Mwansa</h3>
<p class="text-sm text-gray-500">2 years 3 months</p>
</div>
<div class="text-right">
<p class="text-sm font-medium text-green-600">Healthy</p>
<p class="text-xs text-gray-500">Last check: 2 days ago</p>
</div>
</div>
<div class="flex items-center p-3 border border-gray-100 rounded-lg hover:bg-gray-50">
<div class="bg-blue-100 w-12 h-12 rounded-full flex items-center justify-center mr-3">
<i class="fas fa-baby text-blue-600"></i>
</div>
<div class="flex-grow">
<h3 class="font-medium">David Banda</h3>
<p class="text-sm text-gray-500">4 months</p>
</div>
<div class="text-right">
<p class="text-sm font-medium text-yellow-600">Needs Vaccination</p>
<p class="text-xs text-gray-500">Due: Tomorrow</p>
</div>
</div>
</div>
</div>
</section>
<!-- Health Tips -->
<section class="mb-8 slide-in" style="animation-delay: 0.4s;">
<div class="bg-gradient-to-r from-purple-500 to-indigo-600 rounded-xl shadow-md p-6 text-white">
<div class="flex justify-between items-center mb-4">
<h2 class="text-xl font-semibold">Health Tip of the Day</h2>
<i class="fas fa-lightbulb text-2xl"></i>
</div>
<p class="mb-4">During pregnancy, ensure you're getting enough iron-rich foods like beans, lentils, and leafy greens to prevent anemia and support your baby's development.</p>
<button class="bg-white text-purple-600 px-4 py-2 rounded-full font-medium hover:bg-gray-100">More Tips</button>
</div>
</section>
<!-- AI Chatbot -->
<section class="mb-8 slide-in" style="animation-delay: 0.5s;">
<div class="bg-white rounded-xl shadow-md p-6">
<div class="flex items-center mb-4">
<div class="bg-indigo-100 w-10 h-10 rounded-full flex items-center justify-center mr-3">
<i class="fas fa-robot text-indigo-600"></i>
</div>
<h2 class="text-xl font-semibold text-gray-800">AI Health Coach</h2>
</div>
<p class="text-gray-600 mb-4">Ask our AI assistant any questions about pregnancy, newborn care, or child health in your preferred language.</p>
<div class="flex space-x-3">
<button class="flex-grow bg-purple-600 text-white px-4 py-3 rounded-lg font-medium hover:bg-purple-700 flex items-center justify-center">
<i class="fas fa-comment-dots mr-2"></i> Start Chat
</button>
<button class="bg-gray-100 text-gray-700 px-4 py-3 rounded-lg font-medium hover:bg-gray-200">
<i class="fas fa-microphone"></i>
</button>
</div>
</div>
</section>
</main>
<!-- Bottom Navigation -->
<nav class="fixed bottom-0 left-0 right-0 bg-white shadow-lg border-t border-gray-200">
<div class="container mx-auto px-4">
<div class="flex justify-around">
<a href="#" class="flex flex-col items-center py-3 text-purple-600">
<i class="fas fa-home text-xl mb-1"></i>
<span class="text-xs">Home</span>
</a>
<div class="relative">
<button id="healthBtn" class="flex flex-col items-center py-3 text-gray-500 hover:text-purple-600">
<i class="fas fa-heartbeat text-xl mb-1"></i>
<span class="text-xs">Health</span>
</button>
<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">
<div class="py-1">
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-purple-50 hover:text-purple-600">
<i class="fas fa-heartbeat mr-2"></i> Pregnancy
</a>
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-purple-50 hover:text-purple-600">
<i class="fas fa-baby mr-2"></i> Newborn
</a>
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-purple-50 hover:text-purple-600">
<i class="fas fa-child mr-2"></i> Child
</a>
</div>
</div>
</div>
<div class="relative">
<button id="appointmentsBtn" class="flex flex-col items-center py-3 text-gray-500 hover:text-purple-600">
<i class="fas fa-calendar-check text-xl mb-1"></i>
<span class="text-xs">Appointments</span>
</button>
<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">
<div class="py-1">
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-purple-50 hover:text-purple-600">
<i class="fas fa-calendar-plus mr-2"></i> Schedule
</a>
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-purple-50 hover:text-purple-600">
<i class="fas fa-list-alt mr-2"></i> View All
</a>
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-purple-50 hover:text-purple-600">
<i class="fas fa-bell mr-2"></i> Reminders
</a>
</div>
</div>
</div>
<a href="#" class="flex flex-col items-center py-3 text-gray-500 hover:text-purple-600">
<i class="fas fa-bell text-xl mb-1"></i>
<span class="text-xs">Alerts</span>
</a>
</div>
</div>
</nav>
<!-- Health Menu Toggle Script -->
<script>
const healthBtn = document.getElementById('healthBtn');
const healthMenu = document.getElementById('healthMenu');
healthBtn.addEventListener('click', (e) => {
e.preventDefault();
healthMenu.classList.toggle('hidden');
// Close other menus if open
mobileMenu.classList.add('hidden');
languageMenu.classList.add('hidden');
emergencyModal.classList.add('hidden');
});
// Close health menu when clicking outside
document.addEventListener('click', (e) => {
if (!healthMenu.contains(e.target) && e.target !== healthBtn) {
healthMenu.classList.add('hidden');
}
});
</script>
<!-- Emergency Button (Floating) -->
<div class="fixed bottom-20 right-4">
<button id="emergencyBtn" class="pulse-animation bg-red-600 text-white w-14 h-14 rounded-full shadow-xl flex items-center justify-center">
<i class="fas fa-phone-alt text-xl"></i>
</button>
</div>
<!-- Emergency Modal (Hidden by default) -->
<div id="emergencyModal" class="hidden fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50">
<div class="bg-white rounded-xl p-6 w-full max-w-md mx-4">
<div class="flex justify-between items-center mb-4">
<h3 class="text-xl font-bold text-red-600">Emergency Assistance</h3>
<button id="closeEmergencyModal" class="text-gray-500 hover:text-gray-700">
<i class="fas fa-times"></i>
</button>
</div>
<p class="mb-4 text-gray-700">Please select the type of emergency:</p>
<div class="space-y-3">
<button class="w-full bg-red-100 text-red-700 px-4 py-3 rounded-lg font-medium hover:bg-red-200 flex items-center">
<i class="fas fa-baby mr-3"></i> Maternal Emergency
</button>
<button class="w-full bg-red-100 text-red-700 px-4 py-3 rounded-lg font-medium hover:bg-red-200 flex items-center">
<i class="fas fa-child mr-3"></i> Child Emergency
</button>
<button class="w-full bg-red-100 text-red-700 px-4 py-3 rounded-lg font-medium hover:bg-red-200 flex items-center">
<i class="fas fa-ambulance mr-3"></i> Call Ambulance (992)
</button>
</div>
<div class="mt-6 bg-gray-100 p-4 rounded-lg">
<p class="text-sm text-gray-700">Nearest Health Facility: <span class="font-medium">Kanyama Health Centre (2.3 km)</span></p>
</div>
</div>
</div>
<script>
// Mobile menu toggle
const menuBtn = document.getElementById('menuBtn');
const mobileMenu = document.getElementById('mobileMenu');
menuBtn.addEventListener('click', () => {
mobileMenu.classList.toggle('hidden');
languageMenu.classList.add('hidden');
});
// Language menu toggle
const languageBtn = document.getElementById('languageBtn');
const languageMenu = document.getElementById('languageMenu');
languageBtn.addEventListener('click', (e) => {
e.stopPropagation();
languageMenu.classList.toggle('hidden');
mobileMenu.classList.add('hidden');
});
// Close language menu when clicking outside
document.addEventListener('click', (e) => {
if (!languageMenu.contains(e.target) && e.target !== languageBtn) {
languageMenu.classList.add('hidden');
}
});
// Emergency button functionality
const emergencyBtn = document.getElementById('emergencyBtn');
const emergencyModal = document.getElementById('emergencyModal');
const closeEmergencyModal = document.getElementById('closeEmergencyModal');
emergencyBtn.addEventListener('click', () => {
emergencyModal.classList.remove('hidden');
});
closeEmergencyModal.addEventListener('click', () => {
emergencyModal.classList.add('hidden');
});
// Close emergency modal when clicking outside
emergencyModal.addEventListener('click', (e) => {
if (e.target === emergencyModal) {
emergencyModal.classList.add('hidden');
}
});
// Add slide-in animation to sections as they come into view
document.addEventListener('DOMContentLoaded', () => {
const sections = document.querySelectorAll('.slide-in');
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.style.opacity = '1';
}
});
}, { threshold: 0.1 });
sections.forEach(section => {
section.style.opacity = '0';
observer.observe(section);
});
});
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=dataquantals/zama-scare-app" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html> |