CSNET's picture
โปรดสร้าง HTML5 Web Application ที่มีรูปลักษณ์และฟังก์ชันการทำงานหลักคล้ายแอป WHOOP โดยใช้ DeepSite AI เพื่อให้เป็นแอปที่ใช้งานได้จริง (Full Functionality Mockup) เน้นการแสดงผลข้อมูลสุขภาพและสมรรถนะในรูปแบบ Dashboard และ Detailed Views
28f4aa5 verified
Raw History Blame Contribute Delete
5.62 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Coach - 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="components/navbar.js"></script>
</head>
<body class="bg-black text-white min-h-screen flex flex-col">
<custom-navbar active="coach"></custom-navbar>
<main class="container mx-auto px-4 py-6 max-w-7xl flex-1">
<div class="bg-gray-900 rounded-2xl border border-gray-800 h-[600px] flex flex-col">
<!-- Chat Header -->
<div class="p-6 border-b border-gray-800">
<div class="flex items-center">
<div class="w-12 h-12 bg-gradient-to-br from-blue-500 to-purple-600 rounded-full flex items-center justify-center mr-4">
<i data-feather="message-circle" class="w-6 h-6"></i>
</div>
<div>
<h1 class="text-xl font-bold">WHOOP Coach</h1>
<p class="text-gray-400 text-sm">Your AI-powered health advisor</p>
</div>
</div>
</div>
<!-- Chat Messages -->
<div id="chatMessages" class="flex-1 overflow-y-auto p-6 space-y-4">
<!-- Welcome Message -->
<div class="flex items-start">
<div class="w-8 h-8 bg-gradient-to-br from-blue-500 to-purple-600 rounded-full flex items-center justify-center mr-3 mt-1">
<i data-feather="cpu" class="w-4 h-4"></i>
</div>
<div class="bg-gray-800 rounded-lg p-4 max-w-md">
<p class="text-gray-300">Hello! I'm your WHOOP Coach. Based on your recent data, I'm here to help you optimize your recovery and performance.</p>
<div class="mt-3 space-y-2">
<button class="coach-prompt w-full text-left bg-gray-700 hover:bg-gray-600 rounded-lg p-3 text-sm transition-colors" data-prompt="recovery">
💪 How was my recovery today?
</button>
<button class="coach-prompt w-full text-left bg-gray-700 hover:bg-gray-600 rounded-lg p-3 text-sm transition-colors" data-prompt="workout">
🏃 What workout should I do today?
</button>
<button class="coach-prompt w-full text-left bg-gray-700 hover:bg-gray-600 rounded-lg p-3 text-sm transition-colors" data-prompt="sleep">
😴 How can I improve my sleep?
</button>
<button class="coach-prompt w-full text-left bg-gray-700 hover:bg-gray-600 rounded-lg p-3 text-sm transition-colors" data-prompt="strain">
📊 Explain my strain data
</button>
</div>
</div>
</div>
</div>
<!-- Chat Input -->
<div class="p-4 border-t border-gray-800">
<form id="chatForm" class="flex gap-3">
<input type="text" id="chatInput" placeholder="Ask me anything about your health data..."
class="flex-1 bg-gray-800 border border-gray-700 rounded-lg px-4 py-3 focus:border-blue-500 focus:outline-none">
<button type="submit" class="bg-blue-600 hover:bg-blue-700 text-white rounded-lg px-6 py-3 flex items-center gap-2 transition-colors">
<i data-feather="send" class="w-4 h-4"></i>
Send
</button>
</form>
</div>
</div>
<!-- Quick Stats -->
<div class="grid grid-cols-2 md:grid-cols-4 gap-4 mt-6">
<div class="bg-gray-900 rounded-lg p-4 border border-gray-800 text-center">
<div class="text-2xl font-bold text-green-400" id="coachRecovery">--</div>
<div class="text-sm text-gray-400 mt-1">Recovery</div>
</div>
<div class="bg-gray-900 rounded-lg p-4 border border-gray-800 text-center">
<div class="text-2xl font-bold text-blue-400" id="coachSleep">--</div>
<div class="text-sm text-gray-400 mt-1">Sleep hrs</div>
</div>
<div class="bg-gray-900 rounded-lg p-4 border border-gray-800 text-center">
<div class="text-2xl font-bold text-yellow-400" id="coachStrain">--</div>
<div class="text-sm text-gray-400 mt-1">Strain</div>
</div>
<div class="bg-gray-900 rounded-lg p-4 border border-gray-800 text-center">
<div class="text-2xl font-bold text-purple-400" id="coachHRV">--</div>
<div class="text-sm text-gray-400 mt-1">HRV (ms)</div>
</div>
</div>
</main>
<script src="script.js"></script>
<script src="mockData.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
feather.replace();
initializeCoachPage();
});
</script>
</body>
</html>