Spaces:
Running
Running
File size: 14,128 Bytes
b5fdc7e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Progress | KetoCycle Tracker</title>
<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>
<style>
.progress-card {
backdrop-filter: blur(10px);
background-color: rgba(255, 255, 255, 0.85);
}
@media (prefers-color-scheme: dark) {
.progress-card {
background-color: rgba(15, 23, 42, 0.85);
}
}
.photo-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1rem;
}
.photo-item {
position: relative;
padding-bottom: 100%;
overflow: hidden;
border-radius: 0.75rem;
}
.photo-item img {
position: absolute;
width: 100%;
height: 100%;
object-fit: cover;
}
.stats-item {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 1rem;
border-radius: 0.75rem;
background-color: rgba(255, 255, 255, 0.9);
}
@media (prefers-color-scheme: dark) {
.stats-item {
background-color: rgba(15, 23, 42, 0.9);
}
}
</style>
</head>
<body class="bg-gray-50 dark:bg-gray-900 min-h-screen font-sans pb-16">
<div class="container mx-auto px-4 py-4">
<!-- Header -->
<header class="flex items-center justify-between mb-6">
<button class="p-2 rounded-full bg-gray-200 dark:bg-gray-700">
<i data-feather="arrow-left" class="w-5 h-5"></i>
</button>
<h1 class="text-xl font-bold">Your Progress</h1>
<button class="p-2 rounded-full bg-gray-200 dark:bg-gray-700">
<i data-feather="calendar" class="w-5 h-5"></i>
</button>
</header>
<!-- Time Period Selector -->
<div class="flex justify-between items-center mb-6">
<div class="flex space-x-2 overflow-x-auto pb-2 scrollbar-hide">
<button class="whitespace-nowrap px-4 py-2 bg-primary-500 text-white rounded-full font-medium text-sm">
Week
</button>
<button class="whitespace-nowrap px-4 py-2 bg-gray-200 dark:bg-gray-700 rounded-full font-medium text-sm">
Month
</button>
<button class="whitespace-nowrap px-4 py-2 bg-gray-200 dark:bg-gray-700 rounded-full font-medium text-sm">
Year
</button>
<button class="whitespace-nowrap px-4 py-2 bg-gray-200 dark:bg-gray-700 rounded-full font-medium text-sm">
All Time
</button>
</div>
</div>
<!-- Weight Progress Card -->
<div class="progress-card rounded-xl p-6 shadow-sm mb-6">
<div class="flex justify-between items-center mb-4">
<div>
<h2 class="text-lg font-bold">Weight Progress</h2>
<p class="text-sm text-gray-500 dark:text-gray-400">Current: 72.1 kg</p>
</div>
<button class="text-primary-500 dark:text-primary-300 flex items-center text-sm">
<i data-feather="plus" class="w-4 h-4 mr-1"></i> Add
</button>
</div>
<div class="h-40 mb-4">
<!-- Chart placeholder -->
<div class="h-full flex items-end justify-between">
<div class="flex flex-col items-center">
<div class="w-4 bg-primary-300 rounded-t-sm" style="height: 20%"></div>
<p class="text-xs mt-1">S</p>
</div>
<div class="flex flex-col items-center">
<div class="w-4 bg-primary-300 rounded-t-sm" style="height: 40%"></div>
<p class="text-xs mt-1">M</p>
</div>
<div class="flex flex-col items-center">
<div class="w-4 bg-primary-300 rounded-t-sm" style="height: 30%"></div>
<p class="text-xs mt-1">T</p>
</div>
<div class="flex flex-col items-center">
<div class="w-4 bg-primary-300 rounded-t-sm" style="height: 50%"></div>
<p class="text-xs mt-1">W</p>
</div>
<div class="flex flex-col items-center">
<div class="w-4 bg-primary-300 rounded-t-sm" style="height: 45%"></div>
<p class="text-xs mt-1">T</p>
</div>
<div class="flex flex-col items-center">
<div class="w-4 bg-primary-400 rounded-t-sm" style="height: 60%"></div>
<p class="text-xs mt-1">F</p>
</div>
<div class="flex flex-col items-center">
<div class="w-4 bg-primary-500 rounded-t-sm" style="height: 70%"></div>
<p class="text-xs mt-1">S</p>
</div>
</div>
</div>
<div class="grid grid-cols-3 gap-4 text-center">
<div>
<p class="text-sm text-gray-500 dark:text-gray-400">Start</p>
<p class="font-bold">75.4 kg</p>
</div>
<div>
<p class="text-sm text-gray-500 dark:text-gray-400">Lost</p>
<p class="font-bold text-primary-500">3.3 kg</p>
</div>
<div>
<p class="text-sm text-gray-500 dark:text-gray-400">Goal</p>
<p class="font-bold">68.0 kg</p>
</div>
</div>
</div>
<!-- Measurements -->
<div class="progress-card rounded-xl p-6 shadow-sm mb-6">
<div class="flex justify-between items-center mb-4">
<h2 class="text-lg font-bold">Measurements</h2>
<button class="text-primary-500 dark:text-primary-300 flex items-center text-sm">
<i data-feather="plus" class="w-4 h-4 mr-1"></i> Add
</button>
</div>
<div class="grid grid-cols-2 gap-4">
<div class="stats-item">
<p class="text-sm text-gray-500 dark:text-gray-400">Waist</p>
<p class="text-xl font-bold">82 cm</p>
<p class="text-xs text-primary-500">-4 cm</p>
</div>
<div class="stats-item">
<p class="text-sm text-gray-500 dark:text-gray-400">Hips</p>
<p class="text-xl font-bold">94 cm</p>
<p class="text-xs text-primary-500">-3 cm</p>
</div>
<div class="stats-item">
<p class="text-sm text-gray-500 dark:text-gray-400">Chest</p>
<p class="text-xl font-bold">98 cm</p>
<p class="text-xs text-primary-500">-2 cm</p>
</div>
<div class="stats-item">
<p class="text-sm text-gray-500 dark:text-gray-400">Arm</p>
<p class="text-xl font-bold">32 cm</p>
<p class="text-xs text-gray-500 dark:text-gray-400">+0 cm</p>
</div>
</div>
</div>
<!-- Photos -->
<div class="progress-card rounded-xl p-6 shadow-sm mb-6">
<div class="flex justify-between items-center mb-4">
<h2 class="text-lg font-bold">Progress Photos</h2>
<button class="text-primary-500 dark:text-primary-300 flex items-center text-sm">
<i data-feather="plus" class="w-4 h-4 mr-1"></i> Add
</button>
</div>
<div class="photo-grid">
<div class="photo-item">
<img src="http://static.photos/people/640x360/1" alt="Progress Photo">
<div class="absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/70 to-transparent p-2">
<p class="text-white text-xs">Day 1</p>
</div>
</div>
<div class="photo-item">
<img src="http://static.photos/people/640x360/2" alt="Progress Photo">
<div class="absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/70 to-transparent p-2">
<p class="text-white text-xs">Day 15</p>
</div>
</div>
<div class="photo-item">
<img src="http://static.photos/people/640x360/3" alt="Progress Photo">
<div class="absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/70 to-transparent p-2">
<p class="text-white text-xs">Day 30</p>
</div>
</div>
<div class="photo-item">
<img src="http://static.photos/people/640x360/4" alt="Progress Photo">
<div class="absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/70 to-transparent p-2">
<p class="text-white text-xs">Day 45</p>
</div>
</div>
</div>
</div>
<!-- Ketone Levels -->
<div class="progress-card rounded-xl p-6 shadow-sm mb-6">
<div class="flex justify-between items-center mb-4">
<h2 class="text-lg font-bold">Ketone Levels</h2>
<button class="text-primary-500 dark:text-primary-300 flex items-center text-sm">
<i data-feather="plus" class="w-4 h-4 mr-1"></i> Add
</button>
</div>
<div class="h-40">
<!-- Chart placeholder -->
<div class="h-full flex items-end justify-between">
<div class="flex flex-col items-center">
<div class="w-4 bg-green-300 rounded-t-sm" style="height: 30%"></div>
<p class="text-xs mt-1">Mon</p>
</div>
<div class="flex flex-col items-center">
<div class="w-4 bg-green-400 rounded-t-sm" style="height: 50%"></div>
<p class="text-xs mt-1">Tue</p>
</div>
<div class="flex flex-col items-center">
<div class="w-4 bg-green-500 rounded-t-sm" style="height: 70%"></div>
<p class="text-xs mt-1">Wed</p>
</div>
<div class="flex flex-col items-center">
<div class="w-4 bg-green-400 rounded-t-sm" style="height: 60%"></div>
<p class="text-xs mt-1">Thu</p>
</div>
<div class="flex flex-col items-center">
<div class="w-4 bg-green-300 rounded-t-sm" style="height: 40%"></div>
<p class="text-xs mt-1">Fri</p>
</div>
<div class="flex flex-col items-center">
<div class="w-4 bg-yellow-300 rounded-t-sm" style="height: 20%"></div>
<p class="text-xs mt-1">Sat</p>
</div>
<div class="flex flex-col items-center">
<div class="w-4 bg-yellow-200 rounded-t-sm" style="height: 10%"></div>
<p class="text-xs mt-1">Sun</p>
</div>
</div>
</div>
<div class="mt-4 flex justify-between items-center">
<div>
<p class="text-sm text-gray-500 dark:text-gray-400">Last Reading</p>
<p class="font-bold">1.8 mmol/L</p>
</div>
<div>
<p class="text-sm text-gray-500 dark:text-gray-400">Status</p>
<p class="font-bold text-green-500">Ketosis</p>
</div>
</div>
</div>
</div>
<!-- Bottom Navigation -->
<nav class="fixed bottom-0 left-0 right-0 bg-white dark:bg-gray-800 shadow-lg rounded-t-2xl">
<div class="flex justify-around py-3">
<a href="#" class="flex flex-col items-center text-gray-500 dark:text-gray-400">
<i data-feather="home" class="w-6 h-6"></i>
<span class="text-xs mt-1">Home</span>
</a>
<a href="#" class="flex flex-col items-center text-gray-500 dark:text-gray-400">
<i data-feather="bookmark" class="w-6 h-6"></i>
<span class="text-xs mt-1">Plan</span>
</a>
<a href="#" class="flex flex-col items-center text-gray-500 dark:text-gray-400">
<div class="w-12 h-12 rounded-full bg-primary-500 flex items-center justify-center -mt-6 shadow-lg">
<i data-feather="plus" class="text-white w-6 h-6"></i>
</div>
</a>
<a href="#" class="flex flex-col items-center text-primary-500 dark:text-primary-400">
<i data-feather="trending-up" class="w-6 h-6"></i>
<span class="text-xs mt-1">Progress</span>
</a>
<a href="#" class="flex flex-col items-center text-gray-500 dark:text-gray-400">
<i data-feather="settings" class="w-6 h-6"></i>
<span class="text-xs mt-1">Settings</span>
</a>
</div>
</nav>
<script>
feather.replace();
</script>
</body>
</html>
|