Spaces:
Running
Running
File size: 45,837 Bytes
536f936 | 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 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FLUSH Program - Weekly Progress Update</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
.slider-thumb::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 24px;
height: 24px;
border-radius: 50%;
background: #4f46e5;
cursor: pointer;
}
.slider-thumb::-moz-range-thumb {
width: 24px;
height: 24px;
border-radius: 50%;
background: #4f46e5;
cursor: pointer;
}
.section-header {
transition: all 0.3s ease;
}
.section-header:hover {
background-color: #f3f4f6;
}
.progress-summary {
background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}
</style>
</head>
<body class="bg-gray-50 font-sans antialiased">
<div class="container mx-auto px-4 py-8 max-w-3xl">
<!-- Header -->
<header class="mb-8 text-center">
<div class="flex items-center justify-center mb-4">
<div class="w-12 h-12 rounded-full bg-indigo-100 flex items-center justify-center mr-3">
<i class="fas fa-heartbeat text-indigo-600 text-xl"></i>
</div>
<h1 class="text-2xl font-bold text-gray-800">FLUSH Program</h1>
</div>
<h2 class="text-xl font-semibold text-gray-700 mb-2">Weekly Progress Update</h2>
<p class="text-gray-600">Help us understand how you're doing this week</p>
<div id="timestamp" class="mt-2 text-sm text-gray-500"></div>
</header>
<!-- Progress Form -->
<form id="progressForm" class="space-y-6">
<!-- Digestion Section -->
<div class="bg-white rounded-lg shadow-sm overflow-hidden">
<div class="section-header flex items-center justify-between p-4 border-b cursor-pointer" onclick="toggleSection('digestion')">
<h3 class="font-medium text-gray-800">
<i class="fas fa-stomach mr-2 text-indigo-500"></i>
Digestion
</h3>
<i class="fas fa-chevron-down text-gray-400 transition-transform duration-200" id="digestion-arrow"></i>
</div>
<div class="section-content p-4 space-y-4" id="digestion-content">
<!-- Bowel Movements -->
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Bowel movement frequency</label>
<div class="flex items-center justify-between text-xs text-gray-500 mb-2">
<span>Less than daily</span>
<span>1-2/day</span>
<span>3+/day</span>
</div>
<input type="range" min="0" max="10" value="5" class="w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer slider-thumb" id="bowel-frequency">
</div>
<!-- Bloating -->
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Bloating/discomfort</label>
<div class="flex items-center justify-between text-xs text-gray-500 mb-2">
<span>None</span>
<span>Mild</span>
<span>Severe</span>
</div>
<input type="range" min="0" max="10" value="5" class="w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer slider-thumb" id="bloating">
</div>
<!-- Other symptoms -->
<div>
<label class="block text-sm font-medium text-gray-700 mb-2">Other symptoms (check all that apply)</label>
<div class="grid grid-cols-2 gap-2">
<label class="inline-flex items-center">
<input type="checkbox" class="rounded border-gray-300 text-indigo-600 focus:ring-indigo-500">
<span class="ml-2 text-sm text-gray-700">Nausea</span>
</label>
<label class="inline-flex items-center">
<input type="checkbox" class="rounded border-gray-300 text-indigo-600 focus:ring-indigo-500">
<span class="ml-2 text-sm text-gray-700">Cramping</span>
</label>
<label class="inline-flex items-center">
<input type="checkbox" class="rounded border-gray-300 text-indigo-600 focus:ring-indigo-500">
<span class="ml-2 text-sm text-gray-700">Heartburn</span>
</label>
<label class="inline-flex items-center">
<input type="checkbox" class="rounded border-gray-300 text-indigo-600 focus:ring-indigo-500">
<span class="ml-2 text-sm text-gray-700">Gas</span>
</label>
</div>
</div>
<!-- Bowel details -->
<div>
<label class="block text-sm font-medium text-gray-700 mb-2">Bowel movement details</label>
<textarea rows="2" class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm" placeholder="Consistency, color, ease, etc."></textarea>
</div>
</div>
</div>
<!-- Energy Section -->
<div class="bg-white rounded-lg shadow-sm overflow-hidden">
<div class="section-header flex items-center justify-between p-4 border-b cursor-pointer" onclick="toggleSection('energy')">
<h3 class="font-medium text-gray-800">
<i class="fas fa-bolt mr-2 text-yellow-500"></i>
Energy & Fatigue
</h3>
<i class="fas fa-chevron-down text-gray-400 transition-transform duration-200" id="energy-arrow"></i>
</div>
<div class="section-content p-4 space-y-4" id="energy-content">
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Energy level</label>
<div class="flex items-center justify-between text-xs text-gray-500 mb-2">
<span>Very low</span>
<span>Moderate</span>
<span>High</span>
</div>
<input type="range" min="0" max="10" value="5" class="w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer slider-thumb" id="energy-level">
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Fatigue level</label>
<div class="flex items-center justify-between text-xs text-gray-500 mb-2">
<span>Severe</span>
<span>Moderate</span>
<span>Minimal</span>
</div>
<input type="range" min="0" max="10" value="5" class="w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer slider-thumb" id="fatigue-level">
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-2">Energy pattern</label>
<select class="mt-1 block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm">
<option>Steady throughout day</option>
<option>Morning energy</option>
<option>Afternoon slump</option>
<option>Evening energy</option>
<option>Crash after meals</option>
</select>
</div>
</div>
</div>
<!-- Sleep Section -->
<div class="bg-white rounded-lg shadow-sm overflow-hidden">
<div class="section-header flex items-center justify-between p-4 border-b cursor-pointer" onclick="toggleSection('sleep')">
<h3 class="font-medium text-gray-800">
<i class="fas fa-moon mr-2 text-purple-500"></i>
Sleep Quality
</h3>
<i class="fas fa-chevron-down text-gray-400 transition-transform duration-200" id="sleep-arrow"></i>
</div>
<div class="section-content p-4 space-y-4" id="sleep-content">
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Sleep quality</label>
<div class="flex items-center justify-between text-xs text-gray-500 mb-2">
<span>Poor</span>
<span>Fair</span>
<span>Excellent</span>
</div>
<input type="range" min="0" max="10" value="5" class="w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer slider-thumb" id="sleep-quality">
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Time to fall asleep</label>
<div class="flex items-center justify-between text-xs text-gray-500 mb-2">
<span>>60 min</span>
<span>30 min</span>
<span><15 min</span>
</div>
<input type="range" min="0" max="10" value="5" class="w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer slider-thumb" id="sleep-onset">
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-2">Sleep disturbances (check all that apply)</label>
<div class="grid grid-cols-2 gap-2">
<label class="inline-flex items-center">
<input type="checkbox" class="rounded border-gray-300 text-indigo-600 focus:ring-indigo-500">
<span class="ml-2 text-sm text-gray-700">Night waking</span>
</label>
<label class="inline-flex items-center">
<input type="checkbox" class="rounded border-gray-300 text-indigo-600 focus:ring-indigo-500">
<span class="ml-2 text-sm text-gray-700">Early waking</span>
</label>
<label class="inline-flex items-center">
<input type="checkbox" class="rounded border-gray-300 text-indigo-600 focus:ring-indigo-500">
<span class="ml-2 text-sm text-gray-700">Vivid dreams</span>
</label>
<label class="inline-flex items-center">
<input type="checkbox" class="rounded border-gray-300 text-indigo-600 focus:ring-indigo-500">
<span class="ml-2 text-sm text-gray-700">Restless legs</span>
</label>
</div>
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-2">Wake feeling</label>
<select class="mt-1 block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm">
<option>Refreshed</option>
<option>Somewhat rested</option>
<option>Unrefreshed</option>
<option>Exhausted</option>
</select>
</div>
</div>
</div>
<!-- Cognitive Section -->
<div class="bg-white rounded-lg shadow-sm overflow-hidden">
<div class="section-header flex items-center justify-between p-4 border-b cursor-pointer" onclick="toggleSection('cognitive')">
<h3 class="font-medium text-gray-800">
<i class="fas fa-brain mr-2 text-blue-500"></i>
Cognitive Clarity
</h3>
<i class="fas fa-chevron-down text-gray-400 transition-transform duration-200" id="cognitive-arrow"></i>
</div>
<div class="section-content p-4 space-y-4" id="cognitive-content">
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Brain fog</label>
<div class="flex items-center justify-between text-xs text-gray-500 mb-2">
<span>Severe</span>
<span>Moderate</span>
<span>Minimal</span>
</div>
<input type="range" min="0" max="10" value="5" class="w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer slider-thumb" id="brain-fog">
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Focus/concentration</label>
<div class="flex items-center justify-between text-xs text-gray-500 mb-2">
<span>Poor</span>
<span>Moderate</span>
<span>Strong</span>
</div>
<input type="range" min="0" max="10" value="5" class="w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer slider-thumb" id="focus">
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Memory</label>
<div class="flex items-center justify-between text-xs text-gray-500 mb-2">
<span>Poor</span>
<span>Moderate</span>
<span>Strong</span>
</div>
<input type="range" min="0" max="10" value="5" class="w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer slider-thumb" id="memory">
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-2">Cognitive notes</label>
<textarea rows="2" class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm" placeholder="Any specific cognitive challenges?"></textarea>
</div>
</div>
</div>
<!-- Mood Section -->
<div class="bg-white rounded-lg shadow-sm overflow-hidden">
<div class="section-header flex items-center justify-between p-4 border-b cursor-pointer" onclick="toggleSection('mood')">
<h3 class="font-medium text-gray-800">
<i class="fas fa-smile mr-2 text-green-500"></i>
Mood & Emotions
</h3>
<i class="fas fa-chevron-down text-gray-400 transition-transform duration-200" id="mood-arrow"></i>
</div>
<div class="section-content p-4 space-y-4" id="mood-content">
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Overall mood</label>
<div class="flex items-center justify-between text-xs text-gray-500 mb-2">
<span>Low</span>
<span>Neutral</span>
<span>Positive</span>
</div>
<input type="range" min="0" max="10" value="5" class="w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer slider-thumb" id="mood">
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-2">Emotional symptoms (check all that apply)</label>
<div class="grid grid-cols-2 gap-2">
<label class="inline-flex items-center">
<input type="checkbox" class="rounded border-gray-300 text-indigo-600 focus:ring-indigo-500">
<span class="ml-2 text-sm text-gray-700">Anxiety</span>
</label>
<label class="inline-flex items-center">
<input type="checkbox" class="rounded border-gray-300 text-indigo-600 focus:ring-indigo-500">
<span class="ml-2 text-sm text-gray-700">Irritability</span>
</label>
<label class="inline-flex items-center">
<input type="checkbox" class="rounded border-gray-300 text-indigo-600 focus:ring-indigo-500">
<span class="ml-2 text-sm text-gray-700">Sadness</span>
</label>
<label class="inline-flex items-center">
<input type="checkbox" class="rounded border-gray-300 text-indigo-600 focus:ring-indigo-500">
<span class="ml-2 text-sm text-gray-700">Mood swings</span>
</label>
</div>
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-2">Stress level</label>
<div class="flex items-center justify-between text-xs text-gray-500 mb-2">
<span>High</span>
<span>Moderate</span>
<span>Low</span>
</div>
<input type="range" min="0" max="10" value="5" class="w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer slider-thumb" id="stress">
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-2">Emotional notes</label>
<textarea rows="2" class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm" placeholder="Any emotional patterns or triggers?"></textarea>
</div>
</div>
</div>
<!-- Skin & Inflammation Section -->
<div class="bg-white rounded-lg shadow-sm overflow-hidden">
<div class="section-header flex items-center justify-between p-4 border-b cursor-pointer" onclick="toggleSection('skin')">
<h3 class="font-medium text-gray-800">
<i class="fas fa-spa mr-2 text-pink-500"></i>
Skin & Inflammation
</h3>
<i class="fas fa-chevron-down text-gray-400 transition-transform duration-200" id="skin-arrow"></i>
</div>
<div class="section-content p-4 space-y-4" id="skin-content">
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Skin changes</label>
<div class="flex items-center justify-between text-xs text-gray-500 mb-2">
<span>Worse</span>
<span>Same</span>
<span>Improved</span>
</div>
<input type="range" min="0" max="10" value="5" class="w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer slider-thumb" id="skin-changes">
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-2">Inflammation symptoms (check all that apply)</label>
<div class="grid grid-cols-2 gap-2">
<label class="inline-flex items-center">
<input type="checkbox" class="rounded border-gray-300 text-indigo-600 focus:ring-indigo-500">
<span class="ml-2 text-sm text-gray-700">Joint pain</span>
</label>
<label class="inline-flex items-center">
<input type="checkbox" class="rounded border-gray-300 text-indigo-600 focus:ring-indigo-500">
<span class="ml-2 text-sm text-gray-700">Muscle aches</span>
</label>
<label class="inline-flex items-center">
<input type="checkbox" class="rounded border-gray-300 text-indigo-600 focus:ring-indigo-500">
<span class="ml-2 text-sm text-gray-700">Headaches</span>
</label>
<label class="inline-flex items-center">
<input type="checkbox" class="rounded border-gray-300 text-indigo-600 focus:ring-indigo-500">
<span class="ml-2 text-sm text-gray-700">Swelling</span>
</label>
</div>
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-2">Skin/inflammation notes</label>
<textarea rows="2" class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm" placeholder="Describe any changes"></textarea>
</div>
</div>
</div>
<!-- Protocol Adherence Section -->
<div class="bg-white rounded-lg shadow-sm overflow-hidden">
<div class="section-header flex items-center justify-between p-4 border-b cursor-pointer" onclick="toggleSection('adherence')">
<h3 class="font-medium text-gray-800">
<i class="fas fa-check-circle mr-2 text-teal-500"></i>
Protocol Adherence
</h3>
<i class="fas fa-chevron-down text-gray-400 transition-transform duration-200" id="adherence-arrow"></i>
</div>
<div class="section-content p-4 space-y-4" id="adherence-content">
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Supplement adherence</label>
<div class="flex items-center justify-between text-xs text-gray-500 mb-2">
<span>0-50%</span>
<span>50-80%</span>
<span>80-100%</span>
</div>
<input type="range" min="0" max="10" value="5" class="w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer slider-thumb" id="supplement-adherence">
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Diet adherence</label>
<div class="flex items-center justify-between text-xs text-gray-500 mb-2">
<span>0-50%</span>
<span>50-80%</span>
<span>80-100%</span>
</div>
<input type="range" min="0" max="10" value="5" class="w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer slider-thumb" id="diet-adherence">
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Water intake</label>
<div class="flex items-center justify-between text-xs text-gray-500 mb-2">
<span>Inadequate</span>
<span>Moderate</span>
<span>Optimal</span>
</div>
<input type="range" min="0" max="10" value="5" class="w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer slider-thumb" id="water-intake">
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-2">Lifestyle practices</label>
<div class="grid grid-cols-2 gap-2">
<label class="inline-flex items-center">
<input type="checkbox" class="rounded border-gray-300 text-indigo-600 focus:ring-indigo-500">
<span class="ml-2 text-sm text-gray-700">Movement</span>
</label>
<label class="inline-flex items-center">
<input type="checkbox" class="rounded border-gray-300 text-indigo-600 focus:ring-indigo-500">
<span class="ml-2 text-sm text-gray-700">Stress reduction</span>
</label>
<label class="inline-flex items-center">
<input type="checkbox" class="rounded border-gray-300 text-indigo-600 focus:ring-indigo-500">
<span class="ml-2 text-sm text-gray-700">Sleep routine</span>
</label>
<label class="inline-flex items-center">
<input type="checkbox" class="rounded border-gray-300 text-indigo-600 focus:ring-indigo-500">
<span class="ml-2 text-sm text-gray-700">Other</span>
</label>
</div>
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-2">Adherence challenges</label>
<textarea rows="2" class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm" placeholder="What made adherence difficult?"></textarea>
</div>
</div>
</div>
<!-- Detox Symptoms Section -->
<div class="bg-white rounded-lg shadow-sm overflow-hidden">
<div class="section-header flex items-center justify-between p-4 border-b cursor-pointer" onclick="toggleSection('detox')">
<h3 class="font-medium text-gray-800">
<i class="fas fa-leaf mr-2 text-emerald-500"></i>
Detox Symptoms
</h3>
<i class="fas fa-chevron-down text-gray-400 transition-transform duration-200" id="detox-arrow"></i>
</div>
<div class="section-content p-4 space-y-4" id="detox-content">
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Detox symptom intensity</label>
<div class="flex items-center justify-between text-xs text-gray-500 mb-2">
<span>None</span>
<span>Mild</span>
<span>Severe</span>
</div>
<input type="range" min="0" max="10" value="5" class="w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer slider-thumb" id="detox-intensity">
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-2">Detox symptoms (check all that apply)</label>
<div class="grid grid-cols-2 gap-2">
<label class="inline-flex items-center">
<input type="checkbox" class="rounded border-gray-300 text-indigo-600 focus:ring-indigo-500">
<span class="ml-2 text-sm text-gray-700">Headache</span>
</label>
<label class="inline-flex items-center">
<input type="checkbox" class="rounded border-gray-300 text-indigo-600 focus:ring-indigo-500">
<span class="ml-2 text-sm text-gray-700">Fatigue</span>
</label>
<label class="inline-flex items-center">
<input type="checkbox" class="rounded border-gray-300 text-indigo-600 focus:ring-indigo-500">
<span class="ml-2 text-sm text-gray-700">Skin rash</span>
</label>
<label class="inline-flex items-center">
<input type="checkbox" class="rounded border-gray-300 text-indigo-600 focus:ring-indigo-500">
<span class="ml-2 text-sm text-gray-700">Mucus</span>
</label>
<label class="inline-flex items-center">
<input type="checkbox" class="rounded border-gray-300 text-indigo-600 focus:ring-indigo-500">
<span class="ml-2 text-sm text-gray-700">Body odor</span>
</label>
<label class="inline-flex items-center">
<input type="checkbox" class="rounded border-gray-300 text-indigo-600 focus:ring-indigo-500">
<span class="ml-2 text-sm text-gray-700">Die-off</span>
</label>
</div>
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-2">Detox symptom notes</label>
<textarea rows="2" class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm" placeholder="Describe symptoms and timing"></textarea>
</div>
</div>
</div>
<!-- Other Notes Section -->
<div class="bg-white rounded-lg shadow-sm overflow-hidden">
<div class="section-header flex items-center justify-between p-4 border-b cursor-pointer" onclick="toggleSection('notes')">
<h3 class="font-medium text-gray-800">
<i class="fas fa-edit mr-2 text-orange-500"></i>
Additional Notes
</h3>
<i class="fas fa-chevron-down text-gray-400 transition-transform duration-200" id="notes-arrow"></i>
</div>
<div class="section-content p-4 space-y-4" id="notes-content">
<div>
<label class="block text-sm font-medium text-gray-700 mb-2">New foods, stressors, or exposures</label>
<textarea rows="2" class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm" placeholder="Anything new this week?"></textarea>
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-2">Questions or requests for guidance</label>
<textarea rows="3" class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm" placeholder="What would you like help with?"></textarea>
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-2">Other observations</label>
<textarea rows="2" class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm" placeholder="Anything else to share?"></textarea>
</div>
</div>
</div>
<!-- Progress Summary -->
<div class="progress-summary rounded-lg p-6 shadow-sm">
<h3 class="text-lg font-medium text-gray-800 mb-4">Weekly Progress Summary</h3>
<div class="mb-4">
<label class="block text-sm font-medium text-gray-700 mb-1">Overall self-rated progress this week (1-10)</label>
<div class="flex items-center justify-between text-xs text-gray-600 mb-2">
<span>No progress</span>
<span>Some progress</span>
<span>Great progress</span>
</div>
<input type="range" min="1" max="10" value="5" class="w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer slider-thumb" id="overall-progress">
<div class="flex justify-between mt-1">
<span class="text-xs text-gray-500">1</span>
<span class="text-xs text-gray-500">10</span>
</div>
</div>
<div class="mb-4">
<label class="block text-sm font-medium text-gray-700 mb-2">Would you like adjustments next week?</label>
<div class="flex items-center space-x-4">
<label class="inline-flex items-center">
<input type="radio" name="adjustments" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500" checked>
<span class="ml-2 text-sm text-gray-700">Yes</span>
</label>
<label class="inline-flex items-center">
<input type="radio" name="adjustments" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500">
<span class="ml-2 text-sm text-gray-700">No</span>
</label>
</div>
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-2">Adjustment notes (optional)</label>
<textarea rows="2" class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm" placeholder="What would you like to adjust?"></textarea>
</div>
</div>
<!-- Submit Button -->
<div class="mt-8">
<button type="submit" class="w-full flex justify-center py-3 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500">
<i class="fas fa-paper-plane mr-2"></i>
Submit Weekly Update
</button>
</div>
</form>
</div>
<!-- Admin Panel (hidden by default) -->
<div id="adminPanel" class="hidden container mx-auto px-4 py-8 max-w-6xl">
<div class="flex items-center justify-between mb-6">
<h2 class="text-2xl font-bold text-gray-800">FLUSH Program - Practitioner Dashboard</h2>
<button onclick="toggleAdminView()" class="px-4 py-2 bg-gray-200 rounded-md text-sm font-medium text-gray-700 hover:bg-gray-300">
<i class="fas fa-user mr-1"></i> Client View
</button>
</div>
<div class="bg-white rounded-lg shadow overflow-hidden">
<div class="px-6 py-4 border-b">
<div class="flex items-center justify-between">
<h3 class="text-lg font-medium text-gray-900">Client Progress Updates</h3>
<div class="flex space-x-2">
<select class="block rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm">
<option>All Clients</option>
<option>Active Clients</option>
<option>New Submissions</option>
</select>
<input type="text" placeholder="Search..." class="block rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm">
</div>
</div>
</div>
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Client</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Date</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Progress</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Key Concerns</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-indigo-100 flex items-center justify-center">
<span class="text-indigo-600 font-medium">JD</span>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Jane Doe</div>
<div class="text-sm text-gray-500">Week 3 of 8</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">Jun 12, 2023</div>
<div class="text-sm text-gray-500">10:24 AM</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="w-24 bg-gray-200 rounded-full h-2.5 mr-2">
<div class="bg-green-600 h-2.5 rounded-full" style="width: 70%"></div>
</div>
<span class="text-sm font-medium text-gray-700">7/10</span>
</div>
</td>
<td class="px-6 py-4">
<div class="text-sm text-gray-900">Bloating, Fatigue, Sleep disturbances</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<a href="#" class="text-indigo-600 hover:text-indigo-900 mr-3">View</a>
<a href="#" class="text-indigo-600 hover:text-indigo-900">Message</a>
</td>
</tr>
<!-- More rows would go here -->
</tbody>
</table>
</div>
<div class="px-6 py-4 border-t flex items-center justify-between">
<div class="text-sm text-gray-500">
Showing <span class="font-medium">1</span> to <span class="font-medium">5</span> of <span class="font-medium">23</span> entries
</div>
<div class="flex space-x-2">
<button class="px-3 py-1 rounded-md border border-gray-300 text-sm font-medium text-gray-700 hover:bg-gray-50">Previous</button>
<button class="px-3 py-1 rounded-md border border-gray-300 bg-gray-100 text-sm font-medium text-gray-700">1</button>
<button class="px-3 py-1 rounded-md border border-gray-300 text-sm font-medium text-gray-700 hover:bg-gray-50">2</button>
<button class="px-3 py-1 rounded-md border border-gray-300 text-sm font-medium text-gray-700 hover:bg-gray-50">Next</button>
</div>
</div>
</div>
</div>
<script>
// Set timestamp
document.getElementById('timestamp').textContent = new Date().toLocaleString();
// Toggle section visibility
function toggleSection(sectionId) {
const content = document.getElementById(`${sectionId}-content`);
const arrow = document.getElementById(`${sectionId}-arrow`);
if (content.classList.contains('hidden')) {
content.classList.remove('hidden');
arrow.classList.remove('fa-chevron-down');
arrow.classList.add('fa-chevron-up');
} else {
content.classList.add('hidden');
arrow.classList.remove('fa-chevron-up');
arrow.classList.add('fa-chevron-down');
}
}
// Toggle between client and admin view
function toggleAdminView() {
const form = document.getElementById('progressForm').parentElement;
const adminPanel = document.getElementById('adminPanel');
if (adminPanel.classList.contains('hidden')) {
adminPanel.classList.remove('hidden');
form.classList.add('hidden');
} else {
adminPanel.classList.add('hidden');
form.classList.remove('hidden');
}
}
// Form submission
document.getElementById('progressForm').addEventListener('submit', function(e) {
e.preventDefault();
// In a real app, this would send data to your backend
alert('Thank you for your update! Your practitioner will review your progress.');
// Reset form
this.reset();
// Update timestamp
document.getElementById('timestamp').textContent = new Date().toLocaleString();
});
// For demo purposes - show admin panel button
document.addEventListener('DOMContentLoaded', function() {
const adminBtn = document.createElement('button');
adminBtn.className = 'fixed bottom-4 right-4 px-4 py-2 bg-indigo-600 rounded-md text-sm font-medium text-white hover:bg-indigo-700 shadow-lg';
adminBtn.innerHTML = '<i class="fas fa-user-shield mr-1"></i> Admin View';
adminBtn.onclick = toggleAdminView;
document.body.appendChild(adminBtn);
});
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=flamearchitect/weekly-update" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html> |