edutrack-naija / results.html
ifeCode's picture
now add a page for students to view results
2ec9b6f verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>View Results | Naija Scholar Tracker</title>
<link rel="stylesheet" href="style.css">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="components/navbar.js"></script>
<script src="components/footer.js"></script>
</head>
<body class="bg-gray-50">
<custom-navbar></custom-navbar>
<main class="container mx-auto px-4 py-8">
<h1 class="text-3xl font-bold text-green-700 mb-8">Your Examination Results</h1>
<!-- Result Summary -->
<div class="bg-white p-6 rounded-lg shadow-md mb-8">
<div class="flex flex-col md:flex-row justify-between items-start md:items-center mb-6">
<div>
<h2 class="text-xl font-semibold">Adeola Johnson</h2>
<p class="text-gray-600">Admission No: SS/2023/001</p>
</div>
<div class="mt-4 md:mt-0">
<div class="flex items-center">
<div class="bg-green-100 px-4 py-2 rounded-full">
<span class="text-green-800 font-bold">SS2 Science</span>
</div>
</div>
</div>
</div>
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-8">
<div class="bg-gray-50 p-4 rounded-lg">
<p class="text-gray-500">Exam Type</p>
<p class="font-semibold">First Term Examination</p>
</div>
<div class="bg-gray-50 p-4 rounded-lg">
<p class="text-gray-500">Academic Session</p>
<p class="font-semibold">2023/2024</p>
</div>
<div class="bg-gray-50 p-4 rounded-lg">
<p class="text-gray-500">Date Published</p>
<p class="font-semibold">15th October, 2023</p>
</div>
</div>
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Subject</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">CA 1 (10)</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">CA 2 (10)</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Exam (70)</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Total (100)</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Grade</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Remark</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-6 py-4 whitespace-nowrap">Mathematics</td>
<td class="px-6 py-4 whitespace-nowrap">8</td>
<td class="px-6 py-4 whitespace-nowrap">9</td>
<td class="px-6 py-4 whitespace-nowrap">65</td>
<td class="px-6 py-4 whitespace-nowrap font-semibold">82</td>
<td class="px-6 py-4 whitespace-nowrap text-green-600 font-bold">A</td>
<td class="px-6 py-4 whitespace-nowrap">Excellent</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">English Language</td>
<td class="px-6 py-4 whitespace-nowrap">7</td>
<td class="px-6 py-4 whitespace-nowrap">8</td>
<td class="px-6 py-4 whitespace-nowrap">60</td>
<td class="px-6 py-4 whitespace-nowrap font-semibold">75</td>
<td class="px-6 py-4 whitespace-nowrap text-blue-600 font-bold">B</td>
<td class="px-6 py-4 whitespace-nowrap">Very Good</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">Physics</td>
<td class="px-6 py-4 whitespace-nowrap">9</td>
<td class="px-6 py-4 whitespace-nowrap">10</td>
<td class="px-6 py-4 whitespace-nowrap">68</td>
<td class="px-6 py-4 whitespace-nowrap font-semibold">87</td>
<td class="px-6 py-4 whitespace-nowrap text-green-600 font-bold">A</td>
<td class="px-6 py-4 whitespace-nowrap">Excellent</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">Chemistry</td>
<td class="px-6 py-4 whitespace-nowrap">6</td>
<td class="px-6 py-4 whitespace-nowrap">7</td>
<td class="px-6 py-4 whitespace-nowrap">55</td>
<td class="px-6 py-4 whitespace-nowrap font-semibold">68</td>
<td class="px-6 py-4 whitespace-nowrap text-yellow-600 font-bold">C</td>
<td class="px-6 py-4 whitespace-nowrap">Good</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">Biology</td>
<td class="px-6 py-4 whitespace-nowrap">8</td>
<td class="px-6 py-4 whitespace-nowrap">8</td>
<td class="px-6 py-4 whitespace-nowrap">62</td>
<td class="px-6 py-4 whitespace-nowrap font-semibold">78</td>
<td class="px-6 py-4 whitespace-nowrap text-blue-600 font-bold">B</td>
<td class="px-6 py-4 whitespace-nowrap">Very Good</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- Performance Summary -->
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-8">
<div class="bg-white p-6 rounded-lg shadow-md">
<h2 class="text-xl font-semibold mb-4">Performance Summary</h2>
<div class="space-y-4">
<div>
<p class="text-gray-600">Total Subjects</p>
<p class="text-2xl font-bold">5</p>
</div>
<div>
<p class="text-gray-600">Average Score</p>
<p class="text-2xl font-bold">78</p>
</div>
<div>
<p class="text-gray-600">Position in Class</p>
<p class="text-2xl font-bold">3rd</p>
</div>
</div>
</div>
<div class="bg-white p-6 rounded-lg shadow-md">
<h2 class="text-xl font-semibold mb-4">Teacher's Comment</h2>
<div class="bg-gray-50 p-4 rounded-lg">
<p class="italic">"Adeola has shown consistent improvement this term. She demonstrates excellent understanding in Mathematics and Physics. With more effort in Chemistry, she can achieve even better results next term. Keep up the good work!"</p>
<p class="mt-4 font-medium">- Mr. Adebayo (Class Teacher)</p>
</div>
</div>
</div>
<!-- Actions -->
<div class="flex flex-col sm:flex-row justify-between items-center bg-white p-6 rounded-lg shadow-md">
<div class="mb-4 sm:mb-0">
<p class="text-gray-600">Need a printed copy?</p>
<p class="text-sm text-gray-500">Download your result in PDF format</p>
</div>
<div class="flex space-x-4">
<button class="bg-gray-200 text-gray-700 px-6 py-2 rounded-md hover:bg-gray-300 transition duration-300 flex items-center">
<i data-feather="download" class="mr-2"></i> Download PDF
</button>
<button class="bg-green-600 text-white px-6 py-2 rounded-md hover:bg-green-700 transition duration-300 flex items-center">
<i data-feather="printer" class="mr-2"></i> Print Result
</button>
</div>
</div>
</main>
<custom-footer></custom-footer>
<script>
feather.replace();
// Print functionality
document.querySelector('button:nth-of-type(2)').addEventListener('click', function() {
window.print();
});
// Simulate PDF download
document.querySelector('button:nth-of-type(1)').addEventListener('click', function() {
alert('PDF download will start shortly...');
});
</script>
<script src="script.js"></script>
</body>
</html>