Spaces:
Running
Running
File size: 34,460 Bytes
feb7fff 192b91d feb7fff 192b91d feb7fff 192b91d feb7fff 192b91d feb7fff 192b91d feb7fff 192b91d feb7fff 192b91d feb7fff 192b91d feb7fff 192b91d feb7fff 192b91d feb7fff 192b91d feb7fff 192b91d feb7fff 192b91d feb7fff 192b91d feb7fff 192b91d feb7fff 192b91d feb7fff 192b91d feb7fff 192b91d feb7fff 192b91d feb7fff 192b91d feb7fff | 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 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 | <!DOCTYPE html>
<html lang="th">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>WP WELLNET - แพลตฟอร์มฟื้นฟูสุขภาพและชะลอวัย</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
primary: '#A5D6A7',
'primary-dark': '#81C784',
'primary-light': '#C8E6C9',
secondary: '#F5F5F5',
accent: '#4CAF50',
textDark: '#263238',
textLight: '#78909C'
},
fontFamily: {
'prompt': ['Prompt', 'sans-serif']
}
}
}
}
</script>
<link href="https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<style>
* {
font-family: 'Prompt', sans-serif;
}
.scroll-smooth {
scroll-behavior: smooth;
}
.gradient-health {
background: linear-gradient(135deg, #A5D6A7 0%, #81C784 100%);
}
.glass-effect {
background: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(10px);
}
@keyframes pulse-green {
0%, 100% { box-shadow: 0 0 0 0 rgba(165, 214, 167, 0.4); }
50% { box-shadow: 0 0 0 10px rgba(165, 214, 167, 0); }
}
.pulse-animation {
animation: pulse-green 2s infinite;
}
.hide-scrollbar {
-ms-overflow-style: none;
scrollbar-width: none;
}
.hide-scrollbar::-webkit-scrollbar {
display: none;
}
</style>
</head>
<body class="bg-gray-50 text-gray-800 scroll-smooth">
<!-- Header -->
<header class="fixed top-0 left-0 right-0 z-50 glass-effect border-b border-gray-200">
<div class="container mx-auto px-4 py-3">
<div class="flex items-center justify-between">
<div class="flex items-center space-x-3">
<div class="w-10 h-10 gradient-health rounded-full flex items-center justify-center">
<span class="text-white font-bold text-lg">WP</span>
</div>
<span class="font-semibold text-gray-800">WELLNET</span>
</div>
<div class="flex items-center space-x-4">
<button class="relative p-2" onclick="toggleNotifications()">
<i data-feather="bell" class="w-5 h-5"></i>
<span class="absolute top-1 right-1 w-2 h-2 bg-red-500 rounded-full"></span>
</button>
<button onclick="scrollToSection('profile')" class="w-10 h-10 bg-gray-200 rounded-full overflow-hidden">
<img src="https://static.photos/people/100x100/42" alt="Profile" class="w-full h-full object-cover">
</button>
</div>
</div>
</div>
</header>
<!-- Main Content -->
<main class="pt-16 pb-20">
<!-- Dashboard Section -->
<section id="dashboard" class="container mx-auto px-4 py-6">
<h1 class="text-2xl font-bold mb-6">สวัสดี, สุชาติ 👋</h1>
<!-- Biological Age Card -->
<div class="bg-white rounded-2xl p-6 shadow-sm mb-4">
<div class="flex justify-between items-center mb-4">
<h2 class="text-lg font-semibold">อายุชีวภาพของคุณ</h2>
<span class="text-sm text-gray-500">อัพเดท 2 ชั่วโมงที่แล้ว</span>
</div>
<div class="flex items-center justify-around">
<div class="text-center">
<div class="text-4xl font-bold text-gray-400">45</div>
<div class="text-sm text-gray-500 mt-1">อายุจริง</div>
</div>
<div class="text-3xl text-primary">→</div>
<div class="text-center">
<div class="text-4xl font-bold text-primary">38</div>
<div class="text-sm text-primary mt-1">อายุชีวภาพ</div>
</div>
</div>
<div class="mt-4 p-3 bg-green-50 rounded-lg">
<p class="text-sm text-green-800">🎉 ดีกว่าอายุจริง 7 ปี! รักษาสถานะนี้ต่อไป</p>
</div>
</div>
<!-- Progress Circle -->
<div class="bg-white rounded-2xl p-6 shadow-sm mb-4">
<h2 class="text-lg font-semibold mb-4">สถานะย้อนวัย</h2>
<div class="flex justify-center">
<div class="relative w-40 h-40">
<svg class="transform -rotate-90 w-40 h-40">
<circle cx="80" cy="80" r="70" stroke="#E5E7EB" stroke-width="12" fill="none"/>
<circle cx="80" cy="80" r="70" stroke="#A5D6A7" stroke-width="12" fill="none"
stroke-dasharray="440" stroke-dashoffset="88" stroke-linecap="round"/>
</svg>
<div class="absolute inset-0 flex items-center justify-center">
<div class="text-center">
<div class="text-3xl font-bold">80%</div>
<div class="text-xs text-gray-500">ถึงเป้าหมาย</div>
</div>
</div>
</div>
</div>
</div>
<!-- Summary Cards -->
<div class="grid grid-cols-2 gap-3 mb-6">
<div class="bg-green-50 border-2 border-green-200 rounded-xl p-4 shadow-sm">
<div class="flex items-center justify-between mb-2">
<i data-feather="moon" class="w-5 h-5 text-green-600"></i>
<span class="text-xs bg-green-100 text-green-700 px-2 py-1 rounded-full font-medium">ดีมาก</span>
</div>
<div class="text-2xl font-bold text-green-700">85</div>
<div class="text-xs text-green-600">Sleep Score</div>
</div>
<div class="bg-yellow-50 border-2 border-yellow-200 rounded-xl p-4 shadow-sm">
<div class="flex items-center justify-between mb-2">
<i data-feather="activity" class="w-5 h-5 text-yellow-600"></i>
<span class="text-xs bg-yellow-100 text-yellow-700 px-2 py-1 rounded-full font-medium">ปานกลาง</span>
</div>
<div class="text-2xl font-bold text-yellow-700">52</div>
<div class="text-xs text-yellow-600">HRV (ms)</div>
</div>
<div class="bg-green-50 border-2 border-green-200 rounded-xl p-4 shadow-sm">
<div class="flex items-center justify-between mb-2">
<i data-feather="zap" class="w-5 h-5 text-green-600"></i>
<span class="text-xs bg-green-100 text-green-700 px-2 py-1 rounded-full font-medium">ปกติ</span>
</div>
<div class="text-2xl font-bold text-green-700">35</div>
<div class="text-xs text-green-600">ความเครียด</div>
</div>
<div class="bg-orange-50 border-2 border-orange-200 rounded-xl p-4 shadow-sm">
<div class="flex items-center justify-between mb-2">
<i data-feather="layers" class="w-5 h-5 text-orange-600"></i>
<span class="text-xs bg-orange-100 text-orange-700 px-2 py-1 rounded-full font-medium">สูงเล็กน้อย</span>
</div>
<div class="text-2xl font-bold text-orange-700">18.5%</div>
<div class="text-xs text-orange-600">ไขมัน (%)</div>
</div>
<div class="bg-green-50 border-2 border-green-200 rounded-xl p-4 shadow-sm">
<div class="flex items-center justify-between mb-2">
<i data-feather="thermometer" class="w-5 h-5 text-green-600"></i>
<span class="text-xs bg-green-100 text-green-700 px-2 py-1 rounded-full font-medium">ปกติ</span>
</div>
<div class="text-2xl font-bold text-green-700">1,650</div>
<div class="text-xs text-green-600">BMR (kcal)</div>
</div>
<div class="bg-red-50 border-2 border-red-200 rounded-xl p-4 shadow-sm">
<div class="flex items-center justify-between mb-2">
<i data-feather="alert-circle" class="w-5 h-5 text-red-600"></i>
<span class="text-xs bg-red-100 text-red-700 px-2 py-1 rounded-full font-medium">อันตราย</span>
</div>
<div class="text-2xl font-bold text-red-700">8</div>
<div class="text-xs text-red-600">ไขมันในอวัยวะ</div>
</div>
</div>
</section>
<!-- AI Analysis Section -->
<section id="ai-analysis" class="container mx-auto px-4 py-6">
<div class="bg-gradient-to-r from-primary to-primary-dark rounded-2xl p-6 text-white">
<h2 class="text-xl font-bold mb-4">🤖 วิเคราะห์สุขภาพด้วย AI</h2>
<p class="text-sm mb-4 opacity-90">ข้อมูลล่าสุดจาก Smart Band และ MyScale</p>
<button onclick="runAIAnalysis()" class="bg-white text-primary px-6 py-3 rounded-xl font-semibold hover:bg-gray-100 transition-colors">
วิเคราะห์ใหม่
</button>
<div id="ai-results" class="mt-4 space-y-2">
<div class="bg-white bg-opacity-20 rounded-lg p-3">
<p class="text-sm">💤 ควรนอนหลับก่อน 23:00 น. เพื่อปรับปรุงคุณภาพการนอน</p>
</div>
<div class="bg-white bg-opacity-20 rounded-lg p-3">
<p class="text-sm">💊 ตรวจพบการขาดแมกนีเซียม แนะนำรับประทานเสริม MAG5</p>
</div>
<div class="bg-white bg-opacity-20 rounded-lg p-3">
<p class="text-sm">🏃 ควรออกกำลังกายแบบ Cardio 20 นาที เพื่อเพิ่ม HRV</p>
</div>
</div>
</div>
</section>
<!-- 90 Day Plan Section -->
<section id="plan" class="container mx-auto px-4 py-6">
<h2 class="text-xl font-bold mb-4">📅 แผนย้อนวัย 90 วัน</h2>
<div class="bg-white rounded-2xl p-4 shadow-sm">
<div class="flex space-x-2 mb-4 overflow-x-auto hide-scrollbar">
<button class="px-4 py-2 bg-primary text-white rounded-lg text-sm whitespace-nowrap">สัปดาห์ 1</button>
<button class="px-4 py-2 bg-gray-100 text-gray-600 rounded-lg text-sm whitespace-nowrap">สัปดาห์ 2</button>
<button class="px-4 py-2 bg-gray-100 text-gray-600 rounded-lg text-sm whitespace-nowrap">สัปดาห์ 3</button>
<button class="px-4 py-2 bg-gray-100 text-gray-600 rounded-lg text-sm whitespace-nowrap">สัปดาห์ 4</button>
</div>
<div class="space-y-3">
<div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg">
<div class="flex items-center space-x-3">
<input type="checkbox" class="w-5 h-5 text-primary rounded" checked>
<div>
<p class="font-medium text-sm">ทานวิตามิน ADEK</p>
<p class="text-xs text-gray-500">เช้า หลังอาหาร</p>
</div>
</div>
<span class="text-xs bg-green-100 text-green-600 px-2 py-1 rounded">ทำแล้ว</span>
</div>
<div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg">
<div class="flex items-center space-x-3">
<input type="checkbox" class="w-5 h-5 text-primary rounded">
<div>
<p class="font-medium text-sm">วิ่งจ๊อกกิ้ง 20 นาที</p>
<p class="text-xs text-gray-500">ความเร็ว 6-8 km/h</p>
</div>
</div>
<span class="text-xs bg-gray-100 text-gray-600 px-2 py-1 rounded">รอดำเนินการ</span>
</div>
<div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg">
<div class="flex items-center space-x-3">
<input type="checkbox" class="w-5 h-5 text-primary rounded">
<div>
<p class="font-medium text-sm">งดของหวาน</p>
<p class="text-xs text-gray-500">ทั้งวัน</p>
</div>
</div>
<span class="text-xs bg-gray-100 text-gray-600 px-2 py-1 rounded">รอดำเนินการ</span>
</div>
</div>
<div class="mt-4">
<div class="flex justify-between text-sm mb-1">
<span>ความสำเร็จวันนี้</span>
<span class="font-semibold">33%</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-2">
<div class="bg-primary h-2 rounded-full" style="width: 33%"></div>
</div>
</div>
</div>
</section>
<!-- Health Graphs Section -->
<section id="graphs" class="container mx-auto px-4 py-6">
<h2 class="text-xl font-bold mb-4">📈 กราฟติดตามสุขภาพ</h2>
<div class="flex space-x-2 mb-4 overflow-x-auto hide-scrollbar">
<button onclick="changeTimeRange('7')" class="time-btn px-4 py-2 bg-primary text-white rounded-lg text-sm whitespace-nowrap">7 วัน</button>
<button onclick="changeTimeRange('30')" class="time-btn px-4 py-2 bg-gray-100 text-gray-600 rounded-lg text-sm whitespace-nowrap">30 วัน</button>
<button onclick="changeTimeRange('90')" class="time-btn px-4 py-2 bg-gray-100 text-gray-600 rounded-lg text-sm whitespace-nowrap">90 วัน</button>
</div>
<div class="space-y-4">
<div class="bg-white rounded-xl p-4 shadow-sm">
<h3 class="font-semibold mb-3">HRV (ms)</h3>
<canvas id="hrvChart" class="w-full h-32"></canvas>
</div>
<div class="bg-white rounded-xl p-4 shadow-sm">
<h3 class="font-semibold mb-3">ระยะเวลาการนอน (ชั่วโมง)</h3>
<canvas id="sleepChart" class="w-full h-32"></canvas>
</div>
<div class="bg-white rounded-xl p-4 shadow-sm">
<h3 class="font-semibold mb-3">น้ำหนัก (กก.)</h3>
<canvas id="weightChart" class="w-full h-32"></canvas>
</div>
</div>
</section>
<!-- Product Recommendations Section -->
<section id="products" class="container mx-auto px-4 py-6">
<h2 class="text-xl font-bold mb-4">🛍️ แนะนำสินค้าอัจฉริยะ</h2>
<div class="space-y-4">
<div class="bg-white rounded-xl p-4 shadow-sm">
<div class="flex items-start space-x-3">
<img src="https://static.photos/health/80x80/1" alt="Product" class="w-20 h-20 rounded-lg object-cover">
<div class="flex-1">
<h3 class="font-semibold">BioAge Pack 1</h3>
<p class="text-sm text-gray-500 mt-1">ADEK + NMN + MAG5</p>
<p class="text-xs text-green-600 mt-1">✨ เหมาะกับคุณ 100%</p>
<div class="flex items-center justify-between mt-3">
<span class="text-lg font-bold text-primary">฿2,990</span>
<div class="space-x-2">
<button class="px-3 py-1 bg-gray-100 text-gray-600 rounded-lg text-sm">ดูรายละเอียด</button>
<button class="px-3 py-1 bg-primary text-white rounded-lg text-sm">สั่งซื้อทันที</button>
</div>
</div>
</div>
</div>
</div>
<div class="bg-white rounded-xl p-4 shadow-sm">
<div class="flex items-start space-x-3">
<img src="https://static.photos/health/80x80/2" alt="Product" class="w-20 h-20 rounded-lg object-cover">
<div class="flex-1">
<h3 class="font-semibold">Deep Sleep Support</h3>
<p class="text-sm text-gray-500 mt-1">เสริมคุณภาพการนอนหลับ</p>
<p class="text-xs text-blue-600 mt-1">💤 HRV ของคุณต่ำ</p>
<div class="flex items-center justify-between mt-3">
<span class="text-lg font-bold text-primary">฿1,490</span>
<div class="space-x-2">
<button class="px-3 py-1 bg-gray-100 text-gray-600 rounded-lg text-sm">ดูรายละเอียด</button>
<button class="px-3 py-1 bg-primary text-white rounded-lg text-sm">สั่งซื้อทันที</button>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Repeat Purchase Section -->
<section id="repeat" class="container mx-auto px-4 py-6">
<h2 class="text-xl font-bold mb-4">🔁 สินค้าที่สั่งประจำ</h2>
<div class="bg-gradient-to-r from-blue-50 to-green-50 rounded-xl p-4">
<div class="flex items-center justify-between mb-4">
<h3 class="font-semibold">NMN 250mg</h3>
<span class="text-xs bg-orange-100 text-orange-600 px-2 py-1 rounded">จะหมดใน 5 วัน</span>
</div>
<div class="flex items-center justify-between">
<div>
<p class="text-sm text-gray-600">สั่งซื้อทุก 30 วัน</p>
<p class="text-xs text-gray-500 mt-1">ครั้งล่าสุด: 15 พ.ย. 2023</p>
</div>
<button onclick="quickReorder()" class="bg-primary text-white px-4 py-2 rounded-lg text-sm font-medium pulse-animation">
สั่งซ้ำ 1 คลิก
</button>
</div>
</div>
</section>
<!-- Gamification Section -->
<section id="gamification" class="container mx-auto px-4 py-6">
<h2 class="text-xl font-bold mb-4">🏆 เกมสุขภาพ</h2>
<div class="bg-white rounded-xl p-4 shadow-sm mb-4">
<h3 class="font-semibold mb-3">Leaderboard สัปดาห์นี้</h3>
<div class="space-y-2">
<div class="flex items-center justify-between p-2">
<div class="flex items-center space-x-3">
<span class="text-lg">🥇</span>
<img src="https://static.photos/people/40x40/1" class="w-10 h-10 rounded-full">
<div>
<p class="font-medium text-sm">มานี</p>
<p class="text-xs text-gray-500">ลด 9 ปี</p>
</div>
</div>
<span class="text-sm font-semibold text-primary">2,450 คะแนน</span>
</div>
<div class="flex items-center justify-between p-2">
<div class="flex items-center space-x-3">
<span class="text-lg">🥈</span>
<img src="https://static.photos/people/40x40/2" class="w-10 h-10 rounded-full">
<div>
<p class="font-medium text-sm">สมชาย</p>
<p class="text-xs text-gray-500">ลด 7 ปี</p>
</div>
</div>
<span class="text-sm font-semibold text-primary">2,120 คะแนน</span>
</div>
<div class="flex items-center justify-between p-2 bg-primary bg-opacity-10 rounded-lg">
<div class="flex items-center space-x-3">
<span class="text-lg">5</span>
<img src="https://static.photos/people/40x40/42" class="w-10 h-10 rounded-full">
<div>
<p class="font-medium text-sm">คุณ</p>
<p class="text-xs text-gray-500">ลด 7 ปี</p>
</div>
</div>
<span class="text-sm font-semibold text-primary">1,850 คะแนน</span>
</div>
</div>
</div>
<div class="bg-white rounded-xl p-4 shadow-sm">
<h3 class="font-semibold mb-3">เหรียญรางวัลของคุณ</h3>
<div class="grid grid-cols-4 gap-3">
<div class="text-center">
<div class="w-16 h-16 bg-purple-100 rounded-full flex items-center justify-center mx-auto mb-1">
<span class="text-2xl">🌙</span>
</div>
<p class="text-xs">Sleep Master</p>
</div>
<div class="text-center">
<div class="w-16 h-16 bg-red-100 rounded-full flex items-center justify-center mx-auto mb-1">
<span class="text-2xl">❤️</span>
</div>
<p class="text-xs">HRV Hero</p>
</div>
<div class="text-center">
<div class="w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-1">
<span class="text-2xl">💪</span>
</div>
<p class="text-xs">Bio-Warrior</p>
</div>
<div class="text-center opacity-50">
<div class="w-16 h-16 bg-gray-100 rounded-full flex items-center justify-center mx-auto mb-1">
<span class="text-2xl">🏃</span>
</div>
<p class="text-xs">Runner</p>
</div>
</div>
</div>
</section>
<!-- BioCoach Section -->
<section id="coach" class="container mx-auto px-4 py-6">
<h2 class="text-xl font-bold mb-4">🧑⚕️ ปรึกษา BioCoach</h2>
<div class="bg-gradient-to-r from-purple-500 to-pink-500 rounded-xl p-4 text-white">
<div class="flex items-center space-x-4 mb-4">
<img src="https://static.photos/people/80x80/3" class="w-20 h-20 rounded-full border-3 border-white">
<div>
<h3 class="font-semibold text-lg">ดร.วรรณี จันทร์เพ็ญ</h3>
<p class="text-sm opacity-90">BioCoach ผู้เชี่ยวชาญระดับ Platinum</p>
<div class="flex items-center mt-1">
<span class="text-yellow-300">★★★★★</span>
<span class="text-xs ml-2 opacity-90">(4.9/5.0)</span>
</div>
</div>
</div>
<p class="text-sm mb-4 opacity-90">ประสบการณ์ 15 ปีด้านการฟื้นฟูสุขภาพและชะลอวัย</p>
<div class="grid grid-cols-2 gap-3">
<button onclick="startChat()" class="bg-white text-purple-600 px-4 py-3 rounded-lg font-semibold text-center">
💬 เริ่มแชท
</button>
<button onclick="startVideoCall()" class="bg-purple-600 text-white px-4 py-3 rounded-lg font-semibold text-center">
📹 วิดีโอคอล
</button>
</div>
</div>
</section>
<!-- Profile Section -->
<section id="profile" class="container mx-auto px-4 py-6">
<h2 class="text-xl font-bold mb-4">👤 โปรไฟล์ของฉัน</h2>
<div class="bg-white rounded-xl p-4 shadow-sm mb-4">
<div class="flex items-center space-x-4 mb-4">
<img src="https://static.photos/people/100x100/42" class="w-20 h-20 rounded-full">
<div>
<h3 class="font-semibold text-lg">สุชาติ ใจดี</h3>
<p class="text-sm text-gray-500">สมาชิกตั้งแต่ ม.ค. 2023</p>
<span class="inline-block mt-1 px-2 py-1 bg-primary text-white text-xs rounded-full">Premium Member</span>
</div>
</div>
<div class="grid grid-cols-2 gap-4">
<div>
<p class="text-xs text-gray-500">อายุ</p>
<p class="font-semibold">45 ปี</p>
</div>
<div>
<p class="text-xs text-gray-500">เป้าหมาย</p>
<p class="font-semibold">ลดอายุชีวภาพ 10 ปี</p>
</div>
<div>
<p class="text-xs text-gray-500">ส่วนสูง</p>
<p class="font-semibold">175 ซม.</p>
</div>
<div>
<p class="text-xs text-gray-500">น้ำหนัก</p>
<p class="font-semibold">75 กก.</p>
</div>
</div>
</div>
<div class="bg-white rounded-xl p-4 shadow-sm mb-4">
<h3 class="font-semibold mb-3">ประวัติการสั่งซื้อ</h3>
<div class="space-y-2">
<div class="flex items-center justify-between py-2 border-b">
<div>
<p class="text-sm font-medium">BioAge Pack 1</p>
<p class="text-xs text-gray-500">25 พ.ย. 2023</p>
</div>
<span class="text-sm font-semibold">฿2,990</span>
</div>
<div class="flex items-center justify-between py-2 border-b">
<div>
<p class="text-sm font-medium">NMN 250mg</p>
<p class="text-xs text-gray-500">15 พ.ย. 2023</p>
</div>
<span class="text-sm font-semibold">฿3,490</span>
</div>
</div>
</div>
<div class="bg-white rounded-xl p-4 shadow-sm">
<h3 class="font-semibold mb-3">สถิติการใช้งาน</h3>
<div class="grid grid-cols-2 gap-4">
<div class="text-center p-3 bg-gray-50 rounded-lg">
<p class="text-2xl font-bold text-primary">28</p>
<p class="text-xs text-gray-500">วันติดต่อ</p>
</div>
<div class="text-center p-3 bg-gray-50 rounded-lg">
<p class="text-2xl font-bold text-primary">85%</p>
<p class="text-xs text-gray-500">ทำภารกิจสำเร็จ</p>
</div>
<div class="text-center p-3 bg-gray-50 rounded-lg">
<p class="text-2xl font-bold text-primary">12</p>
<p class="text-xs text-gray-500">ครั้งปรึกษาโค้ช</p>
</div>
<div class="text-center p-3 bg-gray-50 rounded-lg">
<p class="text-2xl font-bold text-primary">1,850</p>
<p class="text-xs text-gray-500">คะแนนสะสม</p>
</div>
</div>
</div>
</section>
</main>
<!-- Bottom Navigation -->
<nav class="fixed bottom-0 left-0 right-0 bg-white border-t border-gray-200 z-40">
<div class="container mx-auto px-4">
<div class="flex justify-around py-2">
<button onclick="scrollToSection('dashboard')" class="flex flex-col items-center p-2 text-primary">
<i data-feather="home" class="w-5 h-5"></i>
<span class="text-xs mt-1">หน้าหลัก</span>
</button>
<button onclick="scrollToSection('plan')" class="flex flex-col items-center p-2 text-gray-500">
<i data-feather="calendar" class="w-5 h-5"></i>
<span class="text-xs mt-1">แผน</span>
</button>
<button onclick="scrollToSection('graphs')" class="flex flex-col items-center p-2 text-gray-500">
<i data-feather="bar-chart-2" class="w-5 h-5"></i>
<span class="text-xs mt-1">กราฟ</span>
</button>
<button onclick="scrollToSection('coach')" class="flex flex-col items-center p-2 text-gray-500">
<i data-feather="users" class="w-5 h-5"></i>
<span class="text-xs mt-1">โค้ช</span>
</button>
<button onclick="scrollToSection('profile')" class="flex flex-col items-center p-2 text-gray-500">
<i data-feather="user" class="w-5 h-5"></i>
<span class="text-xs mt-1">โปรไฟล์</span>
</button>
</div>
</div>
</nav>
<!-- Chat Modal -->
<div id="chatModal" class="fixed inset-0 bg-black bg-opacity-50 z-50 hidden">
<div class="absolute bottom-0 left-0 right-0 bg-white rounded-t-3xl p-4 max-h-[80vh] overflow-y-auto">
<div class="flex justify-between items-center mb-4">
<h3 class="font-semibold text-lg">แชทกับ BioCoach</h3>
<button onclick="closeChat()" class="p-2">
<i data-feather="x" class="w-5 h-5"></i>
</button>
</div>
<div class="space-y-3 mb-4">
<div class="bg-gray-100 rounded-lg p-3 max-w-[80%]">
<p class="text-sm">สวัสดีครับคุณสุชาติ! มีอะไรให้ช่วยไหม?</p>
</div>
<div class="bg-primary text-white rounded-lg p-3 max-w-[80%] ml-auto">
<p class="text-sm">อยากปรับปรุงคุณภาพการนอนครับ</p>
</div>
</div>
<div class="flex space-x-2">
<input type="text" placeholder="พิมพ์ข้อความ..." class="flex-1 px-4 py-2 border rounded-lg">
<button class="bg-primary text-white px-4 py-2 rounded-lg">
<i data-feather="send" class="w-5 h-5"></i>
</button>
</div>
</div>
</div>
<script src="script.js"></script>
<script>feather.replace();</script>
</body>
</html> |