Spaces:
Running
Running
File size: 9,677 Bytes
2ec9b6f | 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 | <!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> |