eduplus / index.html
ismio's picture
build fully school management system with fully re=ich reports - Initial Deployment
8fd60d9 verified
Raw History Blame Contribute Delete
22 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>EduManage | School Management System</title>
<script src="https://cdn.tailwindcss.com"></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://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<style>
.sidebar {
transition: all 0.3s ease;
}
.sidebar-mini {
width: 80px;
}
.sidebar-full {
width: 250px;
}
.main-content {
transition: all 0.3s ease;
}
.content-expanded {
margin-left: 250px;
}
.content-collapsed {
margin-left: 80px;
}
.dashboard-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.report-card {
transition: all 0.3s ease;
}
.report-card:hover {
transform: scale(1.02);
}
</style>
</head>
<body class="bg-gray-50">
<div class="flex h-screen overflow-hidden">
<!-- Sidebar -->
<div id="sidebar" class="sidebar sidebar-full bg-indigo-800 text-white fixed h-full">
<div class="p-4 flex items-center justify-between border-b border-indigo-700">
<div class="flex items-center space-x-2">
<i data-feather="book-open" class="w-6 h-6"></i>
<span class="text-xl font-bold">EduManage</span>
</div>
<button id="toggleSidebar" class="text-white focus:outline-none">
<i data-feather="chevron-left" class="w-5 h-5"></i>
</button>
</div>
<div class="p-4">
<div class="flex items-center space-x-3 mb-6">
<img src="http://static.photos/people/200x200/1" alt="User" class="w-10 h-10 rounded-full">
<div>
<p class="font-medium">Admin User</p>
<p class="text-xs text-indigo-300">Super Admin</p>
</div>
</div>
<nav>
<ul class="space-y-2">
<li>
<a href="#" class="flex items-center space-x-3 p-2 rounded bg-indigo-700">
<i data-feather="home" class="w-5 h-5"></i>
<span>Dashboard</span>
</a>
</li>
<li>
<a href="students.html" class="flex items-center space-x-3 p-2 rounded hover:bg-indigo-700">
<i data-feather="users" class="w-5 h-5"></i>
<span>Students</span>
</a>
</li>
<li>
<a href="teachers.html" class="flex items-center space-x-3 p-2 rounded hover:bg-indigo-700">
<i data-feather="user" class="w-5 h-5"></i>
<span>Teachers</span>
</a>
</li>
<li>
<a href="classes.html" class="flex items-center space-x-3 p-2 rounded hover:bg-indigo-700">
<i data-feather="book" class="w-5 h-5"></i>
<span>Classes</span>
</a>
</li>
<li>
<a href="attendance.html" class="flex items-center space-x-3 p-2 rounded hover:bg-indigo-700">
<i data-feather="check-square" class="w-5 h-5"></i>
<span>Attendance</span>
</a>
</li>
<li>
<a href="grades.html" class="flex items-center space-x-3 p-2 rounded hover:bg-indigo-700">
<i data-feather="award" class="w-5 h-5"></i>
<span>Grades</span>
</a>
</li>
<li>
<a href="reports.html" class="flex items-center space-x-3 p-2 rounded hover:bg-indigo-700">
<i data-feather="file-text" class="w-5 h-5"></i>
<span>Reports</span>
</a>
</li>
<li>
<a href="settings.html" class="flex items-center space-x-3 p-2 rounded hover:bg-indigo-700">
<i data-feather="settings" class="w-5 h-5"></i>
<span>Settings</span>
</a>
</li>
</ul>
</nav>
</div>
</div>
<!-- Main Content -->
<div id="mainContent" class="main-content content-expanded flex-1 overflow-auto">
<!-- Top Navigation -->
<header class="bg-white shadow-sm">
<div class="flex items-center justify-between p-4">
<div class="flex items-center space-x-4">
<h1 class="text-2xl font-bold text-gray-800">Dashboard</h1>
</div>
<div class="flex items-center space-x-4">
<div class="relative">
<i data-feather="search" class="absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400"></i>
<input type="text" placeholder="Search..." class="pl-10 pr-4 py-2 rounded-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-indigo-500">
</div>
<button class="p-2 rounded-full bg-gray-100 text-gray-600 hover:bg-gray-200">
<i data-feather="bell" class="w-5 h-5"></i>
</button>
<div class="flex items-center space-x-2">
<img src="http://static.photos/people/200x200/1" alt="User" class="w-8 h-8 rounded-full">
<span class="font-medium">Admin</span>
</div>
</div>
</div>
</header>
<!-- Dashboard Content -->
<main class="p-6">
<!-- Stats Cards -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
<div class="dashboard-card bg-white p-6 rounded-xl shadow-md border-l-4 border-indigo-500 transition-all duration-300">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-500">Total Students</p>
<h3 class="text-2xl font-bold">1,245</h3>
<p class="text-sm text-green-500 flex items-center">
<i data-feather="trending-up" class="w-4 h-4 mr-1"></i>
<span>12% from last month</span>
</p>
</div>
<div class="p-3 rounded-full bg-indigo-100 text-indigo-600">
<i data-feather="users" class="w-6 h-6"></i>
</div>
</div>
</div>
<div class="dashboard-card bg-white p-6 rounded-xl shadow-md border-l-4 border-blue-500 transition-all duration-300">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-500">Total Teachers</p>
<h3 class="text-2xl font-bold">84</h3>
<p class="text-sm text-green-500 flex items-center">
<i data-feather="trending-up" class="w-4 h-4 mr-1"></i>
<span>5% from last month</span>
</p>
</div>
<div class="p-3 rounded-full bg-blue-100 text-blue-600">
<i data-feather="user" class="w-6 h-6"></i>
</div>
</div>
</div>
<div class="dashboard-card bg-white p-6 rounded-xl shadow-md border-l-4 border-green-500 transition-all duration-300">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-500">Classes</p>
<h3 class="text-2xl font-bold">36</h3>
<p class="text-sm text-red-500 flex items-center">
<i data-feather="trending-down" class="w-4 h-4 mr-1"></i>
<span>2% from last month</span>
</p>
</div>
<div class="p-3 rounded-full bg-green-100 text-green-600">
<i data-feather="book" class="w-6 h-6"></i>
</div>
</div>
</div>
<div class="dashboard-card bg-white p-6 rounded-xl shadow-md border-l-4 border-purple-500 transition-all duration-300">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-500">Attendance Today</p>
<h3 class="text-2xl font-bold">92%</h3>
<p class="text-sm text-green-500 flex items-center">
<i data-feather="trending-up" class="w-4 h-4 mr-1"></i>
<span>3% from yesterday</span>
</p>
</div>
<div class="p-3 rounded-full bg-purple-100 text-purple-600">
<i data-feather="check-square" class="w-6 h-6"></i>
</div>
</div>
</div>
</div>
<!-- Charts Row -->
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8">
<!-- Student Enrollment Chart -->
<div class="bg-white p-6 rounded-xl shadow-md">
<div class="flex items-center justify-between mb-4">
<h3 class="text-lg font-semibold">Student Enrollment</h3>
<div class="flex space-x-2">
<button class="px-3 py-1 text-xs bg-indigo-100 text-indigo-600 rounded">Monthly</button>
<button class="px-3 py-1 text-xs bg-gray-100 text-gray-600 rounded">Yearly</button>
</div>
</div>
<canvas id="enrollmentChart" height="250"></canvas>
</div>
<!-- Attendance Trend Chart -->
<div class="bg-white p-6 rounded-xl shadow-md">
<div class="flex items-center justify-between mb-4">
<h3 class="text-lg font-semibold">Attendance Trend</h3>
<div class="flex space-x-2">
<button class="px-3 py-1 text-xs bg-indigo-100 text-indigo-600 rounded">Monthly</button>
<button class="px-3 py-1 text-xs bg-gray-100 text-gray-600 rounded">Yearly</button>
</div>
</div>
<canvas id="attendanceChart" height="250"></canvas>
</div>
</div>
<!-- Recent Activities and Quick Reports -->
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
<!-- Recent Activities -->
<div class="bg-white p-6 rounded-xl shadow-md lg:col-span-2">
<h3 class="text-lg font-semibold mb-4">Recent Activities</h3>
<div class="space-y-4">
<div class="flex items-start space-x-3">
<div class="p-2 rounded-full bg-green-100 text-green-600">
<i data-feather="user-plus" class="w-4 h-4"></i>
</div>
<div>
<p class="font-medium">New student enrolled</p>
<p class="text-sm text-gray-500">John Doe joined Grade 10 - Section A</p>
<p class="text-xs text-gray-400">2 hours ago</p>
</div>
</div>
<div class="flex items-start space-x-3">
<div class="p-2 rounded-full bg-blue-100 text-blue-600">
<i data-feather="award" class="w-4 h-4"></i>
</div>
<div>
<p class="font-medium">Grades updated</p>
<p class="text-sm text-gray-500">Math grades for Grade 11 have been updated</p>
<p class="text-xs text-gray-400">5 hours ago</p>
</div>
</div>
<div class="flex items-start space-x-3">
<div class="p-2 rounded-full bg-purple-100 text-purple-600">
<i data-feather="calendar" class="w-4 h-4"></i>
</div>
<div>
<p class="font-medium">New event scheduled</p>
<p class="text-sm text-gray-500">Parent-Teacher meeting on Friday</p>
<p class="text-xs text-gray-400">Yesterday</p>
</div>
</div>
<div class="flex items-start space-x-3">
<div class="p-2 rounded-full bg-yellow-100 text-yellow-600">
<i data-feather="alert-triangle" class="w-4 h-4"></i>
</div>
<div>
<p class="font-medium">Low attendance alert</p>
<p class="text-sm text-gray-500">Grade 9 Section B attendance below 80%</p>
<p class="text-xs text-gray-400">Yesterday</p>
</div>
</div>
</div>
</div>
<!-- Quick Reports -->
<div class="bg-white p-6 rounded-xl shadow-md">
<h3 class="text-lg font-semibold mb-4">Quick Reports</h3>
<div class="space-y-3">
<a href="#" class="report-card block p-4 border rounded-lg hover:border-indigo-500 hover:shadow-md transition-all">
<div class="flex items-center justify-between">
<div>
<p class="font-medium">Student Performance</p>
<p class="text-sm text-gray-500">Generate performance reports</p>
</div>
<i data-feather="chevron-right" class="w-5 h-5 text-gray-400"></i>
</div>
</a>
<a href="#" class="report-card block p-4 border rounded-lg hover:border-indigo-500 hover:shadow-md transition-all">
<div class="flex items-center justify-between">
<div>
<p class="font-medium">Attendance Summary</p>
<p class="text-sm text-gray-500">Monthly attendance report</p>
</div>
<i data-feather="chevron-right" class="w-5 h-5 text-gray-400"></i>
</div>
</a>
<a href="#" class="report-card block p-4 border rounded-lg hover:border-indigo-500 hover:shadow-md transition-all">
<div class="flex items-center justify-between">
<div>
<p class="font-medium">Fee Collection</p>
<p class="text-sm text-gray-500">Fee payment status</p>
</div>
<i data-feather="chevron-right" class="w-5 h-5 text-gray-400"></i>
</div>
</a>
<a href="#" class="report-card block p-4 border rounded-lg hover:border-indigo-500 hover:shadow-md transition-all">
<div class="flex items-center justify-between">
<div>
<p class="font-medium">Teacher Evaluation</p>
<p class="text-sm text-gray-500">Teacher performance metrics</p>
</div>
<i data-feather="chevron-right" class="w-5 h-5 text-gray-400"></i>
</div>
</a>
</div>
</div>
</div>
</main>
</div>
</div>
<script>
// Initialize AOS
AOS.init();
// Initialize Feather Icons
feather.replace();
// Toggle Sidebar
const sidebar = document.getElementById('sidebar');
const mainContent = document.getElementById('mainContent');
const toggleSidebar = document.getElementById('toggleSidebar');
toggleSidebar.addEventListener('click', () => {
sidebar.classList.toggle('sidebar-mini');
sidebar.classList.toggle('sidebar-full');
mainContent.classList.toggle('content-collapsed');
mainContent.classList.toggle('content-expanded');
// Change the icon based on sidebar state
const icon = toggleSidebar.querySelector('i');
if (sidebar.classList.contains('sidebar-mini')) {
feather.replace();
icon.setAttribute('data-feather', 'chevron-right');
} else {
feather.replace();
icon.setAttribute('data-feather', 'chevron-left');
}
feather.replace();
});
// Charts
// Enrollment Chart
const enrollmentCtx = document.getElementById('enrollmentChart').getContext('2d');
const enrollmentChart = new Chart(enrollmentCtx, {
type: 'line',
data: {
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
datasets: [{
label: 'New Students',
data: [45, 60, 75, 82, 56, 40, 35, 120, 95, 80, 65, 50],
backgroundColor: 'rgba(79, 70, 229, 0.1)',
borderColor: 'rgba(79, 70, 229, 1)',
borderWidth: 2,
tension: 0.3,
fill: true
}]
},
options: {
responsive: true,
plugins: {
legend: {
display: false
}
},
scales: {
y: {
beginAtZero: true
}
}
}
});
// Attendance Chart
const attendanceCtx = document.getElementById('attendanceChart').getContext('2d');
const attendanceChart = new Chart(attendanceCtx, {
type: 'bar',
data: {
labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
datasets: [{
label: 'Attendance %',
data: [92, 88, 95, 90, 85, 70],
backgroundColor: 'rgba(99, 102, 241, 0.7)',
borderColor: 'rgba(99, 102, 241, 1)',
borderWidth: 1
}]
},
options: {
responsive: true,
plugins: {
legend: {
display: false
}
},
scales: {
y: {
beginAtZero: true,
max: 100
}
}
}
});
</script>
</body>
</html>