whoopfit-tracker / index.html
CSNET's picture
ΰΈ—ΰΈ³ΰΉ€ΰΈ§ΰΉ‡ΰΈšΰΉΰΈ­ΰΈž html5 ΰΈ«ΰΈ™ΰΈΆΰΉˆΰΈ‡ΰΈ«ΰΈ™ΰΉ‰ΰΈ²ΰΈ—ΰΈ΅ΰΉˆΰΈ‘ΰΈ΅ Feature ΰΉƒΰΈŠΰΉ‰ΰΈ‡ΰΈ²ΰΈ™ΰΉ„ΰΈ”ΰΉ‰ΰΈˆΰΈ£ΰΈ΄ΰΈ‡ΰΈ—ΰΈ±ΰΉ‰ΰΈ‡ΰΈ«ΰΈ‘ΰΈ”ΰΈ•ΰΈ²ΰΈ‘ΰΉΰΈ­ΰΈž Whoop version ΰΈ₯่าΰΈͺΰΈΈΰΈ” ΰΉ€ΰΈ­ΰΈ²ΰΈ«ΰΈ™ΰΉ‰ΰΈ²ΰΈˆΰΈ­ΰΈ—ΰΈΈΰΈΰΈ­ΰΈ’ΰΉˆΰΈ²ΰΈ‡ΰΉ€ΰΈ«ΰΈ‘ΰΈ·ΰΈ­ΰΈ™ΰΉ€ΰΈ›ΰΉŠΰΈ°ΰΉ€ΰΈ₯ΰΈ’ΰΈ™ΰΈ°
b291c07 verified
Raw History Blame Contribute Delete
31.2 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>WhoopFit Tracker - Your Health Performance</title>
<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>
</head>
<body class="bg-gray-50 font-sans">
<!-- Main Container -->
<div class="max-w-md mx-auto bg-white min-h-screen relative">
<!-- Header -->
<header class="bg-white border-b border-gray-200 sticky top-0 z-50">
<div class="flex items-center justify-between p-4">
<div class="flex items-center space-x-3">
<div class="w-10 h-10 bg-emerald-500 rounded-full flex items-center justify-center">
<span class="text-white font-bold text-lg">W</span>
</div>
<div>
<h1 class="text-lg font-semibold text-gray-900">WhoopFit</h1>
<p class="text-xs text-gray-500">Member since 2024</p>
</div>
</div>
<div class="flex items-center space-x-3">
<button class="relative p-2 hover:bg-gray-100 rounded-lg transition">
<i data-feather="bell" class="w-5 h-5 text-gray-700"></i>
<span class="absolute top-1 right-1 w-2 h-2 bg-red-500 rounded-full"></span>
</button>
<button onclick="showProfile()" class="w-10 h-10 rounded-full overflow-hidden border-2 border-emerald-500">
<img src="http://static.photos/people/100x100/45" alt="Profile" class="w-full h-full object-cover">
</button>
</div>
</div>
</header>
<!-- Main Content Area -->
<main id="mainContent" class="pb-20">
<!-- Dashboard View -->
<div id="dashboardView" class="view">
<!-- Date Selector -->
<div class="bg-white px-4 py-3 flex items-center justify-between border-b border-gray-100">
<button class="p-1">
<i data-feather="chevron-left" class="w-5 h-5 text-gray-600"></i>
</button>
<div class="text-center">
<p class="text-sm font-medium text-gray-900">Today</p>
<p class="text-xs text-gray-500">December 15, 2024</p>
</div>
<button class="p-1">
<i data-feather="chevron-right" class="w-5 h-5 text-gray-600"></i>
</button>
</div>
<!-- Primary Metrics -->
<div class="p-4 space-y-4">
<!-- Recovery Score -->
<div class="bg-gradient-to-br from-emerald-50 to-emerald-100 rounded-2xl p-5 border border-emerald-200">
<div class="flex items-start justify-between mb-3">
<div>
<p class="text-sm font-medium text-emerald-900">Recovery</p>
<p class="text-3xl font-bold text-emerald-900 mt-1">78%</p>
</div>
<div class="bg-white rounded-full p-2">
<i data-feather="activity" class="w-6 h-6 text-emerald-600"></i>
</div>
</div>
<div class="flex items-center space-x-2 text-sm text-emerald-700">
<i data-feather="trending-up" class="w-4 h-4"></i>
<span>Good recovery</span>
</div>
<div class="mt-3 bg-white bg-opacity-60 rounded-full h-2 overflow-hidden">
<div class="bg-emerald-500 h-full rounded-full" style="width: 78%"></div>
</div>
</div>
<!-- Strain Score -->
<div class="bg-gradient-to-br from-yellow-50 to-yellow-100 rounded-2xl p-5 border border-yellow-200">
<div class="flex items-start justify-between mb-3">
<div>
<p class="text-sm font-medium text-yellow-900">Day Strain</p>
<p class="text-3xl font-bold text-yellow-900 mt-1">12.3</p>
</div>
<div class="bg-white rounded-full p-2">
<i data-feather="zap" class="w-6 h-6 text-yellow-600"></i>
</div>
</div>
<div class="flex items-center space-x-2 text-sm text-yellow-700">
<i data-feather="info" class="w-4 h-4"></i>
<span>Moderate intensity</span>
</div>
<div class="mt-3 bg-white bg-opacity-60 rounded-full h-2 overflow-hidden">
<div class="bg-yellow-500 h-full rounded-full" style="width: 41%"></div>
</div>
</div>
<!-- Sleep Score -->
<div class="bg-gradient-to-br from-indigo-50 to-indigo-100 rounded-2xl p-5 border border-indigo-200">
<div class="flex items-start justify-between mb-3">
<div>
<p class="text-sm font-medium text-indigo-900">Sleep Performance</p>
<p class="text-3xl font-bold text-indigo-900 mt-1">85%</p>
</div>
<div class="bg-white rounded-full p-2">
<i data-feather="moon" class="w-6 h-6 text-indigo-600"></i>
</div>
</div>
<div class="flex items-center space-x-2 text-sm text-indigo-700">
<i data-feather="clock" class="w-4 h-4"></i>
<span>7h 42m total</span>
</div>
<div class="mt-3 bg-white bg-opacity-60 rounded-full h-2 overflow-hidden">
<div class="bg-indigo-500 h-full rounded-full" style="width: 85%"></div>
</div>
</div>
</div>
<!-- Quick Stats -->
<div class="px-4 pb-4">
<h3 class="text-sm font-semibold text-gray-700 mb-3">Today's Snapshot</h3>
<div class="grid grid-cols-2 gap-3">
<div class="bg-white border border-gray-200 rounded-xl p-3">
<div class="flex items-center space-x-2 mb-1">
<i data-feather="heart" class="w-4 h-4 text-red-500"></i>
<span class="text-xs text-gray-600">Resting HR</span>
</div>
<p class="text-xl font-bold text-gray-900">54 bpm</p>
</div>
<div class="bg-white border border-gray-200 rounded-xl p-3">
<div class="flex items-center space-x-2 mb-1">
<i data-feather="trending-up" class="w-4 h-4 text-emerald-500"></i>
<span class="text-xs text-gray-600">HRV</span>
</div>
<p class="text-xl font-bold text-gray-900">42 ms</p>
</div>
<div class="bg-white border border-gray-200 rounded-xl p-3">
<div class="flex items-center space-x-2 mb-1">
<i data-feather="thermometer" class="w-4 h-4 text-orange-500"></i>
<span class="text-xs text-gray-600">Skin Temp</span>
</div>
<p class="text-xl font-bold text-gray-900">98.2Β°F</p>
</div>
<div class="bg-white border border-gray-200 rounded-xl p-3">
<div class="flex items-center space-x-2 mb-1">
<i data-feather="wind" class="w-4 h-4 text-blue-500"></i>
<span class="text-xs text-gray-600">Resp Rate</span>
</div>
<p class="text-xl font-bold text-gray-900">14.2</p>
</div>
</div>
</div>
<!-- Journal Button -->
<div class="px-4 pb-4">
<button onclick="showJournal()" class="w-full bg-emerald-500 hover:bg-emerald-600 text-white font-medium py-3 px-4 rounded-xl flex items-center justify-center space-x-2 transition">
<i data-feather="edit-3" class="w-5 h-5"></i>
<span>Log Journal Entry</span>
</button>
</div>
</div>
<!-- Strain View -->
<div id="strainView" class="view hidden">
<div class="bg-white border-b border-gray-200 p-4">
<h2 class="text-xl font-bold text-gray-900 mb-1">Strain Analysis</h2>
<p class="text-sm text-gray-600">Today's cardiovascular load</p>
</div>
<div class="p-4">
<!-- Current Strain -->
<div class="bg-yellow-50 border border-yellow-200 rounded-2xl p-4 mb-4">
<div class="flex items-center justify-between mb-3">
<div>
<p class="text-sm text-yellow-700 font-medium">Current Strain</p>
<p class="text-4xl font-bold text-yellow-900">12.3</p>
</div>
<div class="relative w-24 h-24">
<canvas id="strainGauge"></canvas>
</div>
</div>
<p class="text-sm text-yellow-700">Moderate intensity workout day</p>
</div>
<!-- Hourly Strain Chart -->
<div class="bg-white border border-gray-200 rounded-xl p-4 mb-4">
<h3 class="text-sm font-semibold text-gray-700 mb-3">Hourly Strain</h3>
<canvas id="hourlyStrainChart" height="150"></canvas>
</div>
<!-- Activities -->
<div class="bg-white border border-gray-200 rounded-xl p-4">
<h3 class="text-sm font-semibold text-gray-700 mb-3">Detected Activities</h3>
<div class="space-y-3">
<div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg">
<div class="flex items-center space-x-3">
<div class="w-10 h-10 bg-yellow-200 rounded-full flex items-center justify-center">
<i data-feather="target" class="w-5 h-5 text-yellow-700"></i>
</div>
<div>
<p class="font-medium text-gray-900">Running</p>
<p class="text-xs text-gray-500">7:30 AM - 8:15 AM</p>
</div>
</div>
<span class="text-lg font-bold text-yellow-600">6.8</span>
</div>
<div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg">
<div class="flex items-center space-x-3">
<div class="w-10 h-10 bg-blue-200 rounded-full flex items-center justify-center">
<i data-feather="package" class="w-5 h-5 text-blue-700"></i>
</div>
<div>
<p class="font-medium text-gray-900">Weight Training</p>
<p class="text-xs text-gray-500">12:00 PM - 1:00 PM</p>
</div>
</div>
<span class="text-lg font-bold text-yellow-600">5.5</span>
</div>
</div>
</div>
</div>
</div>
<!-- Sleep View -->
<div id="sleepView" class="view hidden">
<div class="bg-white border-b border-gray-200 p-4">
<h2 class="text-xl font-bold text-gray-900 mb-1">Sleep Analysis</h2>
<p class="text-sm text-gray-600">Last night's performance</p>
</div>
<div class="p-4">
<!-- Sleep Score -->
<div class="bg-indigo-50 border border-indigo-200 rounded-2xl p-4 mb-4">
<div class="flex items-center justify-between mb-3">
<div>
<p class="text-sm text-indigo-700 font-medium">Sleep Performance</p>
<p class="text-4xl font-bold text-indigo-900">85%</p>
</div>
<div class="text-right">
<p class="text-sm text-indigo-700">Duration</p>
<p class="text-lg font-bold text-indigo-900">7h 42m</p>
</div>
</div>
</div>
<!-- Sleep Stages -->
<div class="bg-white border border-gray-200 rounded-xl p-4 mb-4">
<h3 class="text-sm font-semibold text-gray-700 mb-3">Sleep Stages</h3>
<canvas id="sleepStagesChart" height="150"></canvas>
<div class="mt-4 space-y-2">
<div class="flex items-center justify-between text-sm">
<div class="flex items-center space-x-2">
<div class="w-3 h-3 bg-purple-500 rounded-full"></div>
<span class="text-gray-700">Deep Sleep</span>
</div>
<span class="font-medium">1h 45m</span>
</div>
<div class="flex items-center justify-between text-sm">
<div class="flex items-center space-x-2">
<div class="w-3 h-3 bg-blue-400 rounded-full"></div>
<span class="text-gray-700">REM Sleep</span>
</div>
<span class="font-medium">1h 30m</span>
</div>
<div class="flex items-center justify-between text-sm">
<div class="flex items-center space-x-2">
<div class="w-3 h-3 bg-blue-200 rounded-full"></div>
<span class="text-gray-700">Light Sleep</span>
</div>
<span class="font-medium">4h 15m</span>
</div>
<div class="flex items-center justify-between text-sm">
<div class="flex items-center space-x-2">
<div class="w-3 h-3 bg-gray-300 rounded-full"></div>
<span class="text-gray-700">Awake</span>
</div>
<span class="font-medium">12m</span>
</div>
</div>
</div>
<!-- Sleep Metrics -->
<div class="grid grid-cols-2 gap-3">
<div class="bg-white border border-gray-200 rounded-xl p-3">
<div class="flex items-center space-x-2 mb-1">
<i data-feather="moon" class="w-4 h-4 text-indigo-500"></i>
<span class="text-xs text-gray-600">Sleep Debt</span>
</div>
<p class="text-xl font-bold text-gray-900">-18m</p>
</div>
<div class="bg-white border border-gray-200 rounded-xl p-3">
<div class="flex items-center space-x-2 mb-1">
<i data-feather="sun" class="w-4 h-4 text-orange-500"></i>
<span class="text-xs text-gray-600">Sleep Consistency</span>
</div>
<p class="text-xl font-bold text-gray-900">92%</p>
</div>
</div>
</div>
</div>
<!-- Recovery View -->
<div id="recoveryView" class="view hidden">
<div class="bg-white border-b border-gray-200 p-4">
<h2 class="text-xl font-bold text-gray-900 mb-1">Recovery Status</h2>
<p class="text-sm text-gray-600">Your body's readiness to perform</p>
</div>
<div class="p-4">
<!-- Recovery Score -->
<div class="bg-emerald-50 border border-emerald-200 rounded-2xl p-4 mb-4">
<div class="flex items-center justify-between mb-4">
<div>
<p class="text-5xl font-bold text-emerald-900">78%</p>
<p class="text-sm text-emerald-700 font-medium mt-1">Good Recovery</p>
</div>
<div class="w-28 h-28">
<canvas id="recoveryRing"></canvas>
</div>
</div>
</div>
<!-- Recovery Factors -->
<div class="bg-white border border-gray-200 rounded-xl p-4 mb-4">
<h3 class="text-sm font-semibold text-gray-700 mb-3">Key Factors</h3>
<div class="space-y-3">
<div>
<div class="flex justify-between text-sm mb-1">
<span class="text-gray-600">Heart Rate Variability</span>
<span class="font-medium">42 ms</span>
</div>
<div class="bg-gray-200 rounded-full h-2 overflow-hidden">
<div class="bg-emerald-500 h-full rounded-full" style="width: 85%"></div>
</div>
</div>
<div>
<div class="flex justify-between text-sm mb-1">
<span class="text-gray-600">Resting Heart Rate</span>
<span class="font-medium">54 bpm</span>
</div>
<div class="bg-gray-200 rounded-full h-2 overflow-hidden">
<div class="bg-emerald-500 h-full rounded-full" style="width: 90%"></div>
</div>
</div>
<div>
<div class="flex justify-between text-sm mb-1">
<span class="text-gray-600">Sleep Performance</span>
<span class="font-medium">85%</span>
</div>
<div class="bg-gray-200 rounded-full h-2 overflow-hidden">
<div class="bg-emerald-500 h-full rounded-full" style="width: 85%"></div>
</div>
</div>
<div>
<div class="flex justify-between text-sm mb-1">
<span class="text-gray-600">Respiratory Rate</span>
<span class="font-medium">14.2</span>
</div>
<div class="bg-gray-200 rounded-full h-2 overflow-hidden">
<div class="bg-emerald-500 h-full rounded-full" style="width: 75%"></div>
</div>
</div>
</div>
</div>
<!-- Recommendations -->
<div class="bg-blue-50 border border-blue-200 rounded-xl p-4">
<h3 class="text-sm font-semibold text-blue-900 mb-2">Recommendations</h3>
<ul class="space-y-2 text-sm text-blue-800">
<li class="flex items-start space-x-2">
<i data-feather="check-circle" class="w-4 h-4 mt-0.5 flex-shrink-0"></i>
<span>You're ready for moderate intensity training</span>
</li>
<li class="flex items-start space-x-2">
<i data-feather="check-circle" class="w-4 h-4 mt-0.5 flex-shrink-0"></i>
<span>Consider a light recovery session tomorrow</span>
</li>
<li class="flex items-start space-x-2">
<i data-feather="check-circle" class="w-4 h-4 mt-0.5 flex-shrink-0"></i>
<span>Stay hydrated and maintain your sleep schedule</span>
</li>
</ul>
</div>
</div>
</div>
<!-- Journal View -->
<div id="journalView" class="view hidden">
<div class="bg-white border-b border-gray-200 p-4">
<h2 class="text-xl font-bold text-gray-900 mb-1">Daily Journal</h2>
<p class="text-sm text-gray-600">Track factors affecting your performance</p>
</div>
<div class="p-4">
<form id="journalForm" class="space-y-4">
<!-- How Are You Feeling -->
<div>
<label class="text-sm font-semibold text-gray-700 block mb-2">How are you feeling?</label>
<div class="flex justify-between">
<button type="button" class="mood-btn" data-mood="1">😞</button>
<button type="button" class="mood-btn" data-mood="2">πŸ˜•</button>
<button type="button" class="mood-btn" data-mood="3">😐</button>
<button type="button" class="mood-btn" data-mood="4">πŸ™‚</button>
<button type="button" class="mood-btn" data-mood="5">πŸ˜„</button>
</div>
</div>
<!-- Energy Level -->
<div>
<label class="text-sm font-semibold text-gray-700 block mb-2">Energy Level</label>
<input type="range" id="energyLevel" min="1" max="10" value="7" class="w-full">
<div class="flex justify-between text-xs text-gray-500 mt-1">
<span>Low</span>
<span id="energyValue" class="font-medium text-gray-700">7</span>
<span>High</span>
</div>
</div>
<!-- Stress Level -->
<div>
<label class="text-sm font-semibold text-gray-700 block mb-2">Stress Level</label>
<input type="range" id="stressLevel" min="1" max="10" value="3" class="w-full">
<div class="flex justify-between text-xs text-gray-500 mt-1">
<span>Low</span>
<span id="stressValue" class="font-medium text-gray-700">3</span>
<span>High</span>
</div>
</div>
<!-- Activity Type -->
<div>
<label class="text-sm font-semibold text-gray-700 block mb-2">Planned Activities</label>
<div class="grid grid-cols-2 gap-2">
<label class="activity-label">
<input type="checkbox" class="activity-checkbox" value="running">
<span>πŸƒ Running</span>
</label>
<label class="activity-label">
<input type="checkbox" class="activity-checkbox" value="cycling">
<span>🚴 Cycling</span>
</label>
<label class="activity-label">
<input type="checkbox" class="activity-checkbox" value="swimming">
<span>🏊 Swimming</span>
</label>
<label class="activity-label">
<input type="checkbox" class="activity-checkbox" value="weights">
<span>πŸ‹οΈ Weights</span>
</label>
<label class="activity-label">
<input type="checkbox" class="activity-checkbox" value="yoga">
<span>🧘 Yoga</span>
</label>
<label class="activity-label">
<input type="checkbox" class="activity-checkbox" value="rest">
<span>😴 Rest Day</span>
</label>
</div>
</div>
<!-- Nutrition -->
<div>
<label class="text-sm font-semibold text-gray-700 block mb-2">Nutrition</label>
<div class="space-y-2">
<label class="flex items-center space-x-2">
<input type="checkbox" class="nutrition-checkbox" value="caffeine">
<span class="text-sm text-gray-700">Had caffeine</span>
</label>
<label class="flex items-center space-x-2">
<input type="checkbox" class="nutrition-checkbox" value="alcohol">
<span class="text-sm text-gray-700">Had alcohol</span>
</label>
<label class="flex items-center space-x-2">
<input type="checkbox" class="nutrition-checkbox" value="balanced">
<span class="text-sm text-gray-700">Ate balanced meals</span>
</label>
</div>
</div>
<!-- Notes -->
<div>
<label class="text-sm font-semibold text-gray-700 block mb-2">Additional Notes</label>
<textarea id="journalNotes" rows="3" class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-emerald-500 text-sm" placeholder="How was your day? Any additional thoughts?"></textarea>
</div>
<!-- Submit Button -->
<button type="submit" class="w-full bg-emerald-500 hover:bg-emerald-600 text-white font-medium py-3 px-4 rounded-xl flex items-center justify-center space-x-2 transition">
<i data-feather="save" class="w-5 h-5"></i>
<span>Save Journal Entry</span>
</button>
</form>
</div>
</div>
</main>
<!-- Bottom Navigation -->
<nav class="fixed bottom-0 left-0 right-0 bg-white border-t border-gray-200 max-w-md mx-auto">
<div class="flex items-center justify-around py-2">
<button onclick="showView('dashboardView')" class="nav-btn active" data-view="dashboardView">
<i data-feather="home" class="w-5 h-5"></i>
<span class="text-xs mt-1">Home</span>
</button>
<button onclick="showView('strainView')" class="nav-btn" data-view="strainView">
<i data-feather="zap" class="w-5 h-5"></i>
<span class="text-xs mt-1">Strain</span>
</button>
<button onclick="showView('sleepView')" class="nav-btn" data-view="sleepView">
<i data-feather="moon" class="w-5 h-5"></i>
<span class="text-xs mt-1">Sleep</span>
</button>
<button onclick="showView('recoveryView')" class="nav-btn" data-view="recoveryView">
<i data-feather="activity" class="w-5 h-5"></i>
<span class="text-xs mt-1">Recovery</span>
</button>
<button onclick="showView('journalView')" class="nav-btn" data-view="journalView">
<i data-feather="edit-3" class="w-5 h-5"></i>
<span class="text-xs mt-1">Journal</span>
</button>
</div>
</nav>
</div>
<script src="script.js"></script>
<script>feather.replace();</script>
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
</body>
</html>