Spaces:
Running
Running
File size: 25,229 Bytes
8ac3450 | 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 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Be Fit - Weight Management 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>
.gradient-bg {
background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
}
.progress-ring__circle {
transition: stroke-dashoffset 0.35s;
transform: rotate(-90deg);
transform-origin: 50% 50%;
}
.food-card:hover {
transform: translateY(-5px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.animate-pulse-slow {
animation: pulse 3s infinite;
}
@keyframes pulse {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.7;
}
}
</style>
</head>
<body class="bg-gray-50 font-sans">
<!-- Header -->
<header class="gradient-bg text-white shadow-lg">
<div class="container mx-auto px-4 py-6">
<div class="flex justify-between items-center">
<div class="flex items-center space-x-2">
<i class="fas fa-heartbeat text-3xl"></i>
<h1 class="text-2xl font-bold">Be Fit</h1>
</div>
<div class="flex items-center space-x-4">
<button id="profileBtn" class="bg-white text-green-600 px-4 py-2 rounded-full font-semibold shadow-md hover:bg-gray-100 transition">
<i class="fas fa-user mr-2"></i>Profile
</button>
</div>
</div>
</div>
</header>
<!-- Main Content -->
<main class="container mx-auto px-4 py-8">
<!-- Dashboard Overview -->
<section class="mb-12">
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
<!-- Goal Card -->
<div class="bg-white rounded-xl shadow-md p-6">
<div class="flex items-center justify-between mb-4">
<h2 class="text-xl font-semibold text-gray-800">Your Goal</h2>
<span id="goalType" class="px-3 py-1 rounded-full text-xs font-semibold bg-green-100 text-green-800">Weight Loss</span>
</div>
<div class="flex items-center justify-between">
<div>
<p class="text-gray-600 mb-1">Current Weight</p>
<p class="text-2xl font-bold">68<span class="text-lg">kg</span></p>
</div>
<div class="text-center">
<p class="text-gray-600 mb-1">Target Weight</p>
<p class="text-2xl font-bold">62<span class="text-lg">kg</span></p>
</div>
<div class="text-right">
<p class="text-gray-600 mb-1">Remaining</p>
<p class="text-2xl font-bold">6<span class="text-lg">kg</span></p>
</div>
</div>
<div class="mt-4">
<div class="w-full bg-gray-200 rounded-full h-2.5">
<div class="bg-green-500 h-2.5 rounded-full" style="width: 45%"></div>
</div>
<p class="text-xs text-gray-500 mt-1">45% of your goal achieved</p>
</div>
</div>
<!-- Calorie Intake Card -->
<div class="bg-white rounded-xl shadow-md p-6">
<h2 class="text-xl font-semibold text-gray-800 mb-4">Daily Calories</h2>
<div class="flex justify-center mb-4">
<div class="relative w-32 h-32">
<svg class="w-full h-full" viewBox="0 0 100 100">
<circle class="text-gray-200" stroke-width="8" stroke="currentColor" fill="transparent" r="40" cx="50" cy="50" />
<circle class="text-green-500 progress-ring__circle" stroke-width="8" stroke-linecap="round" stroke="currentColor" fill="transparent" r="40" cx="50" cy="50" stroke-dasharray="251.2" stroke-dashoffset="100.48" />
</svg>
<div class="absolute inset-0 flex items-center justify-center flex-col">
<span class="text-2xl font-bold">1,200</span>
<span class="text-xs text-gray-500">kcal</span>
</div>
</div>
</div>
<div class="text-center">
<p class="text-sm text-gray-600">Consumed <span class="font-semibold">1,200</span> of <span class="font-semibold">1,800</span> kcal</p>
<p class="text-xs text-green-600 mt-1">600 kcal remaining</p>
</div>
</div>
<!-- Macronutrients Card -->
<div class="bg-white rounded-xl shadow-md p-6">
<h2 class="text-xl font-semibold text-gray-800 mb-4">Macronutrients</h2>
<div class="space-y-3">
<div>
<div class="flex justify-between text-sm mb-1">
<span class="text-gray-600">Protein</span>
<span class="font-semibold">45g / 90g</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-2">
<div class="bg-blue-500 h-2 rounded-full" style="width: 50%"></div>
</div>
</div>
<div>
<div class="flex justify-between text-sm mb-1">
<span class="text-gray-600">Carbs</span>
<span class="font-semibold">120g / 150g</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-2">
<div class="bg-yellow-500 h-2 rounded-full" style="width: 80%"></div>
</div>
</div>
<div>
<div class="flex justify-between text-sm mb-1">
<span class="text-gray-600">Fats</span>
<span class="font-semibold">40g / 60g</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-2">
<div class="bg-red-500 h-2 rounded-full" style="width: 66%"></div>
</div>
</div>
</div>
<button class="mt-4 w-full bg-green-500 hover:bg-green-600 text-white py-2 rounded-lg font-medium transition">
View Details
</button>
</div>
</div>
</section>
<!-- Food Diary Section -->
<section class="mb-12">
<div class="bg-white rounded-xl shadow-md overflow-hidden">
<div class="px-6 py-4 border-b border-gray-200">
<div class="flex justify-between items-center">
<h2 class="text-xl font-semibold text-gray-800">Today's Food Diary</h2>
<button id="addFoodBtn" class="bg-green-500 hover:bg-green-600 text-white px-4 py-2 rounded-lg font-medium transition flex items-center">
<i class="fas fa-plus mr-2"></i> Add Food
</button>
</div>
<p class="text-sm text-gray-500 mt-1">June 15, 2023</p>
</div>
<div class="divide-y divide-gray-200">
<!-- Breakfast -->
<div class="p-6">
<div class="flex justify-between items-center mb-3">
<h3 class="text-lg font-medium text-gray-800 flex items-center">
<i class="fas fa-sun mr-2 text-yellow-500"></i> Breakfast
</h3>
<span class="text-sm font-medium text-gray-600">450 kcal</span>
</div>
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
<div class="food-card bg-gray-50 rounded-lg p-4 transition cursor-pointer">
<div class="flex justify-between">
<div>
<h4 class="font-medium">Oatmeal</h4>
<p class="text-sm text-gray-500">1 bowl (50g)</p>
</div>
<span class="text-sm font-medium">150 kcal</span>
</div>
</div>
<div class="food-card bg-gray-50 rounded-lg p-4 transition cursor-pointer">
<div class="flex justify-between">
<div>
<h4 class="font-medium">Banana</h4>
<p class="text-sm text-gray-500">1 medium (118g)</p>
</div>
<span class="text-sm font-medium">105 kcal</span>
</div>
</div>
<div class="food-card bg-gray-50 rounded-lg p-4 transition cursor-pointer">
<div class="flex justify-between">
<div>
<h4 class="font-medium">Almond Milk</h4>
<p class="text-sm text-gray-500">1 cup (240ml)</p>
</div>
<span class="text-sm font-medium">60 kcal</span>
</div>
</div>
</div>
</div>
<!-- Lunch -->
<div class="p-6">
<div class="flex justify-between items-center mb-3">
<h3 class="text-lg font-medium text-gray-800 flex items-center">
<i class="fas fa-sun mr-2 text-orange-500"></i> Lunch
</h3>
<span class="text-sm font-medium text-gray-600">620 kcal</span>
</div>
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
<div class="food-card bg-gray-50 rounded-lg p-4 transition cursor-pointer">
<div class="flex justify-between">
<div>
<h4 class="font-medium">Grilled Chicken</h4>
<p class="text-sm text-gray-500">1 breast (200g)</p>
</div>
<span class="text-sm font-medium">330 kcal</span>
</div>
</div>
<div class="food-card bg-gray-50 rounded-lg p-4 transition cursor-pointer">
<div class="flex justify-between">
<div>
<h4 class="font-medium">Brown Rice</h4>
<p class="text-sm text-gray-500">1/2 cup cooked (100g)</p>
</div>
<span class="text-sm font-medium">110 kcal</span>
</div>
</div>
<div class="food-card bg-gray-50 rounded-lg p-4 transition cursor-pointer">
<div class="flex justify-between">
<div>
<h4 class="font-medium">Steamed Vegetables</h4>
<p class="text-sm text-gray-500">1 cup (150g)</p>
</div>
<span class="text-sm font-medium">180 kcal</span>
</div>
</div>
</div>
</div>
<!-- Dinner -->
<div class="p-6">
<div class="flex justify-between items-center mb-3">
<h3 class="text-lg font-medium text-gray-800 flex items-center">
<i class="fas fa-moon mr-2 text-indigo-500"></i> Dinner
</h3>
<span class="text-sm font-medium text-gray-600">350 kcal</span>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
<div class="food-card bg-gray-50 rounded-lg p-4 transition cursor-pointer">
<div class="flex justify-between">
<div>
<h4 class="font-medium">Salmon</h4>
<p class="text-sm text-gray-500">1 fillet (150g)</p>
</div>
<span class="text-sm font-medium">280 kcal</span>
</div>
</div>
<div class="food-card bg-gray-50 rounded-lg p-4 transition cursor-pointer">
<div class="flex justify-between">
<div>
<h4 class="font-medium">Asparagus</h4>
<p class="text-sm text-gray-500">1/2 cup (90g)</p>
</div>
<span class="text-sm font-medium">70 kcal</span>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Meal Plan Section -->
<section class="mb-12">
<div class="bg-white rounded-xl shadow-md overflow-hidden">
<div class="px-6 py-4 border-b border-gray-200">
<h2 class="text-xl font-semibold text-gray-800">Your Weekly Meal Plan</h2>
<p class="text-sm text-gray-500 mt-1">Personalized for your weight loss goals</p>
</div>
<div class="p-6">
<div class="flex overflow-x-auto pb-4 space-x-4">
<!-- Monday -->
<div class="flex-shrink-0 w-64 bg-green-50 rounded-lg p-4">
<h3 class="font-medium text-green-800 mb-3">Monday</h3>
<div class="space-y-3">
<div class="bg-white rounded p-3">
<p class="text-sm font-medium">Breakfast</p>
<p class="text-xs text-gray-600">Oatmeal, berries, almond milk</p>
<p class="text-xs text-green-600 mt-1">450 kcal</p>
</div>
<div class="bg-white rounded p-3">
<p class="text-sm font-medium">Lunch</p>
<p class="text-xs text-gray-600">Grilled chicken, quinoa, veggies</p>
<p class="text-xs text-green-600 mt-1">550 kcal</p>
</div>
<div class="bg-white rounded p-3">
<p class="text-sm font-medium">Dinner</p>
<p class="text-xs text-gray-600">Baked salmon, asparagus</p>
<p class="text-xs text-green-600 mt-1">400 kcal</p>
</div>
</div>
</div>
<!-- Tuesday -->
<div class="flex-shrink-0 w-64 bg-green-50 rounded-lg p-4">
<h3 class="font-medium text-green-800 mb-3">Tuesday</h3>
<div class="space-y-3">
<div class="bg-white rounded p-3">
<p class="text-sm font-medium">Breakfast</p>
<p class="text-xs text-gray-600">Greek yogurt, granola, honey</p>
<p class="text-xs text-green-600 mt-1">400 kcal</p>
</div>
<div class="bg-white rounded p-3">
<p class="text-sm font-medium">Lunch</p>
<p class="text-xs text-gray-600">Turkey wrap, side salad</p>
<p class="text-xs text-green-600 mt-1">500 kcal</p>
</div>
<div class="bg-white rounded p-3">
<p class="text-sm font-medium">Dinner</p>
<p class="text-xs text-gray-600">Stir-fry tofu with vegetables</p>
<p class="text-xs text-green-600 mt-1">450 kcal</p>
</div>
</div>
</div>
<!-- Wednesday -->
<div class="flex-shrink-0 w-64 bg-green-50 rounded-lg p-4">
<h3 class="font-medium text-green-800 mb-3">Wednesday</h3>
<div class="space-y-3">
<div class="bg-white rounded p-3">
<p class="text-sm font-medium">Breakfast</p>
<p class="text-xs text-gray-600">Smoothie bowl</p>
<p class="text-xs text-green-600 mt-1">350 kcal</p>
</div>
<div class="bg-white rounded p-3">
<p class="text-sm font-medium">Lunch</p>
<p class="text-xs text-gray-600">Grilled shrimp, brown rice</p>
<p class="text-xs text-green-600 mt-1">500 kcal</p>
</div>
<div class="bg-white rounded p-3">
<p class="text-sm font-medium">Dinner</p>
<p class="text-xs text-gray-600">Chicken soup, whole grain bread</p>
<p class="text-xs text-green-600 mt-1">400 kcal</p>
</div>
</div>
</div>
</div>
</div>
<div class="px-6 py-4 bg-gray-50">
<button class="w-full bg-white hover:bg-gray-100 text-green-600 border border-green-600 py-2 rounded-lg font-medium transition">
View Full Meal Plan
</button>
</div>
</div>
</section>
<!-- Water Intake Section -->
<section class="mb-12">
<div class="bg-white rounded-xl shadow-md p-6">
<div class="flex justify-between items-center mb-6">
<h2 class="text-xl font-semibold text-gray-800">Water Intake</h2>
<div class="text-right">
<p class="text-sm text-gray-600">Today's Goal: <span class="font-semibold">2.5L</span></p>
<p class="text-sm text-blue-600">1.2L consumed</p>
</div>
</div>
<div class="grid grid-cols-2 md:grid-cols-4 gap-4">
<div class="bg-blue-50 rounded-lg p-4 text-center">
<div class="w-16 h-16 mx-auto mb-2 rounded-full bg-blue-100 flex items-center justify-center">
<i class="fas fa-glass-water text-blue-500 text-2xl"></i>
</div>
<p class="font-medium">Morning</p>
<p class="text-xs text-gray-600">500ml</p>
</div>
<div class="bg-blue-50 rounded-lg p-4 text-center">
<div class="w-16 h-16 mx-auto mb-2 rounded-full bg-blue-100 flex items-center justify-center">
<i class="fas fa-glass-water text-blue-500 text-2xl"></i>
</div>
<p class="font-medium">Noon</p>
<p class="text-xs text-gray-600">300ml</p>
</div>
<div class="bg-blue-50 rounded-lg p-4 text-center">
<div class="w-16 h-16 mx-auto mb-2 rounded-full bg-blue-100 flex items-center justify-center">
<i class="fas fa-glass-water text-blue-500 text-2xl"></i>
</div>
<p class="font-medium">Afternoon</p>
<p class="text-xs text-gray-600">400ml</p>
</div>
<div class="bg-blue-50 rounded-lg p-4 text-center">
<div class="w-16 h-16 mx-auto mb-2 rounded-full bg-blue-100 flex items-center justify-center">
<i class="fas fa-glass-water text-blue-500 text-2xl"></i>
</div>
<p class="font-medium">Evening</p>
<p class="text-xs text-gray-600">0ml</p>
</div>
</div>
<div class="mt-6">
<button class="w-full bg-blue-500 hover:bg-blue-600 text-white py-3 rounded-lg font-medium transition flex items-center justify-center">
<i class="fas fa-plus mr-2"></i> Add Water Intake
</button>
</div>
</div>
</section>
<!-- Progress Tracking -->
<section>
<div class="bg-white rounded-xl shadow-md p-6">
<h2 class="text-xl font-semibold text-gray-800 mb-6">Weight Progress</h2>
<div class="h-64">
<!-- Chart placeholder (would be implemented with a chart library in a real app) -->
<div class="w-full h-full bg-gray-100 rounded-lg flex items-center justify-center text-gray-400">
<p>Weight progress chart would appear here</p>
</div>
</div>
<div class="mt-6 grid grid-cols-1 md:grid-cols-3 gap-4">
<div class="bg-green-50 rounded-lg p-4">
<p class="text-sm text-gray-600">Starting Weight</p>
<p class="text-2xl font-bold">72<span class="text-lg">kg</span></p>
</div>
<div class="bg-green-50 rounded-lg p-4">
<p class="text-sm text-gray-600">Current Weight</p>
<p class="text-2xl font-bold">68<span class="text-lg">kg</span></p>
</div>
<div class="bg-green-50 rounded-lg p-4">
<p class="text-sm text-gray-600">Total Lost</p>
<p class="text-2xl font-bold">4<span class="text-lg">kg</span></p>
</div>
</div>
<div class="mt-6">
<button class="w-full bg-white hover:bg-gray-100 text-green-600 border border-green-600 py-2 rounded-lg font-medium transition">
Log New Weight
</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="
</html> |