Spaces:
Running
Running
File size: 13,512 Bytes
4a7cb62 | 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 | <!DOCTYPE html>
<html lang="th" class="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>ชีพจร - แดชบอร์ดประจำวัน</title>
<link rel="icon" type="image/x-icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🌿</text></svg>">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<link rel="stylesheet" href="style.css">
</head>
<body class="bg-gray-900 text-white font-sans pb-20">
<!-- Main Container -->
<div class="min-h-screen bg-gradient-to-br from-gray-900 via-gray-800 to-gray-900">
<!-- Header -->
<header class="px-4 pt-12 pb-6">
<div class="flex items-center justify-between">
<div>
<h1 class="text-2xl font-bold bg-gradient-to-r from-green-400 to-emerald-500 bg-clip-text text-transparent">
สวัสดี, คุณพิมพ์
</h1>
<p class="text-gray-400 text-sm mt-1">วันนี้พร้อมลุยไหม? 💪</p>
</div>
<div class="relative">
<div class="w-12 h-12 rounded-full bg-gradient-to-r from-green-400 to-emerald-500 p-0.5">
<img src="http://static.photos/people/200x200/42" alt="Profile" class="w-full h-full rounded-full object-cover border-2 border-gray-900">
</div>
<div class="absolute -bottom-1 -right-1 w-4 h-4 bg-green-400 rounded-full border-2 border-gray-900"></div>
</div>
</div>
</header>
<!-- AI Coach Summary -->
<ai-coach-card></ai-coach-card>
<!-- Hardware Status -->
<hardware-status></hardware-status>
<!-- Main Vitals Grid -->
<section class="px-4 mb-6">
<div class="grid grid-cols-3 gap-3">
<vital-circle
type="recovery"
value="82"
color="from-green-400 to-emerald-500"
label="การฟื้นตัว">
</vital-circle>
<vital-circle
type="strain"
value="14.2"
color="from-orange-400 to-red-500"
label="ความเครียด"
max="21">
</vital-circle>
<vital-circle
type="sleep"
value="78"
color="from-blue-400 to-indigo-500"
label="การนอน">
</vital-circle>
</div>
</section>
<!-- Quick Log Buttons -->
<section class="px-4 mb-6">
<div class="flex gap-3 overflow-x-auto pb-2 -mx-4 px-4">
<button class="quick-log-btn flex-shrink-0 bg-gradient-to-r from-green-500 to-emerald-600 px-4 py-3 rounded-xl flex items-center gap-2 text-sm font-medium shadow-lg" data-action="food">
<i data-feather="plus" class="w-4 h-4"></i>
บันทึกอาหารไทย
</button>
<button class="quick-log-btn flex-shrink-0 bg-gradient-to-r from-orange-500 to-red-600 px-4 py-3 rounded-xl flex items-center gap-2 text-sm font-medium shadow-lg" data-action="workout">
<i data-feather="activity" class="w-4 h-4"></i>
เริ่มออกกำลัง
</button>
<button class="quick-log-btn flex-shrink-0 bg-gradient-to-r from-blue-500 to-indigo-600 px-4 py-3 rounded-xl flex items-center gap-2 text-sm font-medium shadow-lg" data-action="mood">
<i data-feather="heart" class="w-4 h-4"></i>
บันทึกอารมณ์
</button>
<button class="quick-log-btn flex-shrink-0 bg-gradient-to-r from-purple-500 to-pink-600 px-4 py-3 rounded-xl flex items-center gap-2 text-sm font-medium shadow-lg" data-action="water">
<i data-feather="droplet" class="w-4 h-4"></i>
ดื่มน้ำ
</button>
<button class="quick-log-btn flex-shrink-0 bg-gradient-to-r from-yellow-500 to-orange-600 px-4 py-3 rounded-xl flex items-center gap-2 text-sm font-medium shadow-lg" data-action="meditation">
<i data-feather="moon" class="w-4 h-4"></i>
นั่งสมาธิ
</button>
</div>
</section>
<!-- Mood Logger -->
<mood-logger></mood-logger>
<!-- Today's Data -->
<section class="px-4 mb-6">
<div class="glass-card rounded-2xl p-5 border border-gray-700/50">
<h3 class="text-lg font-semibold mb-4 flex items-center gap-2">
<i data-feather="activity" class="w-5 h-5 text-green-400"></i>
ข้อมูลวันนี้
</h3>
<!-- Heart Rate Chart -->
<div class="mb-6">
<div class="flex justify-between items-center mb-3">
<span class="text-sm text-gray-400">อัตราการเต้นหัวใจ</span>
<span class="text-sm font-medium">68 bpm</span>
</div>
<canvas id="hrChart" height="120"></canvas>
</div>
<!-- Stats Grid -->
<div class="grid grid-cols-2 gap-4">
<div class="stat-card bg-gray-800/50 rounded-xl p-4 border border-gray-700/30">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-400 text-xs">แคลอรีทั้งหมด</p>
<p class="text-xl font-bold">1,847</p>
</div>
<i data-feather="zap" class="w-6 h-6 text-orange-400"></i>
</div>
<div class="mt-2 bg-gray-700 rounded-full h-2">
<div class="bg-gradient-to-r from-green-400 to-emerald-500 h-2 rounded-full" style="width: 73%"></div>
</div>
</div>
<div class="stat-card bg-gray-800/50 rounded-xl p-4 border border-gray-700/30">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-400 text-xs">จำนวนก้าว</p>
<p class="text-xl font-bold">8,247</p>
</div>
<i data-feather="foot-print" class="w-6 h-6 text-blue-400"></i>
</div>
<div class="mt-2 bg-gray-700 rounded-full h-2">
<div class="bg-gradient-to-r from-blue-400 to-indigo-500 h-2 rounded-full" style="width: 82%"></div>
</div>
</div>
</div>
</div>
</section>
<!-- Enhanced Meal Logger -->
<meal-logger-enhanced></meal-logger-enhanced>
<!-- Activity Summary -->
<section class="px-4 mb-6">
<div class="glass-card rounded-2xl p-5 border border-gray-700/50">
<h3 class="text-lg font-semibold mb-4 flex items-center gap-2">
<i data-feather="zap" class="w-5 h-5 text-yellow-400"></i>
กิจกรรมแนะนำวันนี้
</h3>
<div class="space-y-3">
<div class="flex items-center justify-between p-3 bg-gray-800/30 rounded-xl">
<div class="flex items-center gap-3">
<div class="w-10 h-10 bg-gradient-to-r from-red-500 to-pink-600 rounded-lg flex items-center justify-center">
<span class="text-xl">🥊</span>
</div>
<div>
<p class="font-medium text-sm">มวยไทย</p>
<p class="text-xs text-gray-400">ระดับความหนักปานกลาง • 45 นาที</p>
</div>
</div>
<div class="text-right">
<p class="text-sm font-medium text-orange-400">คาดเผาผลาญ 450 แคล</p>
<p class="text-xs text-green-400">เหมาะกับค่าฟื้นตัวของคุณ</p>
</div>
</div>
<div class="flex items-center justify-between p-3 bg-gray-800/30 rounded-xl">
<div class="flex items-center gap-3">
<div class="w-10 h-10 bg-gradient-to-r from-blue-500 to-indigo-600 rounded-lg flex items-center justify-center">
<span class="text-xl">🧘</span>
</div>
<div>
<p class="font-medium text-sm">โยคะคลายเครียด</p>
<p class="text-xs text-gray-400">ระดับเบา • 30 นาที</p>
</div>
</div>
<div class="text-right">
<p class="text-sm font-medium text-blue-400">คาดเผาผลาญ 120 แคล</p>
<p class="text-xs text-purple-400">ช่วยลดความเครียดสะสม</p>
</div>
</div>
</div>
</div>
</section>
<!-- Community & Challenges -->
<section class="px-4 mb-6">
<div class="glass-card rounded-2xl p-5 border border-gray-700/50">
<div class="flex justify-between items-center mb-4">
<h3 class="text-lg font-semibold flex items-center gap-2">
<i data-feather="users" class="w-5 h-5 text-purple-400"></i>
ทีม & ความท้าทาย
</h3>
<span class="text-xs bg-gradient-to-r from-purple-500 to-pink-600 text-white px-2 py-1 rounded-full">ใหม่</span>
</div>
<div class="space-y-3">
<div class="p-3 bg-gradient-to-r from-purple-500/20 to-pink-600/20 rounded-xl border border-purple-500/30">
<div class="flex items-center justify-between mb-2">
<p class="font-medium text-sm">ท้าทาย: นอนให้ครบ 8 ชม.</p>
<span class="text-xs text-purple-400">5 วันเหลือ</span>
</div>
<div class="flex items-center gap-2">
<div class="flex-1 bg-gray-700 rounded-full h-2">
<div class="bg-purple-400 h-2 rounded-full" style="width: 75%"></div>
</div>
<span class="text-xs font-medium">5/7</span>
</div>
<p class="text-xs text-gray-400 mt-1">ทีม: ชาวออฟฟิศสุขภาพดี</p>
</div>
<div class="p-3 bg-gray-800/30 rounded-xl">
<div class="flex items-center gap-3">
<div class="w-8 h-8 bg-gradient-to-r from-yellow-500 to-orange-500 rounded-full flex items-center justify-center text-sm font-bold">
2
</div>
<div class="flex-1">
<p class="text-sm font-medium">อันดับในทีม</p>
<p class="text-xs text-gray-400">จาก 15 คน • Recovery เฉลี่ย 78%</p>
</div>
<div class="text-right">
<p class="text-sm font-medium text-yellow-400">1,247 คะแนน</p>
</div>
</div>
</div>
</div>
</div>
</section>
</div>
<!-- Bottom Navigation -->
<main-navbar></main-navbar>
<!-- Scripts -->
<script src="components/navbar.js"></script>
<script src="components/ai-coach-card.js"></script>
<script src="components/vital-circle.js"></script>
<script src="components/hardware-status.js"></script>
<script src="components/mood-logger.js"></script>
<script src="components/meal-logger-enhanced.js"></script>
<script src="script.js"></script>
<script>feather.replace();</script>
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
</body>
</html> |