CSNET's picture
โปรดสร้าง HTML5 Web Application ที่มีรูปลักษณ์และฟังก์ชันการทำงานหลักคล้ายแอป WHOOP โดยใช้ DeepSite AI เพื่อให้เป็นแอปที่ใช้งานได้จริง (Full Functionality Mockup) เน้นการแสดงผลข้อมูลสุขภาพและสมรรถนะในรูปแบบ Dashboard และ Detailed Views
28f4aa5 verified
Raw History Blame Contribute Delete
5.56 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Recovery - WHOOP Health Tracker</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<link rel="stylesheet" href="style.css">
<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>
<script src="components/navbar.js"></script>
<script src="components/recovery-gauge.js"></script>
</head>
<body class="bg-black text-white min-h-screen">
<custom-navbar active="recovery"></custom-navbar>
<main class="container mx-auto px-4 py-6 max-w-7xl">
<!-- Recovery Score Section -->
<div class="mb-8">
<div class="bg-gray-900 rounded-2xl p-6 border border-gray-800">
<h1 class="text-3xl font-bold mb-6">Today's Recovery</h1>
<div class="grid md:grid-cols-2 gap-8">
<!-- Recovery Gauge -->
<div class="flex flex-col items-center">
<custom-recovery-gauge id="recoveryGauge"></custom-recovery-gauge>
<p class="text-center mt-4 text-gray-400">Recovery Score</p>
</div>
<!-- Key Metrics -->
<div class="space-y-4">
<div class="bg-gray-800 rounded-lg p-4">
<div class="flex justify-between items-center">
<span class="text-gray-400">Heart Rate Variability</span>
<span id="hrvValue" class="text-2xl font-bold text-green-400">--</span>
</div>
<div class="text-sm text-gray-500 mt-1">ms</div>
</div>
<div class="bg-gray-800 rounded-lg p-4">
<div class="flex justify-between items-center">
<span class="text-gray-400">Resting Heart Rate</span>
<span id="rhrValue" class="text-2xl font-bold text-blue-400">--</span>
</div>
<div class="text-sm text-gray-500 mt-1">bpm</div>
</div>
<div class="bg-gray-800 rounded-lg p-4">
<div class="flex justify-between items-center">
<span class="text-gray-400">Respiratory Rate</span>
<span id="respRateValue" class="text-2xl font-bold text-purple-400">--</span>
</div>
<div class="text-sm text-gray-500 mt-1">breaths/min</div>
</div>
<div class="bg-gray-800 rounded-lg p-4 border-l-4 border-yellow-400">
<div class="flex justify-between items-center">
<span class="text-gray-400">Today's Strain Target</span>
<span id="strainTarget" class="text-2xl font-bold text-yellow-400">--</span>
</div>
<div class="text-sm text-gray-500 mt-1">Recommended based on recovery</div>
</div>
</div>
</div>
</div>
</div>
<!-- Recovery Trends -->
<div class="mb-8">
<div class="bg-gray-900 rounded-2xl p-6 border border-gray-800">
<h2 class="text-xl font-bold mb-4">30-Day Recovery Trend</h2>
<div class="h-64">
<canvas id="recoveryTrendChart"></canvas>
</div>
</div>
</div>
<!-- HRV & RHR Trends -->
<div class="grid md:grid-cols-2 gap-6">
<div class="bg-gray-900 rounded-2xl p-6 border border-gray-800">
<h2 class="text-xl font-bold mb-4">HRV Trend</h2>
<div class="h-48">
<canvas id="hrvTrendChart"></canvas>
</div>
</div>
<div class="bg-gray-900 rounded-2xl p-6 border border-gray-800">
<h2 class="text-xl font-bold mb-4">Resting HR Trend</h2>
<div class="h-48">
<canvas id="rhrTrendChart"></canvas>
</div>
</div>
</div>
<!-- Recovery Insights -->
<div class="mt-8 bg-gradient-to-r from-gray-900 to-gray-800 rounded-2xl p-6 border border-gray-700">
<h2 class="text-xl font-bold mb-4 flex items-center">
<i data-feather="info" class="w-5 h-5 mr-2"></i>
Recovery Insights
</h2>
<div id="insights" class="space-y-3">
<!-- Insights will be populated by JavaScript -->
</div>
</div>
</main>
<script src="script.js"></script>
<script src="mockData.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
feather.replace();
initializeRecoveryPage();
});
</script>
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
</body>
</html>