pulse-whoop / index.html
CSNET's picture
**Project Name:** ชีพจร (Pulse) - The Ultimate Thai Health & Recovery Platform
4a7cb62 verified
Raw History Blame Contribute Delete
13.5 kB
<!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>