undefined / progress.html
gloiregdn's picture
Make it usable.
6630326 verified
Raw History Blame Contribute Delete
13.9 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MicrobeMaster | Progress Tracker</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
primary: {
50: '#f0f9ff',
100: '#e0f2fe',
200: '#bae6fd',
300: '#7dd3fc',
400: '#38bdf8',
500: '#0ea5e9',
600: '#0284c7',
700: '#0369a1',
800: '#075985',
900: '#0c4a6e',
},
secondary: {
50: '#f0fdf4',
100: '#dcfce7',
200: '#bbf7d0',
300: '#86efac',
400: '#4ade80',
500: '#22c55e',
600: '#16a34a',
700: '#15803d',
800: '#166534',
900: '#14532d',
}
}
}
}
}
</script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
</head>
<body class="bg-gray-50 min-h-screen">
<!-- Navigation -->
<nav class="bg-primary-700 text-white shadow-lg">
<div class="max-w-6xl mx-auto px-4">
<div class="flex justify-between items-center py-4">
<div class="flex items-center space-x-4">
<i data-feather="flask" class="w-8 h-8"></i>
<span class="font-bold text-xl">MicrobeMaster</span>
</div>
<div class="hidden md:flex items-center space-x-8">
<a href="index.html" class="hover:text-primary-200">Dashboard</a>
<a href="schedule.html" class="hover:text-primary-200">Schedule</a>
<a href="resources.html" class="hover:text-primary-200">Resources</a>
<a href="progress.html" class="hover:text-primary-200 font-medium">Progress</a>
</div>
<button class="md:hidden focus:outline-none">
<i data-feather="menu" class="w-6 h-6"></i>
</button>
</div>
</div>
</nav>
<!-- Main Content -->
<main class="max-w-6xl mx-auto px-4 py-8">
<div class="flex flex-col md:flex-row justify-between items-start md:items-center mb-8">
<div>
<h1 class="text-3xl font-bold text-gray-800">Study Progress</h1>
<p class="text-gray-600">Track your microbiology exam preparation</p>
</div>
<div class="mt-4 md:mt-0">
<select class="bg-white border border-gray-300 rounded-md px-4 py-2 focus:outline-none focus:ring-primary-500 focus:border-primary-500">
<option>Last 7 Days</option>
<option>Last 30 Days</option>
<option>All Time</option>
</select>
</div>
</div>
<!-- Progress Overview -->
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-8">
<!-- Study Hours -->
<div class="bg-white rounded-lg shadow-md p-6">
<div class="flex items-center mb-4">
<div class="bg-primary-100 p-3 rounded-full mr-3">
<i data-feather="clock" class="w-6 h-6 text-primary-600"></i>
</div>
<div>
<h2 class="text-xl font-semibold text-gray-800">Study Hours</h2>
<p class="text-gray-600">This week</p>
</div>
</div>
<div class="text-3xl font-bold text-primary-600 mb-2">18.5</div>
<div class="flex items-center text-sm text-gray-600">
<i data-feather="trending-up" class="w-4 h-4 text-green-500 mr-1"></i>
<span>+2.5 from last week</span>
</div>
</div>
<!-- Topics Covered -->
<div class="bg-white rounded-lg shadow-md p-6">
<div class="flex items-center mb-4">
<div class="bg-secondary-100 p-3 rounded-full mr-3">
<i data-feather="book" class="w-6 h-6 text-secondary-600"></i>
</div>
<div>
<h2 class="text-xl font-semibold text-gray-800">Topics Covered</h2>
<p class="text-gray-600">Total progress</p>
</div>
</div>
<div class="text-3xl font-bold text-secondary-600 mb-2">13/20</div>
<div class="relative w-full h-2 bg-gray-200 rounded-full mt-2">
<div class="absolute top-0 left-0 h-2 bg-secondary-500 rounded-full" style="width: 65%;"></div>
</div>
</div>
<!-- Practice Tests -->
<div class="bg-white rounded-lg shadow-md p-6">
<div class="flex items-center mb-4">
<div class="bg-purple-100 p-3 rounded-full mr-3">
<i data-feather="clipboard" class="w-6 h-6 text-purple-600"></i>
</div>
<div>
<h2 class="text-xl font-semibold text-gray-800">Practice Tests</h2>
<p class="text-gray-600">Completed</p>
</div>
</div>
<div class="text-3xl font-bold text-purple-600 mb-2">4/10</div>
<div class="relative w-full h-2 bg-gray-200 rounded-full mt-2">
<div class="absolute top-0 left-0 h-2 bg-purple-500 rounded-full" style="width: 40%;"></div>
</div>
</div>
</div>
<!-- Progress Charts -->
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8">
<!-- Weekly Study Hours -->
<div class="bg-white rounded-lg shadow-md p-6">
<h2 class="text-xl font-semibold text-gray-800 mb-4">Weekly Study Hours</h2>
<canvas id="weeklyHoursChart" height="250"></canvas>
</div>
<!-- Topic Completion -->
<div class="bg-white rounded-lg shadow-md p-6">
<h2 class="text-xl font-semibold text-gray-800 mb-4">Topic Completion</h2>
<canvas id="topicCompletionChart" height="250"></canvas>
</div>
</div>
<!-- Weak Areas -->
<div class="bg-white rounded-lg shadow-md p-6">
<h2 class="text-xl font-semibold text-gray-800 mb-4">Weak Areas</h2>
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
<div class="border rounded-lg p-4">
<h3 class="font-medium text-gray-800 mb-2">Microbial Genetics</h3>
<div class="flex items-center">
<div class="w-full bg-gray-200 rounded-full h-2.5 mr-2">
<div class="bg-red-500 h-2.5 rounded-full" style="width: 30%"></div>
</div>
<span class="text-sm text-gray-600">30%</span>
</div>
</div>
<div class="border rounded-lg p-4">
<h3 class="font-medium text-gray-800 mb-2">Viral Replication</h3>
<div class="flex items-center">
<div class="w-full bg-gray-200 rounded-full h-2.5 mr-2">
<div class="bg-yellow-500 h-2.5 rounded-full" style="width: 45%"></div>
</div>
<span class="text-sm text-gray-600">45%</span>
</div>
</div>
<div class="border rounded-lg p-4">
<h3 class="font-medium text-gray-800 mb-2">Antimicrobial Resistance</h3>
<div class="flex items-center">
<div class="w-full bg-gray-200 rounded-full h-2.5 mr-2">
<div class="bg-orange-500 h-2.5 rounded-full" style="width: 55%"></div>
</div>
<span class="text-sm text-gray-600">55%</span>
</div>
</div>
</div>
</div>
</main>
<!-- Footer -->
<footer class="bg-gray-800 text-white py-8">
<div class="max-w-6xl mx-auto px-4">
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<div>
<h3 class="text-lg font-semibold mb-4">MicrobeMaster</h3>
<p class="text-gray-400">Your personal study companion for the Microbiology Certification Exam.</p>
</div>
<div>
<h3 class="text-lg font-semibold mb-4">Quick Links</h3>
<ul class="space-y-2">
<li><a href="index.html" class="text-gray-400 hover:text-white">Dashboard</a></li>
<li><a href="schedule.html" class="text-gray-400 hover:text-white">Schedule</a></li>
<li><a href="resources.html" class="text-gray-400 hover:text-white">Resources</a></li>
<li><a href="progress.html" class="text-gray-400 hover:text-white font-medium">Progress</a></li>
</ul>
</div>
<div>
<h3 class="text-lg font-semibold mb-4">Connect</h3>
<div class="flex space-x-4">
<a href="#" class="text-gray-400 hover:text-white">
<i data-feather="twitter" class="w-5 h-5"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white">
<i data-feather="facebook" class="w-5 h-5"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white">
<i data-feather="instagram" class="w-5 h-5"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white">
<i data-feather="linkedin" class="w-5 h-5"></i>
</a>
</div>
<p class="text-gray-400 mt-4">Need help? <a href="#" class="text-primary-400 hover:underline">Contact us</a></p>
</div>
</div>
<div class="border-t border-gray-700 mt-8 pt-6 text-center text-gray-400">
<p>© 2024 MicrobeMaster. All rights reserved.</p>
</div>
</div>
</footer>
<script>
// Weekly Hours Chart
const weeklyHoursCtx = document.getElementById('weeklyHoursChart').getContext('2d');
const weeklyHoursChart = new Chart(weeklyHoursCtx, {
type: 'bar',
data: {
labels: ['Week 1', 'Week 2', 'Week 3', 'Week 4', 'This Week'],
datasets: [{
label: 'Study Hours',
data: [12, 14, 16, 15, 18.5],
backgroundColor: [
'rgba(14, 165, 233, 0.7)',
'rgba(14, 165, 233, 0.7)',
'rgba(14, 165, 233, 0.7)',
'rgba(14, 165, 233, 0.7)',
'rgba(34, 197, 94, 0.7)'
],
borderColor: [
'rgba(14, 165, 233, 1)',
'rgba(14, 165, 233, 1)',
'rgba(14, 165, 233, 1)',
'rgba(14, 165, 233, 1)',
'rgba(34, 197, 94, 1)'
],
borderWidth: 1
}]
},
options: {
responsive: true,
scales: {
y: {
beginAtZero: true,
ticks: {
stepSize: 2
}
}
}
}
});
// Topic Completion Chart
const topicCompletionCtx = document.getElementById('topicCompletionChart').getContext('2d');
const topicCompletionChart = new Chart(topicCompletionCtx, {
type: 'doughnut',
data: {
labels: ['Completed', 'In Progress', 'Not Started'],
datasets: [{
data: [65, 20, 15],
backgroundColor: [
'rgba(34, 197, 94, 0.7)',
'rgba(253, 224, 71, 0.7)',
'rgba(239, 68, 68, 0.7)'
],
borderColor: [
'rgba(34, 197, 94, 1)',
'rgba(253, 224, 71, 1)',
'rgba(239, 68, 68, 1)'
],
borderWidth: 1
}]
},
options: {
responsive: true,
plugins: {
legend: {
position: 'bottom',
}
}
}
});
// Initialize feather icons
feather.replace();
</script>
</body>
</html>