File size: 21,144 Bytes
2641420
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!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>