File size: 27,540 Bytes
8ccefa6 508cc8b | 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 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mentee Feedback Dashboard</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<style>
.score-cell {
@apply px-4 py-3 text-center;
}
.score-1 { background-color: #ffcccc; color: #cc0000; }
.score-2 { background-color: #ffdddd; color: #cc2222; }
.score-3 { background-color: #ffe6cc; color: #cc4400; }
.score-4 { background-color: #fff2cc; color: #cc8800; }
.score-5 { background-color: #ffffcc; color: #cccc00; }
.score-6 { background-color: #e6ffcc; color: #88cc00; }
.score-7 { background-color: #ccffcc; color: #00cc00; }
.score-8 { background-color: #ccffe6; color: #00cc66; }
.score-9 { background-color: #ccffff; color: #00cccc; }
.score-10 { background-color: #cce6ff; color: #0066cc; }
.scrollbar-hide::-webkit-scrollbar {
display: none;
}
.scrollbar-hide {
-ms-overflow-style: none;
scrollbar-width: none;
}
</style>
</head>
<body class="bg-gray-50">
<div class="min-h-screen">
<!-- Header -->
<header class="bg-indigo-700 text-white shadow-lg">
<div class="container mx-auto px-4 py-6">
<div class="flex flex-col md:flex-row justify-between items-start md:items-center gap-4">
<div>
<h1 class="text-2xl md:text-3xl font-bold">Mentee Feedback Dashboard</h1>
<p class="text-indigo-200">Comprehensive analysis of mentee progress and satisfaction</p>
</div>
<div class="flex items-center space-x-4">
<div class="relative">
<select id="month-filter" class="bg-indigo-600 text-white rounded-lg px-4 py-2 pr-8 border border-indigo-500 focus:outline-none focus:ring-2 focus:ring-indigo-400">
<option value="all">All Months</option>
<option value="February">February</option>
<option value="March">March</option>
<option value="April">April</option>
<option value="May">May</option>
<option value="June">June</option>
<option value="July">July</option>
<option value="August">August</option>
</select>
<i data-feather="chevron-down" class="absolute right-3 top-2.5 text-indigo-300"></i>
</div>
<button id="export-btn" class="bg-white text-indigo-700 px-4 py-2 rounded-lg font-medium hover:bg-gray-100 transition flex items-center gap-2">
<i data-feather="download" class="w-4 h-4"></i> Export
</button>
</div>
</div>
</div>
</header>
<!-- Dashboard Content -->
<main class="container mx-auto px-4 py-8">
<!-- Summary Cards -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8" data-aos="fade-up">
<div class="bg-white rounded-xl shadow-md p-6 border-l-4 border-indigo-500">
<h3 class="text-gray-500 font-medium">Total Mentees</h3>
<div class="flex justify-between items-end mt-2">
<span class="text-3xl font-bold text-gray-800">17</span>
<div class="text-green-500 flex items-center">
<i data-feather="trending-up" class="w-5 h-5 mr-1"></i>
<span class="text-sm">8% from last month</span>
</div>
</div>
</div>
<div class="bg-white rounded-xl shadow-md p-6 border-l-4 border-blue-500">
<h3 class="text-gray-500 font-medium">Avg. Satisfaction</h3>
<div class="flex justify-between items-end mt-2">
<span class="text-3xl font-bold text-gray-800">4.5/5</span>
<div class="text-green-500 flex items-center">
<i data-feather="thumbs-up" class="w-5 h-5 mr-1"></i>
<span class="text-sm">96% positive</span>
</div>
</div>
</div>
<div class="bg-white rounded-xl shadow-md p-6 border-l-4 border-green-500">
<h3 class="text-gray-500 font-medium">Avg. Progress</h3>
<div class="flex justify-between items-end mt-2">
<span class="text-3xl font-bold text-gray-800">6.2/10</span>
<div class="text-green-500 flex items-center">
<i data-feather="activity" class="w-5 h-5 mr-1"></i>
<span class="text-sm">12% improvement</span>
</div>
</div>
</div>
<div class="bg-white rounded-xl shadow-md p-6 border-l-4 border-purple-500">
<h3 class="text-gray-500 font-medium">Avg. Hours Spent</h3>
<div class="flex justify-between items-end mt-2">
<span class="text-3xl font-bold text-gray-800">1.7</span>
<div class="text-yellow-500 flex items-center">
<i data-feather="clock" class="w-5 h-5 mr-1"></i>
<span class="text-sm">+0.3 from last month</span>
</div>
</div>
</div>
</div>
<!-- Charts Section -->
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8">
<!-- Progress Scores Chart -->
<div class="bg-white rounded-xl shadow-md p-6" data-aos="fade-up">
<h2 class="text-xl font-bold text-gray-800 mb-4">Progress Scores Distribution</h2>
<div class="h-80">
<canvas id="progressChart"></canvas>
</div>
</div>
<!-- Satisfaction Scores Chart -->
<div class="bg-white rounded-xl shadow-md p-6" data-aos="fade-up">
<h2 class="text-xl font-bold text-gray-800 mb-4">Mentor Satisfaction</h2>
<div class="h-80">
<canvas id="satisfactionChart"></canvas>
</div>
</div>
</div>
<!-- Key Metrics Trends -->
<div class="bg-white rounded-xl shadow-md p-6 mb-8" data-aos="fade-up">
<h2 class="text-xl font-bold text-gray-800 mb-4">Key Metrics Trends</h2>
<div class="h-96">
<canvas id="trendsChart"></canvas>
</div>
</div>
<!-- Mentee Data Table -->
<div class="bg-white rounded-xl shadow-md overflow-hidden mb-8" data-aos="fade-up">
<div class="px-6 py-4 border-b border-gray-200">
<h2 class="text-xl font-bold text-gray-800">Mentee Feedback Data</h2>
</div>
<div class="overflow-x-auto scrollbar-hide">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th scope="col" class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Mentee</th>
<th scope="col" class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Month</th>
<th scope="col" class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Workshop</th>
<th scope="col" class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Time Spent</th>
<th scope="col" class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Study Time</th>
<th scope="col" class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Motivation</th>
<th scope="col" class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Performance</th>
<th scope="col" class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Happiness</th>
<th scope="col" class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Satisfaction</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr class="hover:bg-gray-50">
<td class="px-4 py-4 whitespace-nowrap font-medium text-gray-900">Sharfaa Kippie</td>
<td class="px-4 py-4 whitespace-nowrap text-gray-500">May</td>
<td class="px-4 py-4 whitespace-nowrap text-gray-500">No</td>
<td class="px-4 py-4 whitespace-nowrap text-gray-500">1h</td>
<td class="score-cell score-6">6</td>
<td class="score-cell score-6">6</td>
<td class="score-cell score-6">6</td>
<td class="score-cell score-6">6</td>
<td class="score-cell score-5">5</td>
</tr>
<tr class="hover:bg-gray-50">
<td class="px-4 py-4 whitespace-nowrap font-medium text-gray-900">Tristan Petersen</td>
<td class="px-4 py-4 whitespace-nowrap text-gray-500">May</td>
<td class="px-4 py-4 whitespace-nowrap text-gray-500">Yes</td>
<td class="px-4 py-4 whitespace-nowrap text-gray-500">2h</td>
<td class="score-cell score-5">5</td>
<td class="score-cell score-7">7</td>
<td class="score-cell score-6">6</td>
<td class="score-cell score-4">4</td>
<td class="score-cell score-5">5</td>
</tr>
<tr class="hover:bg-gray-50">
<td class="px-4 py-4 whitespace-nowrap font-medium text-gray-900">Jasmine Martin</td>
<td class="px-4 py-4 whitespace-nowrap text-gray-500">April</td>
<td class="px-4 py-4 whitespace-nowrap text-gray-500">No</td>
<td class="px-4 py-4 whitespace-nowrap text-gray-500">1h</td>
<td class="score-cell score-5">5</td>
<td class="score-cell score-5">5</td>
<td class="score-cell score-6">6</td>
<td class="score-cell score-6">6</td>
<td class="score-cell score-5">5</td>
</tr>
<tr class="hover:bg-gray-50">
<td class="px-4 py-4 whitespace-nowrap font-medium text-gray-900">Tayyibah botha</td>
<td class="px-4 py-4 whitespace-nowrap text-gray-500">May</td>
<td class="px-4 py-4 whitespace-nowrap text-gray-500">Yes</td>
<td class="px-4 py-4 whitespace-nowrap text-gray-500">1h</td>
<td class="score-cell score-7">7</td>
<td class="score-cell score-7">7</td>
<td class="score-cell score-6">6</td>
<td class="score-cell score-7">7</td>
<td class="score-cell score-4">4</td>
</tr>
<tr class="hover:bg-gray-50">
<td class="px-4 py-4 whitespace-nowrap font-medium text-gray-900">Christopher krigga</td>
<td class="px-4 py-4 whitespace-nowrap text-gray-500">April</td>
<td class="px-4 py-4 whitespace-nowrap text-gray-500">Yes</td>
<td class="px-4 py-4 whitespace-nowrap text-gray-500">2h</td>
<td class="score-cell score-6">6</td>
<td class="score-cell score-5">5</td>
<td class="score-cell score-6">6</td>
<td class="score-cell score-4">4</td>
<td class="score-cell score-5">5</td>
</tr>
</tbody>
</table>
</div>
<div class="px-6 py-4 bg-gray-50 border-t border-gray-200 flex justify-between items-center">
<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">17</span> entries
</div>
<div class="flex space-x-2">
<button class="px-3 py-1 border border-gray-300 rounded-md text-sm font-medium text-gray-700 bg-white hover:bg-gray-50">Previous</button>
<button class="px-3 py-1 border border-gray-300 rounded-md text-sm font-medium text-white bg-indigo-600 hover:bg-indigo-700">1</button>
<button class="px-3 py-1 border border-gray-300 rounded-md text-sm font-medium text-gray-700 bg-white hover:bg-gray-50">2</button>
<button class="px-3 py-1 border border-gray-300 rounded-md text-sm font-medium text-gray-700 bg-white hover:bg-gray-50">3</button>
<button class="px-3 py-1 border border-gray-300 rounded-md text-sm font-medium text-gray-700 bg-white hover:bg-gray-50">Next</button>
</div>
</div>
</div>
<!-- Feedback Highlights -->
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-8">
<div class="bg-white rounded-xl shadow-md p-6" data-aos="fade-up">
<div class="flex items-center justify-between mb-4">
<h2 class="text-xl font-bold text-gray-800">Positive Feedback</h2>
<span class="bg-green-100 text-green-800 text-xs font-medium px-2.5 py-0.5 rounded-full">17 Comments</span>
</div>
<div class="space-y-4">
<div class="p-4 bg-green-50 rounded-lg border border-green-200">
<p class="text-gray-700 italic">"I am very satisfied with all the work ProVision has put into the program and I am happy to be a part of it."</p>
<p class="text-sm text-gray-500 mt-2">- Tristan Petersen, July</p>
</div>
<div class="p-4 bg-green-50 rounded-lg border border-green-200">
<p class="text-gray-700 italic">"5 - Outstanding: Exceptional transformative resources and support. Profound positive impact on your personal and professional development."</p>
<p class="text-sm text-gray-500 mt-2">- Multiple mentees</p>
</div>
</div>
</div>
<div class="bg-white rounded-xl shadow-md p-6" data-aos="fade-up">
<div class="flex items-center justify-between mb-4">
<h2 class="text-xl font-bold text-gray-800">Areas for Improvement</h2>
<span class="bg-blue-100 text-blue-800 text-xs font-medium px-2.5 py-0.5 rounded-full">5 Comments</span>
</div>
<div class="space-y-4">
<div class="p-4 bg-blue-50 rounded-lg border border-blue-200">
<p class="text-gray-700 italic">"I feel that my mentor and I have a lack of communication"</p>
<p class="text-sm text-gray-500 mt-2">- Gafsa Govender, February</p>
</div>
<div class="p-4 bg-blue-50 rounded-lg border border-blue-200">
<p class="text-gray-700 italic">"Instead of the PDF use a document for the smart goals template"</p>
<p class="text-sm text-gray-500 mt-2">- Tayyibah botha, February</p>
</div>
</div>
</div>
</div>
</main>
<!-- Footer -->
<footer class="bg-gray-800 text-white py-8">
<div class="container mx-auto px-4">
<div class="flex flex-col md:flex-row justify-between items-center">
<div class="mb-4 md:mb-0">
<h3 class="text-xl font-bold">Mentee Feedback Dashboard</h3>
<p class="text-gray-400">Tracking progress and satisfaction</p>
</div>
<div class="flex space-x-6">
<a href="#" class="text-gray-400 hover:text-white transition">
<i data-feather="github" class="w-5 h-5"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white transition">
<i data-feather="mail" class="w-5 h-5"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white transition">
<i data-feather="settings" class="w-5 h-5"></i>
</a>
</div>
</div>
<div class="border-t border-gray-700 mt-6 pt-6 text-center text-gray-400 text-sm">
<p>© 2023 Mentee Feedback Dashboard. All rights reserved.</p>
</div>
</div>
</footer>
</div>
<script>
document.addEventListener('DOMContentLoaded', function() {
// Initialize AOS animations
AOS.init({
duration: 800,
once: true
});
// Initialize Feather Icons
feather.replace();
// Progress Chart
const progressCtx = document.getElementById('progressChart').getContext('2d');
const progressChart = new Chart(progressCtx, {
type: 'bar',
data: {
labels: ['Study Time', 'Motivation', 'Performance', 'Habits', 'Stress', 'Communication', 'Confidence', 'Happiness'],
datasets: [{
label: 'Average Scores',
data: [6.2, 6.5, 5.8, 5.3, 5.9, 6.7, 6.1, 6.3],
backgroundColor: [
'rgba(99, 102, 241, 0.7)',
'rgba(79, 70, 229, 0.7)',
'rgba(67, 56, 202, 0.7)',
'rgba(55, 48, 163, 0.7)',
'rgba(49, 46, 129, 0.7)',
'rgba(99, 102, 241, 0.7)',
'rgba(79, 70, 229, 0.7)',
'rgba(67, 56, 202, 0.7)'
],
borderColor: [
'rgba(99, 102, 241, 1)',
'rgba(79, 70, 229, 1)',
'rgba(67, 56, 202, 1)',
'rgba(55, 48, 163, 1)',
'rgba(49, 46, 129, 1)',
'rgba(99, 102, 241, 1)',
'rgba(79, 70, 229, 1)',
'rgba(67, 56, 202, 1)'
],
borderWidth: 1
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
scales: {
y: {
beginAtZero: true,
max: 10,
ticks: {
stepSize: 1
}
}
},
plugins: {
legend: {
display: false
},
tooltip: {
callbacks: {
label: function(context) {
return context.dataset.label + ': ' + context.raw + '/10';
}
}
}
}
}
});
// Satisfaction Chart
const satisfactionCtx = document.getElementById('satisfactionChart').getContext('2d');
const satisfactionChart = new Chart(satisfactionCtx, {
type: 'doughnut',
data: {
labels: ['Outstanding (5)', 'Exceeds (4)', 'Satisfactory (3)', 'Below (2)', 'Poor (1)'],
datasets: [{
data: [10, 6, 3, 1, 0],
backgroundColor: [
'rgba(74, 222, 128, 0.7)',
'rgba(34, 197, 94, 0.7)',
'rgba(22, 163, 74, 0.7)',
'rgba(21, 128, 61, 0.7)',
'rgba(22, 101, 52, 0.7)'
],
borderColor: [
'rgba(74, 222, 128, 1)',
'rgba(34, 197, 94, 1)',
'rgba(22, 163, 74, 1)',
'rgba(21, 128, 61, 1)',
'rgba(22, 101, 52, 1)'
],
borderWidth: 1
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
plugins: {
legend: {
position: 'right',
},
tooltip: {
callbacks: {
label: function(context) {
const label = context.label || '';
const value = context.raw || 0;
const total = context.dataset.data.reduce((a, b) => a + b, 0);
const percentage = Math.round((value / total) * 100);
return `${label}: ${value} (${percentage}%)`;
}
}
}
}
}
});
// Trends Chart
const trendsCtx = document.getElementById('trendsChart').getContext('2d');
const trendsChart = new Chart(trendsCtx, {
type: 'line',
data: {
labels: ['February', 'March', 'April', 'May', 'June', 'July', 'August'],
datasets: [
{
label: 'Study Time Management',
data: [6.1, 5.8, 6.3, 6.0, 5.9, 6.7, 5.0],
borderColor: 'rgba(99, 102, 241, 1)',
backgroundColor: 'rgba(99, 102, 241, 0.1)',
tension: 0.3,
fill: true
},
{
label: 'Academic Motivation',
data: [6.3, 6.0, 6.1, 6.3, 6.4, 6.8, 5.0],
borderColor: 'rgba(236, 72, 153, 1)',
backgroundColor: 'rgba(236, 72, 153, 0.1)',
tension: 0.3,
fill: true
},
{
label: 'Academic Performance',
data: [5.9, 5.7, 6.0, 5.8, 5.9, 6.2, 5.0],
borderColor: 'rgba(16, 185, 129, 1)',
backgroundColor: 'rgba(16, 185, 129, 0.1)',
tension: 0.3,
fill: true
},
{
label: 'Mentor Satisfaction',
data: [3.8, 4.1, 4.3, 4.5, 4.4, 4.7, 3.0],
borderColor: 'rgba(245, 158, 11, 1)',
backgroundColor: 'rgba(245, 158, 11, 0.1)',
tension: 0.3,
fill: true
}
]
},
options: {
responsive: true,
maintainAspectRatio: false,
scales: {
y: {
beginAtZero: true,
max: 10,
ticks: {
stepSize: 1
}
}
},
plugins: {
tooltip: {
callbacks: {
label: function(context) {
return context.dataset.label + ': ' + context.raw.toFixed(1);
}
}
}
}
}
});
// Filter functionality
document.getElementById('month-filter').addEventListener('change', function() {
const month = this.value;
// In a real app, this would filter the data and update charts/table
console.log('Filter by month:', month);
});
// Export button
document.getElementById('export-btn').addEventListener('click', function() {
// In a real app, this would export the data
alert('Export functionality would be implemented here');
});
});
</script>
</body>
</html>
|