weekly-update / index.html
flamearchitect's picture
Add 3 files
536f936 verified
Raw History Blame Contribute Delete
45.8 kB
<!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>