Spaces:
Running
Running
Download index.html from CSNET/wp-wellnet: direct link, hf CLI and curl.
- Browser
- Download file 34.5 kB
-
https://huggingface.co/spaces/CSNET/wp-wellnet/resolve/main/index.html
- Command line
-
hf download hf://spaces/CSNET/wp-wellnet/index.html
-
curl -L -o index.html https://huggingface.co/spaces/CSNET/wp-wellnet/resolve/main/index.html
34.5 kB
| <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> |