undefined / wellness-tracker.html
thipan16's picture
I want create an Ai chatbot for health and medical. User can ask anything about their health and the Ai chatbot will respond according to their personal health and wellness. Provide recommendations and suggestion for health and wellness. Once the recommendations given, it will create a mechanism to track and guide the user to achieve the recommended interventions.
2641420 verified
Raw History Blame Contribute Delete
21.1 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Wellness Tracker | HealthGuardian AI</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<style>
.progress-ring__circle {
transition: stroke-dashoffset 0.35s;
transform: rotate(-90deg);
transform-origin: 50% 50%;
}
.habit-card {
transition: all 0.3s ease;
}
.habit-card:hover {
transform: translateY(-2px);
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
</style>
</head>
<body class="bg-gray-50 text-gray-800 font-sans">
<div class="min-h-screen flex flex-col">
<!-- Header -->
<header class="bg-white shadow-sm">
<div class="container mx-auto px-4 py-4 flex items-center justify-between">
<div class="flex items-center space-x-3">
<div class="bg-blue-500 p-2 rounded-full">
<i data-feather="activity" class="text-white"></i>
</div>
<h1 class="text-xl font-bold text-gray-800">HealthGuardian AI</h1>
</div>
<nav>
<ul class="flex space-x-6">
<li><a href="index.html" class="text-gray-600 hover:text-blue-500 transition">Home</a></li>
<li><a href="health-records.html" class="text-gray-600 hover:text-blue-500 transition">Health Records</a></li>
<li><a href="wellness-tracker.html" class="text-blue-500 font-medium">Wellness Tracker</a></li>
<li><a href="#" class="text-gray-600 hover:text-blue-500 transition">About</a></li>
</ul>
</nav>
<button class="bg-blue-500 text-white px-4 py-2 rounded-full hover:bg-blue-600 transition flex items-center">
<i data-feather="user" class="mr-2"></i>
Sign In
</button>
</div>
</header>
<!-- Main Content -->
<main class="flex-grow container mx-auto px-4 py-8">
<div class="max-w-6xl mx-auto">
<div class="flex justify-between items-center mb-8">
<h2 class="text-2xl font-bold text-gray-800">Your Wellness Journey</h2>
<button class="bg-blue-500 text-white px-4 py-2 rounded-lg hover:bg-blue-600 transition flex items-center">
<i data-feather="plus" class="mr-2"></i>
New Goal
</button>
</div>
<!-- Progress Overview -->
<div class="bg-white rounded-xl shadow-md p-6 mb-8">
<h3 class="text-lg font-semibold text-gray-800 mb-6">Current Progress</h3>
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
<!-- Water Intake -->
<div class="bg-gray-50 rounded-lg p-4">
<div class="flex items-center justify-between mb-3">
<h4 class="font-medium">Water Intake</h4>
<div class="text-blue-500 font-bold">4/8 glasses</div>
</div>
<div class="progress-bar">
<div class="progress-fill" style="width: 50%"></div>
</div>
<div class="flex justify-between mt-2 text-sm text-gray-600">
<span>Started: Today</span>
<span>50%</span>
</div>
</div>
<!-- Breathing Exercises -->
<div class="bg-gray-50 rounded-lg p-4">
<div class="flex items-center justify-between mb-3">
<h4 class="font-medium">Breathing Exercises</h4>
<div class="text-green-500 font-bold">1/3 today</div>
</div>
<div class="progress-bar">
<div class="progress-fill bg-green-500" style="width: 33%"></div>
</div>
<div class="flex justify-between mt-2 text-sm text-gray-600">
<span>Started: 2 days ago</span>
<span>33%</span>
</div>
</div>
<!-- Sleep Quality -->
<div class="bg-gray-50 rounded-lg p-4">
<div class="flex items-center justify-between mb-3">
<h4 class="font-medium">Sleep Quality</h4>
<div class="text-purple-500 font-bold">Tracking</div>
</div>
<div class="progress-bar">
<div class="progress-fill bg-purple-500" style="width: 75%"></div>
</div>
<div class="flex justify-between mt-2 text-sm text-gray-600">
<span>7-day avg: 6.5h</span>
<span>75%</span>
</div>
</div>
</div>
</div>
<!-- Active Recommendations -->
<div class="bg-white rounded-xl shadow-md p-6 mb-8">
<div class="flex justify-between items-center mb-6">
<h3 class="text-lg font-semibold text-gray-800">Active Recommendations</h3>
<button class="text-blue-500 hover:text-blue-700 text-sm font-medium flex items-center">
<i data-feather="refresh-cw" class="w-4 h-4 mr-1"></i>
Refresh
</button>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
<!-- Recommendation Card -->
<div class="habit-card bg-blue-50 rounded-lg p-5 border border-blue-100">
<div class="flex items-center justify-between mb-4">
<div class="bg-blue-100 p-2 rounded-lg">
<i data-feather="droplet" class="text-blue-500"></i>
</div>
<span class="text-xs font-medium bg-blue-100 text-blue-800 px-2 py-1 rounded-full">Day 1</span>
</div>
<h4 class="font-medium text-gray-800 mb-2">Increase Water Intake</h4>
<p class="text-sm text-gray-600 mb-4">Drink 8 glasses of water daily to stay hydrated and reduce headaches.</p>
<div class="flex justify-between items-center">
<div class="flex space-x-1">
<i data-feather="check-circle" class="w-4 h-4 text-green-500"></i>
<i data-feather="check-circle" class="w-4 h-4 text-green-500"></i>
<i data-feather="check-circle" class="w-4 h-4 text-green-500"></i>
<i data-feather="check-circle" class="w-4 h-4 text-green-500"></i>
<i data-feather="circle" class="w-4 h-4 text-gray-300"></i>
</div>
<button class="text-blue-500 text-sm font-medium">Log</button>
</div>
</div>
<!-- Recommendation Card -->
<div class="habit-card bg-green-50 rounded-lg p-5 border border-green-100">
<div class="flex items-center justify-between mb-4">
<div class="bg-green-100 p-2 rounded-lg">
<i data-feather="activity" class="text-green-500"></i>
</div>
<span class="text-xs font-medium bg-green-100 text-green-800 px-2 py-1 rounded-full">Day 2</span>
</div>
<h4 class="font-medium text-gray-800 mb-2">Deep Breathing</h4>
<p class="text-sm text-gray-600 mb-4">Practice 5-minute breathing exercises 3x daily to reduce stress.</p>
<div class="flex justify-between items-center">
<div class="flex space-x-1">
<i data-feather="check-circle" class="w-4 h-4 text-green-500"></i>
<i data-feather="circle" class="w-4 h-4 text-gray-300"></i>
<i data-feather="circle" class="w-4 h-4 text-gray-300"></i>
</div>
<button class="text-green-500 text-sm font-medium">Start Now</button>
</div>
</div>
<!-- Recommendation Card -->
<div class="habit-card bg-purple-50 rounded-lg p-5 border border-purple-100">
<div class="flex items-center justify-between mb-4">
<div class="bg-purple-100 p-2 rounded-lg">
<i data-feather="moon" class="text-purple-500"></i>
</div>
<span class="text-xs font-medium bg-purple-100 text-purple-800 px-2 py-1 rounded-full">Ongoing</span>
</div>
<h4 class="font-medium text-gray-800 mb-2">Sleep Routine</h4>
<p class="text-sm text-gray-600 mb-4">Aim for 7-8 hours of sleep with consistent bedtime schedule.</p>
<div class="flex justify-between items-center">
<div class="text-xs text-purple-600">
Last night: 6.5h
</div>
<button class="text-purple-500 text-sm font-medium">Track</button>
</div>
</div>
</div>
</div>
<!-- Progress Charts -->
<div class="bg-white rounded-xl shadow-md p-6 mb-8">
<h3 class="text-lg font-semibold text-gray-800 mb-6">Progress Analytics</h3>
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8">
<!-- Water Intake Chart -->
<div>
<div class="flex justify-between items-center mb-4">
<h4 class="font-medium text-gray-800">Water Intake Trend</h4>
<select class="bg-gray-100 border-0 rounded-lg px-3 py-1 text-sm focus:ring-2 focus:ring-blue-500">
<option>Last 7 days</option>
<option selected>Last 30 days</option>
<option>Last 3 months</option>
</select>
</div>
<canvas id="waterChart" height="200"></canvas>
</div>
<!-- Sleep Quality Chart -->
<div>
<div class="flex justify-between items-center mb-4">
<h4 class="font-medium text-gray-800">Sleep Quality</h4>
<select class="bg-gray-100 border-0 rounded-lg px-3 py-1 text-sm focus:ring-2 focus:ring-blue-500">
<option>Last 7 days</option>
<option selected>Last 30 days</option>
<option>Last 3 months</option>
</select>
</div>
<canvas id="sleepChart" height="200"></canvas>
</div>
</div>
</div>
<!-- Recent Activity -->
<div class="bg-white rounded-xl shadow-md p-6">
<h3 class="text-lg font-semibold text-gray-800 mb-6">Recent Activity</h3>
<div class="space-y-4">
<!-- Activity Item -->
<div class="flex items-start space-x-3">
<div class="bg-green-100 p-2 rounded-lg mt-1">
<i data-feather="check-circle" class="text-green-500"></i>
</div>
<div class="flex-1">
<p class="text-gray-800">Completed breathing exercise</p>
<p class="text-sm text-gray-500">Today at 9:15 AM</p>
</div>
</div>
<!-- Activity Item -->
<div class="flex items-start space-x-3">
<div class="bg-blue-100 p-2 rounded-lg mt-1">
<i data-feather="droplet" class="text-blue-500"></i>
</div>
<div class="flex-1">
<p class="text-gray-800">Logged 4 glasses of water</p>
<p class="text-sm text-gray-500">Today at 1:30 PM</p>
</div>
</div>
<!-- Activity Item -->
<div class="flex items-start space-x-3">
<div class="bg-purple-100 p-2 rounded-lg mt-1">
<i data-feather="moon" class="text-purple-500"></i>
</div>
<div class="flex-1">
<p class="text-gray-800">Recorded 6 hours of sleep</p>
<p class="text-sm text-gray-500">Yesterday at 7:00 AM</p>
</div>
</div>
<!-- Activity Item -->
<div class="flex items-start space-x-3">
<div class="bg-yellow-100 p-2 rounded-lg mt-1">
<i data-feather="message-square" class="text-yellow-500"></i>
</div>
<div class="flex-1">
<p class="text-gray-800">AI recommendation: "Try drinking more water to help with headaches"</p>
<p class="text-sm text-gray-500">2 days ago at 3:45 PM</p>
</div>
</div>
</div>
</div>
</div>
</main>
<!-- Footer -->
<footer class="bg-gray-800 text-white py-8">
<div class="container mx-auto px-4">
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
<div>
<h3 class="text-lg font-semibold mb-4">HealthGuardian AI</h3>
<p class="text-gray-400 text-sm">Your AI-powered health companion providing personalized wellness tracking and recommendations.</p>
</div>
<div>
<h4 class="text-md font-semibold mb-4">Quick Links</h4>
<ul class="space-y-2 text-sm text-gray-400">
<li><a href="#" class="hover:text-white transition">Health Assessment</a></li>
<li><a href="#" class="hover:text-white transition">Wellness Programs</a></li>
<li><a href="#" class="hover:text-white transition">Medical Resources</a></li>
<li><a href="#" class="hover:text-white transition">FAQ</a></li>
</ul>
</div>
<div>
<h4 class="text-md font-semibold mb-4">Legal</h4>
<ul class="space-y-2 text-sm text-gray-400">
<li><a href="#" class="hover:text-white transition">Privacy Policy</a></li>
<li><a href="#" class="hover:text-white transition">Terms of Service</a></li>
<li><a href="#" class="hover:text-white transition">Medical Disclaimer</a></li>
</ul>
</div>
<div>
<h4 class="text-md font-semibold mb-4">Contact</h4>
<ul class="space-y-2 text-sm text-gray-400">
<li class="flex items-center">
<i data-feather="mail" class="w-4 h-4 mr-2"></i>
<span>support@healthguardian.ai</span>
</li>
<li class="flex items-center">
<i data-feather="phone" class="w-4 h-4 mr-2"></i>
<span>+1 (555) 987-6543</span>
</li>
<li class="flex items-center">
<i data-feather="map-pin" class="w-4 h-4 mr-2"></i>
<span>San Francisco, CA</span>
</li>
</ul>
</div>
</div>
<div class="border-t border-gray-700 mt-8 pt-6 text-sm text-gray-400">
<div class="flex flex-col md:flex-row justify-between items-center">
<p>© 2023 HealthGuardian AI. All rights reserved.</p>
<div class="flex space-x-4 mt-4 md:mt-0">
<a href="#" class="hover:text-white transition"><i data-feather="facebook"></i></a>
<a href="#" class="hover:text-white transition"><i data-feather="twitter"></i></a>
<a href="#" class="hover:text-white transition"><i data-feather="instagram"></i></a>
<a href="#" class="hover:text-white transition"><i data-feather="linkedin"></i></a>
</div>
</div>
</div>
</div>
</footer>
</div>
<script>
// Initialize Feather Icons
feather.replace();
// Initialize Charts
document.addEventListener('DOMContentLoaded', function() {
// Water Intake Chart
const waterCtx = document.getElementById('waterChart').getContext('2d');
const waterChart = new Chart(waterCtx, {
type: 'bar',
data: {
labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
datasets: [{
label: 'Glasses per day',
data: [4, 5, 6, 5, 7, 4, 6],
backgroundColor: '#3B82F6',
borderRadius: 4
}]
},
options: {
responsive: true,
scales: {
y: {
beginAtZero: true,
max: 8
}
}
}
});
// Sleep Quality Chart
const sleepCtx = document.getElementById('sleepChart').getContext('2d');
const sleepChart = new Chart(sleepCtx, {
type: 'line',
data: {
labels: ['Week 1', 'Week 2', 'Week 3', 'Week 4'],
datasets: [{
label: 'Hours of sleep',
data: [6.5, 6.8, 7.2, 6.5],
borderColor: '#8B5CF6',
backgroundColor: 'rgba(139, 92, 246, 0.1)',
tension: 0.3,
fill: true
}]
},
options: {
responsive: true,
scales: {
y: {
beginAtZero: false,
min: 5,
max: 9
}
}
}
});
});
</script>
</body>
</html>