เขียนmobile แอพ Whoop mobile มีพฤติกรรมให้ติดตามมากกว่า 160 รายการในแอป
Browse files- README.md +8 -5
- index.html +777 -19
README.md
CHANGED
|
@@ -1,10 +1,13 @@
|
|
| 1 |
---
|
| 2 |
-
title: Whoop
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Whoop โปรแอปสุขภาพ 💪
|
| 3 |
+
colorFrom: red
|
| 4 |
+
colorTo: pink
|
| 5 |
+
emoji: 🐳
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite-v3
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# Welcome to your new DeepSite project!
|
| 13 |
+
This project was created with [DeepSite](https://huggingface.co/deepsite).
|
index.html
CHANGED
|
@@ -1,19 +1,777 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="th">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
| 6 |
+
<title>Whoop Thailand - ติดตามสุขภาพ 24 ชั่วโมง</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 9 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 10 |
+
<style>
|
| 11 |
+
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700&display=swap');
|
| 12 |
+
|
| 13 |
+
* {
|
| 14 |
+
font-family: 'Kanit', sans-serif;
|
| 15 |
+
}
|
| 16 |
+
|
| 17 |
+
.gradient-bg {
|
| 18 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
.card-shadow {
|
| 22 |
+
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
.health-metric-card {
|
| 26 |
+
transition: all 0.3s ease;
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
.health-metric-card:hover {
|
| 30 |
+
transform: translateY(-2px);
|
| 31 |
+
box-shadow: 0 10px 20px rgba(0,0,0,0.1);
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
.progress-ring {
|
| 35 |
+
transform: rotate(-90deg);
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
.tab-active {
|
| 39 |
+
border-bottom: 3px solid #667eea;
|
| 40 |
+
color: #667eea;
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
.scroll-hidden::-webkit-scrollbar {
|
| 44 |
+
display: none;
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
.scroll-hidden {
|
| 48 |
+
-ms-overflow-style: none;
|
| 49 |
+
scrollbar-width: none;
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
+
@keyframes pulse-dot {
|
| 53 |
+
0%, 60%, 100% {
|
| 54 |
+
opacity: 0.3;
|
| 55 |
+
}
|
| 56 |
+
30% {
|
| 57 |
+
opacity: 1;
|
| 58 |
+
}
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
.pulse-dot {
|
| 62 |
+
animation: pulse-dot 2s infinite;
|
| 63 |
+
}
|
| 64 |
+
|
| 65 |
+
.metric-trend-up {
|
| 66 |
+
color: #10b981;
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
.metric-trend-down {
|
| 70 |
+
color: #ef4444;
|
| 71 |
+
}
|
| 72 |
+
|
| 73 |
+
.metric-trend-neutral {
|
| 74 |
+
color: #6b7280;
|
| 75 |
+
}
|
| 76 |
+
</style>
|
| 77 |
+
</head>
|
| 78 |
+
<body class="bg-gray-50">
|
| 79 |
+
<!-- Mobile Container -->
|
| 80 |
+
<div class="max-w-md mx-auto bg-white min-h-screen relative">
|
| 81 |
+
|
| 82 |
+
<!-- Header -->
|
| 83 |
+
<div class="gradient-bg text-white p-4 pb-6">
|
| 84 |
+
<div class="flex justify-between items-center mb-4">
|
| 85 |
+
<div class="flex items-center space-x-2">
|
| 86 |
+
<div class="w-10 h-10 bg-white rounded-full flex items-center justify-center">
|
| 87 |
+
<span class="text-purple-600 font-bold text-xl">W</span>
|
| 88 |
+
</div>
|
| 89 |
+
<div>
|
| 90 |
+
<h1 class="text-lg font-semibold">Whoop</h1>
|
| 91 |
+
<p class="text-xs opacity-90">สวัสดี, สมชาย 👋</p>
|
| 92 |
+
</div>
|
| 93 |
+
</div>
|
| 94 |
+
<div class="flex items-center space-x-3">
|
| 95 |
+
<button onclick="showNotifications()" class="relative">
|
| 96 |
+
<i data-feather="bell" class="w-5 h-5"></i>
|
| 97 |
+
<span class="absolute -top-1 -right-1 w-2 h-2 bg-red-500 rounded-full pulse-dot"></span>
|
| 98 |
+
</button>
|
| 99 |
+
<button onclick="showProfile()">
|
| 100 |
+
<img src="http://static.photos/people/40x40/45" alt="Profile" class="w-8 h-8 rounded-full border-2 border-white">
|
| 101 |
+
</button>
|
| 102 |
+
</div>
|
| 103 |
+
</div>
|
| 104 |
+
|
| 105 |
+
<!-- Score Overview -->
|
| 106 |
+
<div class="bg-white/20 backdrop-blur rounded-2xl p-4">
|
| 107 |
+
<div class="grid grid-cols-3 gap-4 text-center">
|
| 108 |
+
<div>
|
| 109 |
+
<p class="text-2xl font-bold">87</p>
|
| 110 |
+
<p class="text-xs opacity-90">คะแนนสุขภาพ</p>
|
| 111 |
+
</div>
|
| 112 |
+
<div>
|
| 113 |
+
<p class="text-2xl font-bold">72%</p>
|
| 114 |
+
<p class="text-xs opacity-90">การฟื้นตัว</p>
|
| 115 |
+
</div>
|
| 116 |
+
<div>
|
| 117 |
+
<p class="text-2xl font-bold">8.2</p>
|
| 118 |
+
<p class="text-xs opacity-90">ชั่วโมงนอน</p>
|
| 119 |
+
</div>
|
| 120 |
+
</div>
|
| 121 |
+
</div>
|
| 122 |
+
</div>
|
| 123 |
+
|
| 124 |
+
<!-- Navigation Tabs -->
|
| 125 |
+
<div class="bg-white sticky top-0 z-10 border-b">
|
| 126 |
+
<div class="flex justify-around p-2">
|
| 127 |
+
<button onclick="switchTab('dashboard')" class="tab-btn px-4 py-2 text-sm font-medium tab-active transition-all" data-tab="dashboard">
|
| 128 |
+
แดชบอร์ด
|
| 129 |
+
</button>
|
| 130 |
+
<button onclick="switchTab('metrics')" class="tab-btn px-4 py-2 text-sm font-medium text-gray-600 transition-all" data-tab="metrics">
|
| 131 |
+
สถิติ 160+
|
| 132 |
+
</button>
|
| 133 |
+
<button onclick="switchTab('insights')" class="tab-btn px-4 py-2 text-sm font-medium text-gray-600 transition-all" data-tab="insights">
|
| 134 |
+
ข้อมูลเชิงลึก
|
| 135 |
+
</button>
|
| 136 |
+
<button onclick="switchTab('goals')" class="tab-btn px-4 py-2 text-sm font-medium text-gray-600 transition-all" data-tab="goals">
|
| 137 |
+
เป้าหมาย
|
| 138 |
+
</button>
|
| 139 |
+
</div>
|
| 140 |
+
</div>
|
| 141 |
+
|
| 142 |
+
<!-- Content Area -->
|
| 143 |
+
<div class="pb-20">
|
| 144 |
+
<!-- Dashboard Tab -->
|
| 145 |
+
<div id="dashboard" class="tab-content p-4">
|
| 146 |
+
<!-- Quick Stats -->
|
| 147 |
+
<div class="grid grid-cols-2 gap-3 mb-4">
|
| 148 |
+
<div class="bg-gradient-to-br from-purple-500 to-pink-500 rounded-xl p-4 text-white">
|
| 149 |
+
<div class="flex items-center justify-between mb-2">
|
| 150 |
+
<i data-feather="heart" class="w-5 h-5"></i>
|
| 151 |
+
<span class="text-xs bg-white/20 px-2 py-1 rounded-full">ขณะนี้</span>
|
| 152 |
+
</div>
|
| 153 |
+
<p class="text-2xl font-bold">68</p>
|
| 154 |
+
<p class="text-xs opacity-90">ชีพจร BPM</p>
|
| 155 |
+
</div>
|
| 156 |
+
<div class="bg-gradient-to-br from-blue-500 to-cyan-500 rounded-xl p-4 text-white">
|
| 157 |
+
<div class="flex items-center justify-between mb-2">
|
| 158 |
+
<i data-feather="zap" class="w-5 h-5"></i>
|
| 159 |
+
<span class="text-xs bg-white/20 px-2 py-1 rounded-full metric-trend-up">↑ 12%</span>
|
| 160 |
+
</div>
|
| 161 |
+
<p class="text-2xl font-bold">425</p>
|
| 162 |
+
<p class="text-xs opacity-90">แคลอรีที่เผา</p>
|
| 163 |
+
</div>
|
| 164 |
+
</div>
|
| 165 |
+
|
| 166 |
+
<!-- Today's Activities -->
|
| 167 |
+
<div class="mb-4">
|
| 168 |
+
<h3 class="font-semibold mb-3 flex items-center">
|
| 169 |
+
<i data-feather="activity" class="w-4 h-4 mr-2 text-purple-600"></i>
|
| 170 |
+
กิจกรรมวันนี้
|
| 171 |
+
</h3>
|
| 172 |
+
<div class="space-y-2">
|
| 173 |
+
<div class="bg-white rounded-lg p-3 card-shadow flex items-center justify-between">
|
| 174 |
+
<div class="flex items-center space-x-3">
|
| 175 |
+
<div class="w-10 h-10 bg-green-100 rounded-full flex items-center justify-center">
|
| 176 |
+
<i data-feather="moon" class="w-5 h-5 text-green-600"></i>
|
| 177 |
+
</div>
|
| 178 |
+
<div>
|
| 179 |
+
<p class="font-medium text-sm">การนอนหลับ</p>
|
| 180 |
+
<p class="text-xs text-gray-500">คุณภาพดีมาก</p>
|
| 181 |
+
</div>
|
| 182 |
+
</div>
|
| 183 |
+
<div class="text-right">
|
| 184 |
+
<p class="text-sm font-semibold">8.2 ชม.</p>
|
| 185 |
+
<p class="text-xs text-gray-500">คะแนน 92</p>
|
| 186 |
+
</div>
|
| 187 |
+
</div>
|
| 188 |
+
|
| 189 |
+
<div class="bg-white rounded-lg p-3 card-shadow flex items-center justify-between">
|
| 190 |
+
<div class="flex items-center space-x-3">
|
| 191 |
+
<div class="w-10 h-10 bg-blue-100 rounded-full flex items-center justify-center">
|
| 192 |
+
<i data-feather="droplet" class="w-5 h-5 text-blue-600"></i>
|
| 193 |
+
</div>
|
| 194 |
+
<div>
|
| 195 |
+
<p class="font-medium text-sm">การดื่มน้ำ</p>
|
| 196 |
+
<p class="text-xs text-gray-500">เหลืออีก 500 มล.</p>
|
| 197 |
+
</div>
|
| 198 |
+
</div>
|
| 199 |
+
<div class="text-right">
|
| 200 |
+
<p class="text-sm font-semibold">1.5 ลิตร</p>
|
| 201 |
+
<p class="text-xs text-gray-500">75%</p>
|
| 202 |
+
</div>
|
| 203 |
+
</div>
|
| 204 |
+
|
| 205 |
+
<div class="bg-white rounded-lg p-3 card-shadow flex items-center justify-between">
|
| 206 |
+
<div class="flex items-center space-x-3">
|
| 207 |
+
<div class="w-10 h-10 bg-orange-100 rounded-full flex items-center justify-center">
|
| 208 |
+
<i data-feather="trending-up" class="w-5 h-5 text-orange-600"></i>
|
| 209 |
+
</div>
|
| 210 |
+
<div>
|
| 211 |
+
<p class="font-medium text-sm">การออกกำลังกาย</p>
|
| 212 |
+
<p class="text-xs text-gray-500">วิ่ง 5 กม.</p>
|
| 213 |
+
</div>
|
| 214 |
+
</div>
|
| 215 |
+
<div class="text-right">
|
| 216 |
+
<p class="text-sm font-semibold">32 นาที</p>
|
| 217 |
+
<p class="text-xs text-gray-500">คะแนน 88</p>
|
| 218 |
+
</div>
|
| 219 |
+
</div>
|
| 220 |
+
</div>
|
| 221 |
+
</div>
|
| 222 |
+
|
| 223 |
+
<!-- Weekly Progress -->
|
| 224 |
+
<div>
|
| 225 |
+
<h3 class="font-semibold mb-3 flex items-center">
|
| 226 |
+
<i data-feather="calendar" class="w-4 h-4 mr-2 text-purple-600"></i>
|
| 227 |
+
ความคืบหน้ารายสัปดาห์
|
| 228 |
+
</h3>
|
| 229 |
+
<div class="bg-white rounded-xl p-4 card-shadow">
|
| 230 |
+
<div class="grid grid-cols-7 gap-2 mb-3">
|
| 231 |
+
<div class="text-center">
|
| 232 |
+
<p class="text-xs text-gray-500 mb-1">จ</p>
|
| 233 |
+
<div class="h-16 bg-gray-100 rounded-lg flex items-end justify-center p-1">
|
| 234 |
+
<div class="w-full bg-purple-500 rounded" style="height: 60%"></div>
|
| 235 |
+
</div>
|
| 236 |
+
</div>
|
| 237 |
+
<div class="text-center">
|
| 238 |
+
<p class="text-xs text-gray-500 mb-1">อ</p>
|
| 239 |
+
<div class="h-16 bg-gray-100 rounded-lg flex items-end justify-center p-1">
|
| 240 |
+
<div class="w-full bg-purple-500 rounded" style="height: 80%"></div>
|
| 241 |
+
</div>
|
| 242 |
+
</div>
|
| 243 |
+
<div class="text-center">
|
| 244 |
+
<p class="text-xs text-gray-500 mb-1">พ</p>
|
| 245 |
+
<div class="h-16 bg-gray-100 rounded-lg flex items-end justify-center p-1">
|
| 246 |
+
<div class="w-full bg-purple-500 rounded" style="height: 70%"></div>
|
| 247 |
+
</div>
|
| 248 |
+
</div>
|
| 249 |
+
<div class="text-center">
|
| 250 |
+
<p class="text-xs text-gray-500 mb-1">พฤ</p>
|
| 251 |
+
<div class="h-16 bg-gray-100 rounded-lg flex items-end justify-center p-1">
|
| 252 |
+
<div class="w-full bg-purple-500 rounded" style="height: 90%"></div>
|
| 253 |
+
</div>
|
| 254 |
+
</div>
|
| 255 |
+
<div class="text-center">
|
| 256 |
+
<p class="text-xs text-gray-500 mb-1">ศ</p>
|
| 257 |
+
<div class="h-16 bg-gray-100 rounded-lg flex items-end justify-center p-1">
|
| 258 |
+
<div class="w-full bg-purple-500 rounded" style="height: 65%"></div>
|
| 259 |
+
</div>
|
| 260 |
+
</div>
|
| 261 |
+
<div class="text-center">
|
| 262 |
+
<p class="text-xs text-gray-500 mb-1">ส</p>
|
| 263 |
+
<div class="h-16 bg-gray-100 rounded-lg flex items-end justify-center p-1">
|
| 264 |
+
<div class="w-full bg-purple-300 rounded" style="height: 40%"></div>
|
| 265 |
+
</div>
|
| 266 |
+
</div>
|
| 267 |
+
<div class="text-center">
|
| 268 |
+
<p class="text-xs text-gray-500 mb-1">อา</p>
|
| 269 |
+
<div class="h-16 bg-purple-100 rounded-lg flex items-end justify-center p-1">
|
| 270 |
+
<div class="w-full bg-purple-300 rounded animate-pulse" style="height: 30%"></div>
|
| 271 |
+
</div>
|
| 272 |
+
</div>
|
| 273 |
+
</div>
|
| 274 |
+
<div class="flex justify-between text-sm">
|
| 275 |
+
<span class="text-gray-600">ค่าเฉลี่ยคะแนน</span>
|
| 276 |
+
<span class="font-semibold text-purple-600">73.5 / 100</span>
|
| 277 |
+
</div>
|
| 278 |
+
</div>
|
| 279 |
+
</div>
|
| 280 |
+
</div>
|
| 281 |
+
|
| 282 |
+
<!-- Metrics Tab (160+ Health Metrics) -->
|
| 283 |
+
<div id="metrics" class="tab-content hidden p-4">
|
| 284 |
+
<!-- Search Bar -->
|
| 285 |
+
<div class="mb-4">
|
| 286 |
+
<div class="relative">
|
| 287 |
+
<i data-feather="search" class="absolute left-3 top-1/2 transform -translate-y-1/2 w-4 h-4 text-gray-400"></i>
|
| 288 |
+
<input type="text" placeholder="ค้นหาสถิติทั้งหมด 160+ รายการ..."
|
| 289 |
+
class="w-full pl-10 pr-4 py-2 border border-gray-200 rounded-lg focus:outline-none focus:border-purple-500">
|
| 290 |
+
</div>
|
| 291 |
+
</div>
|
| 292 |
+
|
| 293 |
+
<!-- Metric Categories -->
|
| 294 |
+
<div class="mb-4">
|
| 295 |
+
<div class="flex space-x-2 overflow-x-auto scroll-hidden pb-2">
|
| 296 |
+
<button class="px-4 py-1 bg-purple-600 text-white rounded-full text-sm whitespace-nowrap">ทั้งหมด</button>
|
| 297 |
+
<button class="px-4 py-1 bg-gray-200 text-gray-700 rounded-full text-sm whitespace-nowrap">หัวใจ</button>
|
| 298 |
+
<button class="px-4 py-1 bg-gray-200 text-gray-700 rounded-full text-sm whitespace-nowrap">การนอน</button>
|
| 299 |
+
<button class="px-4 py-1 bg-gray-200 text-gray-700 rounded-full text-sm whitespace-nowrap">การออกกำลังกาย</button>
|
| 300 |
+
<button class="px-4 py-1 bg-gray-200 text-gray-700 rounded-full text-sm whitespace-nowrap">อาหาร</button>
|
| 301 |
+
<button class="px-4 py-1 bg-gray-200 text-gray-700 rounded-full text-sm whitespace-nowrap">ความเครียด</button>
|
| 302 |
+
</div>
|
| 303 |
+
</div>
|
| 304 |
+
|
| 305 |
+
<!-- Health Metrics Grid -->
|
| 306 |
+
<div class="space-y-4">
|
| 307 |
+
<!-- Heart Metrics -->
|
| 308 |
+
<div class="bg-white rounded-xl p-4 card-shadow">
|
| 309 |
+
<h4 class="font-semibold mb-3 flex items-center text-purple-600">
|
| 310 |
+
<i data-feather="heart" class="w-4 h-4 mr-2"></i>
|
| 311 |
+
หัวใจและไหลเลือด (12 รายการ)
|
| 312 |
+
</h4>
|
| 313 |
+
<div class="grid grid-cols-2 gap-3">
|
| 314 |
+
<div class="health-metric-card bg-gray-50 rounded-lg p-3">
|
| 315 |
+
<p class="text-xs text-gray-600">ชีพจรขณะพัก</p>
|
| 316 |
+
<p class="text-lg font-bold">58 BPM</p>
|
| 317 |
+
<span class="text-xs metric-trend-up">↓ 2 จากเมื่อวาน</span>
|
| 318 |
+
</div>
|
| 319 |
+
<div class="health-metric-card bg-gray-50 rounded-lg p-3">
|
| 320 |
+
<p class="text-xs text-gray-600">ความดันซิสโทล</p>
|
| 321 |
+
<p class="text-lg font-bold">120 mmHg</p>
|
| 322 |
+
<span class="text-xs metric-trend-neutral">ปกติ</span>
|
| 323 |
+
</div>
|
| 324 |
+
<div class="health-metric-card bg-gray-50 rounded-lg p-3">
|
| 325 |
+
<p class="text-xs text-gray-600">ความดันไดแอสโทล</p>
|
| 326 |
+
<p class="text-lg font-bold">80 mmHg</p>
|
| 327 |
+
<span class="text-xs metric-trend-neutral">ปกติ</span>
|
| 328 |
+
</div>
|
| 329 |
+
<div class="health-metric-card bg-gray-50 rounded-lg p-3">
|
| 330 |
+
<p class="text-xs text-gray-600">HRV</p>
|
| 331 |
+
<p class="text-lg font-bold">42 ms</p>
|
| 332 |
+
<span class="text-xs metric-trend-up">↑ 5 จากเมื่อวาน</span>
|
| 333 |
+
</div>
|
| 334 |
+
<div class="health-metric-card bg-gray-50 rounded-lg p-3">
|
| 335 |
+
<p class="text-xs text-gray-600">ออกซิเจนในเลือด</p>
|
| 336 |
+
<p class="text-lg font-bold">98%</p>
|
| 337 |
+
<span class="text-xs metric-trend-neutral">ดีมาก</span>
|
| 338 |
+
</div>
|
| 339 |
+
<div class="health-metric-card bg-gray-50 rounded-lg p-3">
|
| 340 |
+
<p class="text-xs text-gray-600">ชีพจรสูงสุด</p>
|
| 341 |
+
<p class="text-lg font-bold">165 BPM</p>
|
| 342 |
+
<span class="text-xs metric-trend-neutral">85% ของสูงสุด</span>
|
| 343 |
+
</div>
|
| 344 |
+
</div>
|
| 345 |
+
</div>
|
| 346 |
+
|
| 347 |
+
<!-- Sleep Metrics -->
|
| 348 |
+
<div class="bg-white rounded-xl p-4 card-shadow">
|
| 349 |
+
<h4 class="font-semibold mb-3 flex items-center text-purple-600">
|
| 350 |
+
<i data-feather="moon" class="w-4 h-4 mr-2"></i>
|
| 351 |
+
การนอนหลับ (18 รายการ)
|
| 352 |
+
</h4>
|
| 353 |
+
<div class="grid grid-cols-2 gap-3">
|
| 354 |
+
<div class="health-metric-card bg-gray-50 rounded-lg p-3">
|
| 355 |
+
<p class="text-xs text-gray-600">ระยะเวลานอน</p>
|
| 356 |
+
<p class="text-lg font-bold">8.2 ชม.</p>
|
| 357 |
+
<span class="text-xs metric-trend-up">↑ 0.5 ชม.</span>
|
| 358 |
+
</div>
|
| 359 |
+
<div class="health-metric-card bg-gray-50 rounded-lg p-3">
|
| 360 |
+
<p class="text-xs text-gray-600">คุณภาพการนอน</p>
|
| 361 |
+
<p class="text-lg font-bold">85%</p>
|
| 362 |
+
<span class="text-xs metric-trend-up">ดีมาก</span>
|
| 363 |
+
</div>
|
| 364 |
+
<div class="health-metric-card bg-gray-50 rounded-lg p-3">
|
| 365 |
+
<p class="text-xs text-gray-600">REM Sleep</p>
|
| 366 |
+
<p class="text-lg font-bold">1.8 ชม.</p>
|
| 367 |
+
<span class="text-xs metric-trend-neutral">22% ของทั้งหมด</span>
|
| 368 |
+
</div>
|
| 369 |
+
<div class="health-metric-card bg-gray-50 rounded-lg p-3">
|
| 370 |
+
<p class="text-xs text-gray-600">Deep Sleep</p>
|
| 371 |
+
<p class="text-lg font-bold">2.1 ชม.</p>
|
| 372 |
+
<span class="text-xs metric-trend-neutral">26% ของทั้งหมด</span>
|
| 373 |
+
</div>
|
| 374 |
+
<div class="health-metric-card bg-gray-50 rounded-lg p-3">
|
| 375 |
+
<p class="text-xs text-gray-600">Light Sleep</p>
|
| 376 |
+
<p class="text-lg font-bold">4.3 ชม.</p>
|
| 377 |
+
<span class="text-xs metric-trend-neutral">52% ของทั้งหมด</span>
|
| 378 |
+
</div>
|
| 379 |
+
<div class="health-metric-card bg-gray-50 rounded-lg p-3">
|
| 380 |
+
<p class="text-xs text-gray-600">ตื่นขึ้นมา</p>
|
| 381 |
+
<p class="text-lg font-bold">3 ครั้ง</p>
|
| 382 |
+
<span class="text-xs metric-trend-down">↓ 1 ครั้ง</span>
|
| 383 |
+
</div>
|
| 384 |
+
</div>
|
| 385 |
+
</div>
|
| 386 |
+
|
| 387 |
+
<!-- Exercise Metrics -->
|
| 388 |
+
<div class="bg-white rounded-xl p-4 card-shadow">
|
| 389 |
+
<h4 class="font-semibold mb-3 flex items-center text-purple-600">
|
| 390 |
+
<i data-feather="trending-up" class="w-4 h-4 mr-2"></i>
|
| 391 |
+
การออกกำลังกาย (25 รายการ)
|
| 392 |
+
</h4>
|
| 393 |
+
<div class="grid grid-cols-2 gap-3">
|
| 394 |
+
<div class="health-metric-card bg-gray-50 rounded-lg p-3">
|
| 395 |
+
<p class="text-xs text-gray-600">ก้าวเดินวันนี้</p>
|
| 396 |
+
<p class="text-lg font-bold">12,847</p>
|
| 397 |
+
<span class="text-xs metric-trend-up">↑ 23%</span>
|
| 398 |
+
</div>
|
| 399 |
+
<div class="health-metric-card bg-gray-50 rounded-lg p-3">
|
| 400 |
+
<p class="text-xs text-gray-600">ระยะทาง</p>
|
| 401 |
+
<p class="text-lg font-bold">8.2 กม.</p>
|
| 402 |
+
<span class="text-xs metric-trend-up">↑ 1.2 กม.</span>
|
| 403 |
+
</div>
|
| 404 |
+
<div class="health-metric-card bg-gray-50 rounded-lg p-3">
|
| 405 |
+
<p class="text-xs text-gray-600">แคลอรีที่เผา</p>
|
| 406 |
+
<p class="text-lg font-bold">425 kcal</p>
|
| 407 |
+
<span class="text-xs metric-trend-up">↑ 15%</span>
|
| 408 |
+
</div>
|
| 409 |
+
<div class="health-metric-card bg-gray-50 rounded-lg p-3">
|
| 410 |
+
<p class="text-xs text-gray-600">เวลาออกกำลังกาย</p>
|
| 411 |
+
<p class="text-lg font-bold">32 นาที</p>
|
| 412 |
+
<span class="text-xs metric-trend-neutral">ถึงเป้า</span>
|
| 413 |
+
</div>
|
| 414 |
+
<div class="health-metric-card bg-gray-50 rounded-lg p-3">
|
| 415 |
+
<p class="text-xs text-gray-600">ความเข้มข้น</p>
|
| 416 |
+
<p class="text-lg font-bold">75%</p>
|
| 417 |
+
<span class="text-xs metric-trend-neutral">ปานกลาง</span>
|
| 418 |
+
</div>
|
| 419 |
+
<div class="health-metric-card bg-gray-50 rounded-lg p-3">
|
| 420 |
+
<p class="text-xs text-gray-600">ชั้นขั้น</p>
|
| 421 |
+
<p class="text-lg font-bold">45 ชั้น</p>
|
| 422 |
+
<span class="text-xs metric-trend-up">↑ 10 ชั้น</span>
|
| 423 |
+
</div>
|
| 424 |
+
</div>
|
| 425 |
+
</div>
|
| 426 |
+
|
| 427 |
+
<!-- Nutrition Metrics -->
|
| 428 |
+
<div class="bg-white rounded-xl p-4 card-shadow">
|
| 429 |
+
<h4 class="font-semibold mb-3 flex items-center text-purple-600">
|
| 430 |
+
<i data-feather="coffee" class="w-4 h-4 mr-2"></i>
|
| 431 |
+
โภชนาการ (22 รายการ)
|
| 432 |
+
</h4>
|
| 433 |
+
<div class="grid grid-cols-2 gap-3">
|
| 434 |
+
<div class="health-metric-card bg-gray-50 rounded-lg p-3">
|
| 435 |
+
<p class="text-xs text-gray-600">แคลอรีรับประทาน</p>
|
| 436 |
+
<p class="text-lg font-bold">1,850 kcal</p>
|
| 437 |
+
<span class="text-xs metric-trend-neutral">92% ของเป้า</span>
|
| 438 |
+
</div>
|
| 439 |
+
<div class="health-metric-card bg-gray-50 rounded-lg p-3">
|
| 440 |
+
<p class="text-xs text-gray-600">โปรตีน</p>
|
| 441 |
+
<p class="text-lg font-bold">85 กรัม</p>
|
| 442 |
+
<span class="text-xs metric-trend-up">เพียงพอ</span>
|
| 443 |
+
</div>
|
| 444 |
+
<div class="health-metric-card bg-gray-50 rounded-lg p-3">
|
| 445 |
+
<p class="text-xs text-gray-600">คาร์โบไฮเดรต</p>
|
| 446 |
+
<p class="text-lg font-bold">230 กรัม</p>
|
| 447 |
+
<span class="text-xs metric-trend-neutral">ปกติ</span>
|
| 448 |
+
</div>
|
| 449 |
+
<div class="health-metric-card bg-gray-50 rounded-lg p-3">
|
| 450 |
+
<p class="text-xs text-gray-600">ไขมัน</p>
|
| 451 |
+
<p class="text-lg font-bold">65 กรัม</p>
|
| 452 |
+
<span class="text-xs metric-trend-neutral">ปกติ</span>
|
| 453 |
+
</div>
|
| 454 |
+
<div class="health-metric-card bg-gray-50 rounded-lg p-3">
|
| 455 |
+
<p class="text-xs text-gray-600">น้ำตาล</p>
|
| 456 |
+
<p class="text-lg font-bold">42 กรัม</p>
|
| 457 |
+
<span class="text-xs metric-trend-down">↓ 5 กรัม</span>
|
| 458 |
+
</div>
|
| 459 |
+
<div class="health-metric-card bg-gray-50 rounded-lg p-3">
|
| 460 |
+
<p class="text-xs text-gray-600">ไฟเบอร์</p>
|
| 461 |
+
<p class="text-lg font-bold">28 กรัม</p>
|
| 462 |
+
<span class="text-xs metric-trend-up">↑ 2 กรัม</span>
|
| 463 |
+
</div>
|
| 464 |
+
</div>
|
| 465 |
+
</div>
|
| 466 |
+
|
| 467 |
+
<!-- Stress Metrics -->
|
| 468 |
+
<div class="bg-white rounded-xl p-4 card-shadow">
|
| 469 |
+
<h4 class="font-semibold mb-3 flex items-center text-purple-600">
|
| 470 |
+
<i data-feather="alert-circle" class="w-4 h-4 mr-2"></i>
|
| 471 |
+
ความเครียดและจิตใจ (15 รายการ)
|
| 472 |
+
</h4>
|
| 473 |
+
<div class="grid grid-cols-2 gap-3">
|
| 474 |
+
<div class="health-metric-card bg-gray-50 rounded-lg p-3">
|
| 475 |
+
<p class="text-xs text-gray-600">ระดับความเครียด</p>
|
| 476 |
+
<p class="text-lg font-bold">28%</p>
|
| 477 |
+
<span class="text-xs metric-trend-down">ต่ำ</span>
|
| 478 |
+
</div>
|
| 479 |
+
<div class="health-metric-card bg-gray-50 rounded-lg p-3">
|
| 480 |
+
<p class="text-xs text-gray-600">คอร์ติซอล</p>
|
| 481 |
+
<p class="text-lg font-bold">12 nmol/L</p>
|
| 482 |
+
<span class="text-xs metric-trend-down">↓ 2</span>
|
| 483 |
+
</div>
|
| 484 |
+
<div class="health-metric-card bg-gray-50 rounded-lg p-3">
|
| 485 |
+
<p class="text-xs text-gray-600">ความผ่อนคลาย</p>
|
| 486 |
+
<p class="text-lg font-bold">85%</p>
|
| 487 |
+
<span class="text-xs metric-trend-up">ดีมาก</span>
|
| 488 |
+
</div>
|
| 489 |
+
<div class="health-metric-card bg-gray-50 rounded-lg p-3">
|
| 490 |
+
<p class="text-xs text-gray-600">โฟกัส</p>
|
| 491 |
+
<p class="text-lg font-bold">78%</p>
|
| 492 |
+
<span class="text-xs metric-trend-neutral">ดี</span>
|
| 493 |
+
</div>
|
| 494 |
+
</div>
|
| 495 |
+
</div>
|
| 496 |
+
|
| 497 |
+
<!-- Load More -->
|
| 498 |
+
<div class="text-center py-4">
|
| 499 |
+
<button class="text-purple-600 font-medium text-sm">แสดงเพิ่มเติม 93 รายการ ↓</button>
|
| 500 |
+
</div>
|
| 501 |
+
</div>
|
| 502 |
+
</div>
|
| 503 |
+
|
| 504 |
+
<!-- Insights Tab -->
|
| 505 |
+
<div id="insights" class="tab-content hidden p-4">
|
| 506 |
+
<!-- AI Insights -->
|
| 507 |
+
<div class="bg-gradient-to-br from-purple-500 to-pink-500 rounded-xl p-4 text-white mb-4">
|
| 508 |
+
<div class="flex items-center mb-2">
|
| 509 |
+
<i data-feather="cpu" class="w-5 h-5 mr-2"></i>
|
| 510 |
+
<h3 class="font-semibold">ข้อมูลเชิงลึกจาก AI</h3>
|
| 511 |
+
</div>
|
| 512 |
+
<p class="text-sm leading-relaxed">
|
| 513 |
+
จากการวิเคราะห์ข้อมูล 7 วันที่ผ่านมา พบว่าคุณมีการฟื้นตัวดีขึ้น 15% เนื่องจากการนอนหลับที่เพิ่มขึ้นและการจัดการความเครียดที่ดีขึ้น แนะนำให้รักษากำหนดการนอนต่อเนื่อง
|
| 514 |
+
</p>
|
| 515 |
+
</div>
|
| 516 |
+
|
| 517 |
+
<!-- Trends -->
|
| 518 |
+
<div class="bg-white rounded-xl p-4 card-shadow mb-4">
|
| 519 |
+
<h3 class="font-semibold mb-3">แนวโน้มสำคัญ</h3>
|
| 520 |
+
<div class="space-y-3">
|
| 521 |
+
<div class="flex items-center justify-between p-3 bg-green-50 rounded-lg">
|
| 522 |
+
<div class="flex items-center">
|
| 523 |
+
<i data-feather="trending-up" class="w-4 h-4 text-green-600 mr-3"></i>
|
| 524 |
+
<div>
|
| 525 |
+
<p class="font-medium text-sm">คุณภาพการนอนดีขึ้น</p>
|
| 526 |
+
<p class="text-xs text-gray-600">เพิ่มขึ้น 12% ใน 7 วัน</p>
|
| 527 |
+
</div>
|
| 528 |
+
</div>
|
| 529 |
+
<span class="text-green-600 font-bold text-sm">+12%</span>
|
| 530 |
+
</div>
|
| 531 |
+
|
| 532 |
+
<div class="flex items-center justify-between p-3 bg-blue-50 rounded-lg">
|
| 533 |
+
<div class="flex items-center">
|
| 534 |
+
<i data-feather="activity" class="w-4 h-4 text-blue-600 mr-3"></i>
|
| 535 |
+
<div>
|
| 536 |
+
<p class="font-medium text-sm">HRV ดีขึ้น</p>
|
| 537 |
+
<p class="text-xs text-gray-600">ระบบภูมิคุ้มกันแข็งแกร่ง</p>
|
| 538 |
+
</div>
|
| 539 |
+
</div>
|
| 540 |
+
<span class="text-blue-600 font-bold text-sm">+8ms</span>
|
| 541 |
+
</div>
|
| 542 |
+
|
| 543 |
+
<div class="flex items-center justify-between p-3 bg-orange-50 rounded-lg">
|
| 544 |
+
<div class="flex items-center">
|
| 545 |
+
<i data-feather="alert-triangle" class="w-4 h-4 text-orange-600 mr-3"></i>
|
| 546 |
+
<div>
|
| 547 |
+
<p class="font-medium text-sm">ความเครียดสูงขึ้น</p>
|
| 548 |
+
<p class="text-xs text-gray-600">หลังเที่ยงวันทุกวัน</p>
|
| 549 |
+
</div>
|
| 550 |
+
</div>
|
| 551 |
+
<span class="text-orange-600 font-bold text-sm">+5%</span>
|
| 552 |
+
</div>
|
| 553 |
+
</div>
|
| 554 |
+
</div>
|
| 555 |
+
|
| 556 |
+
<!-- Recommendations -->
|
| 557 |
+
<div class="bg-white rounded-xl p-4 card-shadow mb-4">
|
| 558 |
+
<h3 class="font-semibold mb-3">คำแนะนำส่วนตัว</h3>
|
| 559 |
+
<div class="space-y-3">
|
| 560 |
+
<div class="flex items-start space-x-3">
|
| 561 |
+
<div class="w-8 h-8 bg-purple-100 rounded-full flex items-center justify-center flex-shrink-0 mt-1">
|
| 562 |
+
<span class="text-purple-600 font-bold text-sm">1</span>
|
| 563 |
+
</div>
|
| 564 |
+
<div>
|
| 565 |
+
<p class="font-medium text-sm">เพิ่มการพักผ่อนหลังเที่ยง</p>
|
| 566 |
+
<p class="text-xs text-gray-600">5-10 นาที จะช่วยลดความเครียดได้</p>
|
| 567 |
+
</div>
|
| 568 |
+
</div>
|
| 569 |
+
|
| 570 |
+
<div class="flex items-start space-x-3">
|
| 571 |
+
<div class="w-8 h-8 bg-purple-100 rounded-full flex items-center justify-center flex-shrink-0 mt-1">
|
| 572 |
+
<span class="text-purple-600 font-bold text-sm">2</span>
|
| 573 |
+
</div>
|
| 574 |
+
<div>
|
| 575 |
+
<p class="font-medium text-sm">ดื่มน้ำมากขึ้น</p>
|
| 576 |
+
<p class="text-xs text-gray-600">เพิ่ม 200 มล. ในช่วงเช้า</p>
|
| 577 |
+
</div>
|
| 578 |
+
</div>
|
| 579 |
+
|
| 580 |
+
<div class="flex items-start space-x-3">
|
| 581 |
+
<div class="w-8 h-8 bg-purple-100 rounded-full flex items-center justify-center flex-shrink-0 mt-1">
|
| 582 |
+
<span class="text-purple-600 font-bold text-sm">3</span>
|
| 583 |
+
</div>
|
| 584 |
+
<div>
|
| 585 |
+
<p class="font-medium text-sm">ออกกำลังกายแบบ HIIT</p>
|
| 586 |
+
<p class="text-xs text-gray-600">2 ครั้งต่อสัปดาห์ เพื่อเพิ่มสมรรถภาพ</p>
|
| 587 |
+
</div>
|
| 588 |
+
</div>
|
| 589 |
+
</div>
|
| 590 |
+
</div>
|
| 591 |
+
</div>
|
| 592 |
+
|
| 593 |
+
<!-- Goals Tab -->
|
| 594 |
+
<div id="goals" class="tab-content hidden p-4">
|
| 595 |
+
<!-- Active Goals -->
|
| 596 |
+
<div class="mb-4">
|
| 597 |
+
<h3 class="font-semibold mb-3">เป้าหมายประจำเดือน</h3>
|
| 598 |
+
<div class="space-y-3">
|
| 599 |
+
<div class="bg-white rounded-xl p-4 card-shadow">
|
| 600 |
+
<div class="flex justify-between items-center mb-2">
|
| 601 |
+
<div class="flex items-center">
|
| 602 |
+
<i data-feather="target" class="w-5 h-5 text-purple-600 mr-2"></i>
|
| 603 |
+
<span class="font-medium">ลดน้ำหนัก 3 กก.</span>
|
| 604 |
+
</div>
|
| 605 |
+
<span class="text-sm font-bold text-purple-600">60%</span>
|
| 606 |
+
</div>
|
| 607 |
+
<div class="w-full bg-gray-200 rounded-full h-2 mb-2">
|
| 608 |
+
<div class="bg-gradient-to-r from-purple-500 to-pink-500 h-2 rounded-full" style="width: 60%"></div>
|
| 609 |
+
</div>
|
| 610 |
+
<p class="text-xs text-gray-600">ลดไปแล้ว 1.8 กก. เหลืออีก 1.2 กก. • 12 วันที่เหลือ</p>
|
| 611 |
+
</div>
|
| 612 |
+
|
| 613 |
+
<div class="bg-white rounded-xl p-4 card-shadow">
|
| 614 |
+
<div class="flex justify-between items-center mb-2">
|
| 615 |
+
<div class="flex items-center">
|
| 616 |
+
<i data-feather="moon" class="w-5 h-5 text-blue-600 mr-2"></i>
|
| 617 |
+
<span class="font-medium">นอน 8 ชั่วโมงต่อวัน</span>
|
| 618 |
+
</div>
|
| 619 |
+
<span class="text-sm font-bold text-blue-600">75%</span>
|
| 620 |
+
</div>
|
| 621 |
+
<div class="w-full bg-gray-200 rounded-full h-2 mb-2">
|
| 622 |
+
<div class="bg-gradient-to-r from-blue-500 to-cyan-500 h-2 rounded-full" style="width: 75%"></div>
|
| 623 |
+
</div>
|
| 624 |
+
<p class="text-xs text-gray-600">ทำได้ 22 จาก 30 วัน • 8 วันที่เหลือ</p>
|
| 625 |
+
</div>
|
| 626 |
+
|
| 627 |
+
<div class="bg-white rounded-xl p-4 card-shadow">
|
| 628 |
+
<div class="flex justify-between items-center mb-2">
|
| 629 |
+
<div class="flex items-center">
|
| 630 |
+
<i data-feather="trending-up" class="w-5 h-5 text-green-600 mr-2"></i>
|
| 631 |
+
<span class="font-medium">วิ่ง 100 กม. ต่อเดือน</span>
|
| 632 |
+
</div>
|
| 633 |
+
<span class="text-sm font-bold text-green-600">82%</span>
|
| 634 |
+
</div>
|
| 635 |
+
<div class="w-full bg-gray-200 rounded-full h-2 mb-2">
|
| 636 |
+
<div class="bg-gradient-to-r from-green-500 to-emerald-500 h-2 rounded-full" style="width: 82%"></div>
|
| 637 |
+
</div>
|
| 638 |
+
<p class="text-xs text-gray-600">วิ่งไปแล้ว 82 กม. • เหลือ 18 กม. • 8 วันที่เหลือ</p>
|
| 639 |
+
</div>
|
| 640 |
+
</div>
|
| 641 |
+
</div>
|
| 642 |
+
|
| 643 |
+
<!-- Add New Goal -->
|
| 644 |
+
<button class="w-full bg-purple-100 text-purple-600 rounded-xl p-4 font-medium text-sm hover:bg-purple-200 transition-colors">
|
| 645 |
+
<i data-feather="plus-circle" class="w-4 h-4 inline mr-2"></i>
|
| 646 |
+
เพิ่มเป้าหมายใหม่
|
| 647 |
+
</button>
|
| 648 |
+
</div>
|
| 649 |
+
</div>
|
| 650 |
+
|
| 651 |
+
<!-- Bottom Navigation -->
|
| 652 |
+
<div class="fixed bottom-0 left-0 right-0 bg-white border-t max-w-md mx-auto">
|
| 653 |
+
<div class="grid grid-cols-5 py-2">
|
| 654 |
+
<button class="flex flex-col items-center py-2 text-purple-600">
|
| 655 |
+
<i data-feather="home" class="w-5 h-5"></i>
|
| 656 |
+
<span class="text-xs mt-1">หน้าแรก</span>
|
| 657 |
+
</button>
|
| 658 |
+
<button class="flex flex-col items-center py-2 text-gray-500">
|
| 659 |
+
<i data-feather="bar-chart-2" class="w-5 h-5"></i>
|
| 660 |
+
<span class="text-xs mt-1">กราฟ</span>
|
| 661 |
+
</button>
|
| 662 |
+
<button class="flex flex-col items-center py-2 text-gray-500">
|
| 663 |
+
<div class="w-12 h-12 bg-purple-600 rounded-full flex items-center justify-center -mt-2">
|
| 664 |
+
<i data-feather="plus" class="w-6 h-6 text-white"></i>
|
| 665 |
+
</div>
|
| 666 |
+
</button>
|
| 667 |
+
<button class="flex flex-col items-center py-2 text-gray-500">
|
| 668 |
+
<i data-feather="award" class="w-5 h-5"></i>
|
| 669 |
+
<span class="text-xs mt-1">ความสำเร็จ</span>
|
| 670 |
+
</button>
|
| 671 |
+
<button class="flex flex-col items-center py-2 text-gray-500">
|
| 672 |
+
<i data-feather="settings" class="w-5 h-5"></i>
|
| 673 |
+
<span class="text-xs mt-1">ตั้งค่า</span>
|
| 674 |
+
</button>
|
| 675 |
+
</div>
|
| 676 |
+
</div>
|
| 677 |
+
</div>
|
| 678 |
+
|
| 679 |
+
<script>
|
| 680 |
+
// Initialize Feather Icons
|
| 681 |
+
feather.replace();
|
| 682 |
+
|
| 683 |
+
// Tab Switching
|
| 684 |
+
function switchTab(tabName) {
|
| 685 |
+
// Hide all tab contents
|
| 686 |
+
document.querySelectorAll('.tab-content').forEach(tab => {
|
| 687 |
+
tab.classList.add('hidden');
|
| 688 |
+
});
|
| 689 |
+
|
| 690 |
+
// Remove active class from all tab buttons
|
| 691 |
+
document.querySelectorAll('.tab-btn').forEach(btn => {
|
| 692 |
+
btn.classList.remove('tab-active');
|
| 693 |
+
btn.classList.add('text-gray-600');
|
| 694 |
+
});
|
| 695 |
+
|
| 696 |
+
// Show selected tab
|
| 697 |
+
document.getElementById(tabName).classList.remove('hidden');
|
| 698 |
+
|
| 699 |
+
// Add active class to selected tab button
|
| 700 |
+
const activeBtn = document.querySelector(`[data-tab="${tabName}"]`);
|
| 701 |
+
activeBtn.classList.add('tab-active');
|
| 702 |
+
activeBtn.classList.remove('text-gray-600');
|
| 703 |
+
}
|
| 704 |
+
|
| 705 |
+
// Mock data updates
|
| 706 |
+
function updateMetrics() {
|
| 707 |
+
// Simulate real-time heart rate update
|
| 708 |
+
const heartRate = 55 + Math.floor(Math.random() * 20);
|
| 709 |
+
const heartRateElement = document.querySelector('.health-metric-card p.text-lg');
|
| 710 |
+
if (heartRateElement && heartRateElement.textContent.includes('BPM')) {
|
| 711 |
+
heartRateElement.textContent = heartRate + ' BPM';
|
| 712 |
+
}
|
| 713 |
+
|
| 714 |
+
// Update calories
|
| 715 |
+
const calories = 400 + Math.floor(Math.random() * 50);
|
| 716 |
+
const caloriesElements = document.querySelectorAll('.health-metric-card p.text-lg');
|
| 717 |
+
caloriesElements.forEach(el => {
|
| 718 |
+
if (el.textContent.includes('kcal')) {
|
| 719 |
+
el.textContent = calories + ' kcal';
|
| 720 |
+
}
|
| 721 |
+
});
|
| 722 |
+
}
|
| 723 |
+
|
| 724 |
+
// Show notifications
|
| 725 |
+
function showNotifications() {
|
| 726 |
+
alert('🔔 มีการแจ้งเตือนใหม่\n\n• ถึงเวลาดื่มน้ำแล้ว\n• คุณออกกำลังกายไปแล้ว 75% ของเป้าหมายวันนี้\n• คุณภาพการนอนเมื่อคืนดีขึ้น 10%');
|
| 727 |
+
}
|
| 728 |
+
|
| 729 |
+
// Show profile
|
| 730 |
+
function showProfile() {
|
| 731 |
+
alert('👤 โปรไฟล์\n\nชื่อ: สมชาย ใจดี\nอายุ: 28 ปี\nเป้าหมาย: สุขภาพแข็งแรง\nสมาชิกตั้งแต่: มกราคม 2024');
|
| 732 |
+
}
|
| 733 |
+
|
| 734 |
+
// Simulate real-time updates
|
| 735 |
+
setInterval(updateMetrics, 5000);
|
| 736 |
+
|
| 737 |
+
// Add swipe gestures for mobile
|
| 738 |
+
let touchStartX = 0;
|
| 739 |
+
let touchEndX = 0;
|
| 740 |
+
|
| 741 |
+
document.addEventListener('touchstart', (e) => {
|
| 742 |
+
touchStartX = e.changedTouches[0].screenX;
|
| 743 |
+
});
|
| 744 |
+
|
| 745 |
+
document.addEventListener('touchend', (e) => {
|
| 746 |
+
touchEndX = e.changedTouches[0].screenX;
|
| 747 |
+
handleSwipe();
|
| 748 |
+
});
|
| 749 |
+
|
| 750 |
+
function handleSwipe() {
|
| 751 |
+
const tabs = ['dashboard', 'metrics', 'insights', 'goals'];
|
| 752 |
+
const currentTab = document.querySelector('.tab-content:not(.hidden)').id;
|
| 753 |
+
const currentIndex = tabs.indexOf(currentTab);
|
| 754 |
+
|
| 755 |
+
if (touchEndX < touchStartX - 50 && currentIndex < tabs.length - 1) {
|
| 756 |
+
// Swipe left - next tab
|
| 757 |
+
switchTab(tabs[currentIndex + 1]);
|
| 758 |
+
}
|
| 759 |
+
|
| 760 |
+
if (touchEndX > touchStartX + 50 && currentIndex > 0) {
|
| 761 |
+
// Swipe right - previous tab
|
| 762 |
+
switchTab(tabs[currentIndex - 1]);
|
| 763 |
+
}
|
| 764 |
+
}
|
| 765 |
+
|
| 766 |
+
// Add haptic feedback (vibration) on button clicks for mobile
|
| 767 |
+
document.querySelectorAll('button').forEach(button => {
|
| 768 |
+
button.addEventListener('click', () => {
|
| 769 |
+
if ('vibrate' in navigator) {
|
| 770 |
+
navigator.vibrate(10);
|
| 771 |
+
}
|
| 772 |
+
});
|
| 773 |
+
});
|
| 774 |
+
</script>
|
| 775 |
+
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
|
| 776 |
+
</body>
|
| 777 |
+
</html>
|