whoop-health-tracker-pro / journal.html
CSNET's picture
โปรดสร้าง HTML5 Web Application ที่มีรูปลักษณ์และฟังก์ชันการทำงานหลักคล้ายแอป WHOOP โดยใช้ DeepSite AI เพื่อให้เป็นแอปที่ใช้งานได้จริง (Full Functionality Mockup) เน้นการแสดงผลข้อมูลสุขภาพและสมรรถนะในรูปแบบ Dashboard และ Detailed Views
28f4aa5 verified
Raw History Blame Contribute Delete
8.25 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Journal - 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>
</head>
<body class="bg-black text-white min-h-screen">
<custom-navbar active="journal"></custom-navbar>
<main class="container mx-auto px-4 py-6 max-w-7xl">
<!-- Journal Form -->
<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">Daily Journal</h1>
<form id="journalForm" class="space-y-6">
<div class="grid md:grid-cols-2 gap-6">
<!-- Behavior Inputs -->
<div class="space-y-4">
<div>
<label class="block text-gray-400 mb-2">Alcohol Intake</label>
<select class="w-full bg-gray-800 border border-gray-700 rounded-lg px-4 py-2 focus:border-blue-500 focus:outline-none">
<option value="none">None</option>
<option value="light">1-2 drinks</option>
<option value="moderate">3-4 drinks</option>
<option value="heavy">5+ drinks</option>
</select>
</div>
<div>
<label class="block text-gray-400 mb-2">Caffeine</label>
<select class="w-full bg-gray-800 border border-gray-700 rounded-lg px-4 py-2 focus:border-blue-500 focus:outline-none">
<option value="none">None</option>
<option value="low">1-2 servings</option>
<option value="moderate">3-4 servings</option>
<option value="high">5+ servings</option>
</select>
</div>
<div>
<label class="block text-gray-400 mb-2">Stress Level</label>
<div class="flex gap-2">
<button type="button" class="stress-btn flex-1 bg-gray-800 border border-gray-700 rounded-lg px-4 py-2 hover:bg-gray-700" data-level="1">Low</button>
<button type="button" class="stress-btn flex-1 bg-gray-800 border border-gray-700 rounded-lg px-4 py-2 hover:bg-gray-700" data-level="2">Med</button>
<button type="button" class="stress-btn flex-1 bg-gray-800 border border-gray-700 rounded-lg px-4 py-2 hover:bg-gray-700" data-level="3">High</button>
</div>
</div>
</div>
<div class="space-y-4">
<div>
<label class="block text-gray-400 mb-2">Medication</label>
<select class="w-full bg-gray-800 border border-gray-700 rounded-lg px-4 py-2 focus:border-blue-500 focus:outline-none">
<option value="none">None</option>
<option value="prescribed">Prescribed</option>
<option value="otc">Over-the-counter</option>
</select>
</div>
<div>
<label class="block text-gray-400 mb-2">Nap Duration</label>
<select class="w-full bg-gray-800 border border-gray-700 rounded-lg px-4 py-2 focus:border-blue-500 focus:outline-none">
<option value="none">No nap</option>
<option value="short">0-30 min</option>
<option value="medium">30-60 min</option>
<option value="long">60+ min</option>
</select>
</div>
<div>
<label class="block text-gray-400 mb-2">Activity Type</label>
<select class="w-full bg-gray-800 border border-gray-700 rounded-lg px-4 py-2 focus:border-blue-500 focus:outline-none">
<option value="none">None</option>
<option value="cardio">Cardio</option>
<option value="strength">Strength</option>
<option value="flexibility">Flexibility</option>
<option value="sports">Sports</option>
</select>
</div>
</div>
</div>
<div>
<label class="block text-gray-400 mb-2">Notes</label>
<textarea class="w-full bg-gray-800 border border-gray-700 rounded-lg px-4 py-2 focus:border-blue-500 focus:outline-none h-24" placeholder="How are you feeling today? Any observations about your recovery or performance?"></textarea>
</div>
<button type="submit" class="bg-blue-600 hover:bg-blue-700 text-white font-semibold py-3 px-6 rounded-lg transition-colors">
Save Entry
</button>
</form>
</div>
</div>
<!-- Behavior Impact Analysis -->
<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">Behavior Impact Analysis</h2>
<div class="grid md:grid-cols-2 gap-6">
<div>
<h3 class="text-lg font-semibold mb-4 text-green-400">Positive Behaviors</h3>
<div id="positiveBehaviors" class="space-y-3">
<!-- Will be populated by JavaScript -->
</div>
</div>
<div>
<h3 class="text-lg font-semibold mb-4 text-red-400">Negative Behaviors</h3>
<div id="negativeBehaviors" class="space-y-3">
<!-- Will be populated by JavaScript -->
</div>
</div>
</div>
</div>
</div>
<!-- Behavior Trends Chart -->
<div class="bg-gray-900 rounded-2xl p-6 border border-gray-800">
<h2 class="text-xl font-bold mb-4">Behavior & Recovery Correlation</h2>
<div class="h-64">
<canvas id="behaviorChart"></canvas>
</div>
</div>
<!-- Recent Entries -->
<div class="mt-8 bg-gray-900 rounded-2xl p-6 border border-gray-800">
<h2 class="text-xl font-bold mb-4">Recent Journal Entries</h2>
<div id="recentEntries" class="space-y-4">
<!-- 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();
initializeJournalPage();
});
</script>
</body>
</html>