Design all the pages necessary in building a website that does all this things listed below using MySQL as the database develop a professional PHP website with an admin dashboard, school president dashboard, lecturers dashboard and students dashboard The Admin dashboard should have: * Admin should be able to login create new admin account add a new admin * Using PHP create a page where Admins should be able to add the school's yearly timetable into the database. - Using PHP create a page where Admin should be able to add timetables for each course into the database. - Using PHP create a page where Admin should be able to add new courses and new subjects under those courses which should be saved in the database. - Using PHP create a page where Admin should be able to register new students into the database. - Using PHP create a page where Admin should be able to send information directly to a selected student or lecturer. - Using PHP create a page where Admin should be able to view students' and lecturers' details. - Admin should be able to register new admins. - Admin should be able to upload videos, audios, documents, and files while sending a message to either students or lecturers. School President Requirements: - The school president should be able to upload videos, audios, documents, and files while sending a message to either admins or lecturers. - The school president should be able to book meetings with lecturers, admins, and students. Lecturer Requirements: - Lecturers should be able to communicate with each student offering their courses, both privately and publicly. - Lecturers should only be able to send information regarding the courses they have been registered for by the admin. - Lecturers should be able to post assignments for students offering their courses. - Lecturers should be able to grade each student on every assignment given. - Lecturers should be able to communicate with themselves privately and publicly. - Lecturers should have a timetable that shows when their next class begins. - Lecturers should be able to cancel a class. - Lecturers should be able to post pre-recorded videos for students. - Lecturers should be able to upload notes, audios, and videos. - Lecturers should be able to book meetings with students. Student Requirements: - Students should be able to register their courses on the LMS. - Students should only be able to attend classes that they are registered for. - Students should be able to make school fee payments. - Students should be able to view their timetables. - Students should get notified when the next class starts. - Students should be able to view their grades on the LMS. - Students should be able to take online attendance for each course. - Students should have a social space like Facebook where they can communicate with themselves. - Students should be notified when a class is cancelled. - Students should be able to make submissions for their assignments. - Students should be able to message lecturers that offer their courses. - Students should be able to book meetings with lecturers and their fellow students. - Implement a text-to-speech page for students. - Students should be able to download files and notes posted for them by either lecturers, admins, or the president. - Initial Deployment
da90fe0 verified Download index.html from Oloud/lms-inter: direct link, hf CLI and curl.
- Browser
- Download file 76.2 kB
-
https://huggingface.co/spaces/Oloud/lms-inter/resolve/main/index.html
- Command line
-
hf download hf://spaces/Oloud/lms-inter/index.html
-
curl -L -o index.html https://huggingface.co/spaces/Oloud/lms-inter/resolve/main/index.html
76.2 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>School Management System</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
.sidebar {
transition: all 0.3s;
}
.sidebar.collapsed {
width: 70px;
}
.sidebar.collapsed .sidebar-text {
display: none;
}
.main-content {
transition: all 0.3s;
}
.sidebar.collapsed + .main-content {
margin-left: 70px;
}
.notification-badge {
position: absolute;
top: -5px;
right: -5px;
font-size: 10px;
background-color: #ef4444;
color: white;
border-radius: 50%;
width: 18px;
height: 18px;
display: flex;
align-items: center;
justify-content: center;
}
.chart-container {
position: relative;
height: 300px;
width: 100%;
}
.file-upload {
border: 2px dashed #d1d5db;
border-radius: 0.5rem;
transition: all 0.3s;
}
.file-upload:hover {
border-color: #3b82f6;
}
.timetable-cell {
min-height: 80px;
border: 1px solid #e5e7eb;
}
.timetable-cell:hover {
background-color: #f3f4f6;
}
.assignment-card {
transition: all 0.2s;
}
.assignment-card:hover {
transform: translateY(-2px);
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.message-bubble {
max-width: 70%;
border-radius: 1rem;
}
.message-bubble.sent {
background-color: #3b82f6;
color: white;
margin-left: auto;
}
.message-bubble.received {
background-color: #e5e7eb;
color: #1f2937;
}
</style>
</head>
<body class="bg-gray-100 font-sans">
<!-- Login Page -->
<div id="login-page" class="min-h-screen flex items-center justify-center bg-gray-50 py-12 px-4 sm:px-6 lg:px-8">
<div class="max-w-md w-full space-y-8 bg-white p-8 rounded-lg shadow-lg">
<div>
<img class="mx-auto h-12 w-auto" src="https://tailwindui.com/img/logos/workflow-mark-indigo-600.svg" alt="Workflow">
<h2 class="mt-6 text-center text-3xl font-extrabold text-gray-900">
School Management System
</h2>
<p class="mt-2 text-center text-sm text-gray-600">
Sign in to your account
</p>
</div>
<form class="mt-8 space-y-6" action="#" method="POST">
<input type="hidden" name="remember" value="true">
<div class="rounded-md shadow-sm space-y-4">
<div>
<label for="email-address" class="sr-only">Email address</label>
<input id="email-address" name="email" type="email" autocomplete="email" required class="appearance-none rounded-none relative block w-full px-3 py-2 border border-gray-300 placeholder-gray-500 text-gray-900 rounded-t-md focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 focus:z-10 sm:text-sm" placeholder="Email address">
</div>
<div>
<label for="password" class="sr-only">Password</label>
<input id="password" name="password" type="password" autocomplete="current-password" required class="appearance-none rounded-none relative block w-full px-3 py-2 border border-gray-300 placeholder-gray-500 text-gray-900 rounded-b-md focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 focus:z-10 sm:text-sm" placeholder="Password">
</div>
<div>
<label for="role" class="sr-only">Role</label>
<select id="role" name="role" required class="appearance-none rounded-none relative block w-full px-3 py-2 border border-gray-300 placeholder-gray-500 text-gray-900 rounded-b-md focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 focus:z-10 sm:text-sm">
<option value="">Select your role</option>
<option value="admin">Admin</option>
<option value="president">School President</option>
<option value="lecturer">Lecturer</option>
<option value="student">Student</option>
</select>
</div>
</div>
<div class="flex items-center justify-between">
<div class="flex items-center">
<input id="remember-me" name="remember-me" type="checkbox" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded">
<label for="remember-me" class="ml-2 block text-sm text-gray-900">
Remember me
</label>
</div>
<div class="text-sm">
<a href="#" class="font-medium text-indigo-600 hover:text-indigo-500">
Forgot your password?
</a>
</div>
</div>
<div>
<button type="submit" class="group relative w-full flex justify-center py-2 px-4 border border-transparent text-sm font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500">
Sign in
</button>
</div>
</form>
</div>
</div>
<!-- Admin Dashboard -->
<div id="admin-dashboard" class="hidden flex h-screen">
<!-- Sidebar -->
<div class="sidebar bg-indigo-800 text-white w-64 flex flex-col">
<div class="p-4 flex items-center justify-between border-b border-indigo-700">
<div class="flex items-center">
<img src="https://tailwindui.com/img/logos/workflow-mark-indigo-500.svg" alt="Logo" class="h-8 w-8">
<span class="sidebar-text ml-2 text-xl font-semibold">Admin Panel</span>
</div>
<button id="sidebar-toggle" class="text-white focus:outline-none">
<i class="fas fa-bars"></i>
</button>
</div>
<div class="flex-1 overflow-y-auto">
<nav class="mt-4">
<div>
<a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-white bg-indigo-900">
<i class="fas fa-tachometer-alt mr-3"></i>
<span class="sidebar-text">Dashboard</span>
</a>
<a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-indigo-200 hover:bg-indigo-700 hover:text-white">
<i class="fas fa-user-plus mr-3"></i>
<span class="sidebar-text">Add New Admin</span>
</a>
<a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-indigo-200 hover:bg-indigo-700 hover:text-white">
<i class="fas fa-calendar-alt mr-3"></i>
<span class="sidebar-text">Yearly Timetable</span>
</a>
<a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-indigo-200 hover:bg-indigo-700 hover:text-white">
<i class="fas fa-calendar-week mr-3"></i>
<span class="sidebar-text">Course Timetables</span>
</a>
<a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-indigo-200 hover:bg-indigo-700 hover:text-white">
<i class="fas fa-book mr-3"></i>
<span class="sidebar-text">Courses & Subjects</span>
</a>
<a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-indigo-200 hover:bg-indigo-700 hover:text-white">
<i class="fas fa-user-graduate mr-3"></i>
<span class="sidebar-text">Register Students</span>
</a>
<a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-indigo-200 hover:bg-indigo-700 hover:text-white">
<i class="fas fa-envelope mr-3"></i>
<span class="sidebar-text">Send Messages</span>
<span class="notification-badge">3</span>
</a>
<a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-indigo-200 hover:bg-indigo-700 hover:text-white">
<i class="fas fa-users mr-3"></i>
<span class="sidebar-text">View Users</span>
</a>
<a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-indigo-200 hover:bg-indigo-700 hover:text-white">
<i class="fas fa-file-upload mr-3"></i>
<span class="sidebar-text">Upload Files</span>
</a>
</div>
</nav>
</div>
<div class="p-4 border-t border-indigo-700">
<div class="flex items-center">
<img src="https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80" alt="Admin" class="h-8 w-8 rounded-full">
<div class="sidebar-text ml-3">
<p class="text-sm font-medium text-white">Admin User</p>
<p class="text-xs font-medium text-indigo-200">admin@school.edu</p>
</div>
</div>
<button class="mt-4 w-full flex items-center justify-center px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-indigo-600 bg-white hover:bg-indigo-50">
<i class="fas fa-sign-out-alt mr-2"></i>
<span class="sidebar-text">Logout</span>
</button>
</div>
</div>
<!-- Main Content -->
<div class="main-content flex-1 overflow-y-auto bg-gray-100">
<!-- Top Navigation -->
<div class="bg-white shadow">
<div class="px-4 py-4 sm:px-6 lg:px-8 flex justify-between items-center">
<h1 class="text-xl font-semibold text-gray-900">Admin Dashboard</h1>
<div class="flex items-center space-x-4">
<div class="relative">
<button class="p-1 rounded-full text-gray-400 hover:text-gray-500 focus:outline-none">
<i class="fas fa-bell text-xl"></i>
<span class="notification-badge">5</span>
</button>
</div>
<div class="relative">
<button class="p-1 rounded-full text-gray-400 hover:text-gray-500 focus:outline-none">
<i class="fas fa-envelope text-xl"></i>
<span class="notification-badge">3</span>
</button>
</div>
</div>
</div>
</div>
<!-- Dashboard Content -->
<div class="p-6">
<!-- Stats Cards -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6">
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center">
<div class="p-3 rounded-full bg-indigo-100 text-indigo-600">
<i class="fas fa-users text-xl"></i>
</div>
<div class="ml-4">
<p class="text-sm font-medium text-gray-500">Total Students</p>
<p class="text-2xl font-semibold text-gray-900">1,245</p>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center">
<div class="p-3 rounded-full bg-green-100 text-green-600">
<i class="fas fa-chalkboard-teacher text-xl"></i>
</div>
<div class="ml-4">
<p class="text-sm font-medium text-gray-500">Total Lecturers</p>
<p class="text-2xl font-semibold text-gray-900">87</p>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center">
<div class="p-3 rounded-full bg-blue-100 text-blue-600">
<i class="fas fa-book text-xl"></i>
</div>
<div class="ml-4">
<p class="text-sm font-medium text-gray-500">Total Courses</p>
<p class="text-2xl font-semibold text-gray-900">32</p>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center">
<div class="p-3 rounded-full bg-purple-100 text-purple-600">
<i class="fas fa-calendar-alt text-xl"></i>
</div>
<div class="ml-4">
<p class="text-sm font-medium text-gray-500">Active Classes</p>
<p class="text-2xl font-semibold text-gray-900">56</p>
</div>
</div>
</div>
</div>
<!-- Recent Activity and Quick Actions -->
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6">
<!-- Recent Activity -->
<div class="bg-white rounded-lg shadow col-span-2 p-6">
<h2 class="text-lg font-semibold text-gray-900 mb-4">Recent Activity</h2>
<div class="space-y-4">
<div class="flex items-start">
<div class="flex-shrink-0">
<div class="p-2 rounded-full bg-indigo-100 text-indigo-600">
<i class="fas fa-user-plus"></i>
</div>
</div>
<div class="ml-3">
<p class="text-sm font-medium text-gray-900">New student registered</p>
<p class="text-sm text-gray-500">John Doe registered for Computer Science</p>
<p class="text-xs text-gray-400">10 minutes ago</p>
</div>
</div>
<div class="flex items-start">
<div class="flex-shrink-0">
<div class="p-2 rounded-full bg-green-100 text-green-600">
<i class="fas fa-chalkboard-teacher"></i>
</div>
</div>
<div class="ml-3">
<p class="text-sm font-medium text-gray-900">New lecturer added</p>
<p class="text-sm text-gray-500">Dr. Smith added to Mathematics department</p>
<p class="text-xs text-gray-400">2 hours ago</p>
</div>
</div>
<div class="flex items-start">
<div class="flex-shrink-0">
<div class="p-2 rounded-full bg-blue-100 text-blue-600">
<i class="fas fa-book"></i>
</div>
</div>
<div class="ml-3">
<p class="text-sm font-medium text-gray-900">New course created</p>
<p class="text-sm text-gray-500">Advanced Web Development added to CS courses</p>
<p class="text-xs text-gray-400">5 hours ago</p>
</div>
</div>
<div class="flex items-start">
<div class="flex-shrink-0">
<div class="p-2 rounded-full bg-purple-100 text-purple-600">
<i class="fas fa-calendar-alt"></i>
</div>
</div>
<div class="ml-3">
<p class="text-sm font-medium text-gray-900">Timetable updated</p>
<p class="text-sm text-gray-500">Computer Science timetable for Fall 2023 updated</p>
<p class="text-xs text-gray-400">1 day ago</p>
</div>
</div>
</div>
</div>
<!-- Quick Actions -->
<div class="bg-white rounded-lg shadow p-6">
<h2 class="text-lg font-semibold text-gray-900 mb-4">Quick Actions</h2>
<div class="space-y-3">
<button class="w-full flex items-center justify-center px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-indigo-600 hover:bg-indigo-700">
<i class="fas fa-user-plus mr-2"></i> Add New Admin
</button>
<button class="w-full flex items-center justify-center px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-green-600 hover:bg-green-700">
<i class="fas fa-user-graduate mr-2"></i> Register Student
</button>
<button class="w-full flex items-center justify-center px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-blue-600 hover:bg-blue-700">
<i class="fas fa-chalkboard-teacher mr-2"></i> Add Lecturer
</button>
<button class="w-full flex items-center justify-center px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-purple-600 hover:bg-purple-700">
<i class="fas fa-book mr-2"></i> Add Course
</button>
<button class="w-full flex items-center justify-center px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-yellow-600 hover:bg-yellow-700">
<i class="fas fa-calendar-alt mr-2"></i> Update Timetable
</button>
</div>
</div>
</div>
<!-- Yearly Timetable Section -->
<div class="bg-white rounded-lg shadow p-6 mb-6">
<div class="flex justify-between items-center mb-4">
<h2 class="text-lg font-semibold text-gray-900">Yearly Timetable</h2>
<button class="px-4 py-2 bg-indigo-600 text-white rounded-md hover:bg-indigo-700">
<i class="fas fa-plus mr-2"></i> Add New
</button>
</div>
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Academic Year</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Semester</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Start Date</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">End Date</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">2023/2024</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Fall</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Sep 4, 2023</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Dec 15, 2023</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Active</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
<button class="text-indigo-600 hover:text-indigo-900 mr-3"><i class="fas fa-edit"></i></button>
<button class="text-red-600 hover:text-red-900"><i class="fas fa-trash"></i></button>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">2023/2024</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Spring</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jan 8, 2024</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Apr 26, 2024</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">Upcoming</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
<button class="text-indigo-600 hover:text-indigo-900 mr-3"><i class="fas fa-edit"></i></button>
<button class="text-red-600 hover:text-red-900"><i class="fas fa-trash"></i></button>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">2022/2023</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Fall</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Sep 5, 2022</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Dec 16, 2022</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-gray-100 text-gray-800">Completed</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
<button class="text-indigo-600 hover:text-indigo-900 mr-3"><i class="fas fa-edit"></i></button>
<button class="text-red-600 hover:text-red-900"><i class="fas fa-trash"></i></button>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- Add New Admin Form -->
<div id="add-admin-form" class="bg-white rounded-lg shadow p-6 mb-6 hidden">
<h2 class="text-lg font-semibold text-gray-900 mb-4">Add New Admin</h2>
<form>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<div>
<label for="admin-first-name" class="block text-sm font-medium text-gray-700">First Name</label>
<input type="text" id="admin-first-name" class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500">
</div>
<div>
<label for="admin-last-name" class="block text-sm font-medium text-gray-700">Last Name</label>
<input type="text" id="admin-last-name" class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500">
</div>
<div>
<label for="admin-email" class="block text-sm font-medium text-gray-700">Email</label>
<input type="email" id="admin-email" class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500">
</div>
<div>
<label for="admin-phone" class="block text-sm font-medium text-gray-700">Phone</label>
<input type="tel" id="admin-phone" class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500">
</div>
<div>
<label for="admin-password" class="block text-sm font-medium text-gray-700">Password</label>
<input type="password" id="admin-password" class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500">
</div>
<div>
<label for="admin-confirm-password" class="block text-sm font-medium text-gray-700">Confirm Password</label>
<input type="password" id="admin-confirm-password" class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500">
</div>
</div>
<div class="mt-6 flex justify-end">
<button type="button" class="bg-white py-2 px-4 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500">
Cancel
</button>
<button type="submit" class="ml-3 inline-flex justify-center py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500">
Save Admin
</button>
</div>
</form>
</div>
</div>
</div>
</div>
<!-- School President Dashboard -->
<div id="president-dashboard" class="hidden flex h-screen">
<!-- Sidebar -->
<div class="sidebar bg-blue-800 text-white w-64 flex flex-col">
<div class="p-4 flex items-center justify-between border-b border-blue-700">
<div class="flex items-center">
<img src="https://tailwindui.com/img/logos/workflow-mark-blue-500.svg" alt="Logo" class="h-8 w-8">
<span class="sidebar-text ml-2 text-xl font-semibold">President Panel</span>
</div>
<button class="text-white focus:outline-none">
<i class="fas fa-bars"></i>
</button>
</div>
<div class="flex-1 overflow-y-auto">
<nav class="mt-4">
<div>
<a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-white bg-blue-900">
<i class="fas fa-tachometer-alt mr-3"></i>
<span class="sidebar-text">Dashboard</span>
</a>
<a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-blue-200 hover:bg-blue-700 hover:text-white">
<i class="fas fa-file-upload mr-3"></i>
<span class="sidebar-text">Upload Files</span>
</a>
<a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-blue-200 hover:bg-blue-700 hover:text-white">
<i class="fas fa-envelope mr-3"></i>
<span class="sidebar-text">Send Messages</span>
<span class="notification-badge">2</span>
</a>
<a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-blue-200 hover:bg-blue-700 hover:text-white">
<i class="fas fa-calendar-check mr-3"></i>
<span class="sidebar-text">Book Meetings</span>
</a>
<a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-blue-200 hover:bg-blue-700 hover:text-white">
<i class="fas fa-chart-line mr-3"></i>
<span class="sidebar-text">School Analytics</span>
</a>
</div>
</nav>
</div>
<div class="p-4 border-t border-blue-700">
<div class="flex items-center">
<img src="https://images.unsplash.com/photo-1560250097-0b93528c311a?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80" alt="President" class="h-8 w-8 rounded-full">
<div class="sidebar-text ml-3">
<p class="text-sm font-medium text-white">School President</p>
<p class="text-xs font-medium text-blue-200">president@school.edu</p>
</div>
</div>
<button class="mt-4 w-full flex items-center justify-center px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-blue-600 bg-white hover:bg-blue-50">
<i class="fas fa-sign-out-alt mr-2"></i>
<span class="sidebar-text">Logout</span>
</button>
</div>
</div>
<!-- Main Content -->
<div class="main-content flex-1 overflow-y-auto bg-gray-100">
<!-- Top Navigation -->
<div class="bg-white shadow">
<div class="px-4 py-4 sm:px-6 lg:px-8 flex justify-between items-center">
<h1 class="text-xl font-semibold text-gray-900">President Dashboard</h1>
<div class="flex items-center space-x-4">
<div class="relative">
<button class="p-1 rounded-full text-gray-400 hover:text-gray-500 focus:outline-none">
<i class="fas fa-bell text-xl"></i>
<span class="notification-badge">5</span>
</button>
</div>
<div class="relative">
<button class="p-1 rounded-full text-gray-400 hover:text-gray-500 focus:outline-none">
<i class="fas fa-envelope text-xl"></i>
<span class="notification-badge">2</span>
</button>
</div>
</div>
</div>
</div>
<!-- Dashboard Content -->
<div class="p-6">
<!-- Stats Cards -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6">
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center">
<div class="p-3 rounded-full bg-indigo-100 text-indigo-600">
<i class="fas fa-users text-xl"></i>
</div>
<div class="ml-4">
<p class="text-sm font-medium text-gray-500">Total Students</p>
<p class="text-2xl font-semibold text-gray-900">1,245</p>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center">
<div class="p-3 rounded-full bg-green-100 text-green-600">
<i class="fas fa-chalkboard-teacher text-xl"></i>
</div>
<div class="ml-4">
<p class="text-sm font-medium text-gray-500">Total Lecturers</p>
<p class="text-2xl font-semibold text-gray-900">87</p>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center">
<div class="p-3 rounded-full bg-blue-100 text-blue-600">
<i class="fas fa-graduation-cap text-xl"></i>
</div>
<div class="ml-4">
<p class="text-sm font-medium text-gray-500">Graduation Rate</p>
<p class="text-2xl font-semibold text-gray-900">92%</p>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center">
<div class="p-3 rounded-full bg-purple-100 text-purple-600">
<i class="fas fa-dollar-sign text-xl"></i>
</div>
<div class="ml-4">
<p class="text-sm font-medium text-gray-500">Fee Collection</p>
<p class="text-2xl font-semibold text-gray-900">$1.2M</p>
</div>
</div>
</div>
</div>
<!-- Upload Files Section -->
<div class="bg-white rounded-lg shadow p-6 mb-6">
<h2 class="text-lg font-semibold text-gray-900 mb-4">Upload Files</h2>
<div class="file-upload p-8 text-center">
<i class="fas fa-cloud-upload-alt text-4xl text-gray-400 mb-3"></i>
<p class="text-sm text-gray-500 mb-3">Drag and drop files here or click to browse</p>
<button class="px-4 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700">
<i class="fas fa-folder-open mr-2"></i> Select Files
</button>
<input type="file" class="hidden" multiple>
</div>
<div class="mt-4">
<label for="file-recipient" class="block text-sm font-medium text-gray-700">Send to:</label>
<select id="file-recipient" class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-blue-500 focus:border-blue-500">
<option value="">Select recipient</option>
<option value="all-admins">All Admins</option>
<option value="all-lecturers">All Lecturers</option>
<option value="all-students">All Students</option>
<option value="specific">Specific Person</option>
</select>
</div>
<div class="mt-4">
<label for="file-message" class="block text-sm font-medium text-gray-700">Message (optional)</label>
<textarea id="file-message" rows="3" class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-blue-500 focus:border-blue-500"></textarea>
</div>
<div class="mt-4 flex justify-end">
<button class="px-4 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700">
<i class="fas fa-paper-plane mr-2"></i> Send Files
</button>
</div>
</div>
<!-- Upcoming Meetings -->
<div class="bg-white rounded-lg shadow p-6">
<div class="flex justify-between items-center mb-4">
<h2 class="text-lg font-semibold text-gray-900">Upcoming Meetings</h2>
<button class="px-4 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700">
<i class="fas fa-plus mr-2"></i> Schedule Meeting
</button>
</div>
<div class="space-y-4">
<div class="flex items-start p-4 border border-gray-200 rounded-lg">
<div class="flex-shrink-0 p-2 bg-blue-100 text-blue-600 rounded-full">
<i class="fas fa-calendar-alt"></i>
</div>
<div class="ml-3 flex-1">
<div class="flex items-center justify-between">
<h3 class="text-sm font-medium text-gray-900">Faculty Meeting</h3>
<span class="text-xs text-gray-500">Tomorrow, 10:00 AM</span>
</div>
<p class="text-sm text-gray-500">Discussion about upcoming semester curriculum</p>
<div class="mt-2 flex items-center text-xs text-gray-500">
<i class="fas fa-users mr-1"></i>
<span>All department heads</span>
</div>
</div>
</div>
<div class="flex items-start p-4 border border-gray-200 rounded-lg">
<div class="flex-shrink-0 p-2 bg-green-100 text-green-600 rounded-full">
<i class="fas fa-calendar-alt"></i>
</div>
<div class="ml-3 flex-1">
<div class="flex items-center justify-between">
<h3 class="text-sm font-medium text-gray-900">Student Council</h3>
<span class="text-xs text-gray-500">Friday, 2:00 PM</span>
</div>
<p class="text-sm text-gray-500">Planning for orientation week activities</p>
<div class="mt-2 flex items-center text-xs text-gray-500">
<i class="fas fa-users mr-1"></i>
<span>Student representatives</span>
</div>
</div>
</div>
<div class="flex items-start p-4 border border-gray-200 rounded-lg">
<div class="flex-shrink-0 p-2 bg-purple-100 text-purple-600 rounded-full">
<i class="fas fa-calendar-alt"></i>
</div>
<div class="ml-3 flex-1">
<div class="flex items-center justify-between">
<h3 class="text-sm font-medium text-gray-900">Board of Trustees</h3>
<span class="text-xs text-gray-500">Next Monday, 9:00 AM</span>
</div>
<p class="text-sm text-gray-500">Annual budget review and approval</p>
<div class="mt-2 flex items-center text-xs text-gray-500">
<i class="fas fa-users mr-1"></i>
<span>All board members</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Lecturer Dashboard -->
<div id="lecturer-dashboard" class="hidden flex h-screen">
<!-- Sidebar -->
<div class="sidebar bg-green-800 text-white w-64 flex flex-col">
<div class="p-4 flex items-center justify-between border-b border-green-700">
<div class="flex items-center">
<img src="https://tailwindui.com/img/logos/workflow-mark-green-500.svg" alt="Logo" class="h-8 w-8">
<span class="sidebar-text ml-2 text-xl font-semibold">Lecturer Panel</span>
</div>
<button class="text-white focus:outline-none">
<i class="fas fa-bars"></i>
</button>
</div>
<div class="flex-1 overflow-y-auto">
<nav class="mt-4">
<div>
<a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-white bg-green-900">
<i class="fas fa-tachometer-alt mr-3"></i>
<span class="sidebar-text">Dashboard</span>
</a>
<a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-green-200 hover:bg-green-700 hover:text-white">
<i class="fas fa-comments mr-3"></i>
<span class="sidebar-text">Communicate</span>
<span class="notification-badge">4</span>
</a>
<a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-green-200 hover:bg-green-700 hover:text-white">
<i class="fas fa-tasks mr-3"></i>
<span class="sidebar-text">Assignments</span>
</a>
<a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-green-200 hover:bg-green-700 hover:text-white">
<i class="fas fa-calendar-alt mr-3"></i>
<span class="sidebar-text">Timetable</span>
</a>
<a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-green-200 hover:bg-green-700 hover:text-white">
<i class="fas fa-video mr-3"></i>
<span class="sidebar-text">Recorded Lectures</span>
</a>
<a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-green-200 hover:bg-green-700 hover:text-white">
<i class="fas fa-file-upload mr-3"></i>
<span class="sidebar-text">Upload Materials</span>
</a>
<a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-green-200 hover:bg-green-700 hover:text-white">
<i class="fas fa-calendar-check mr-3"></i>
<span class="sidebar-text">Book Meetings</span>
</a>
</div>
</nav>
</div>
<div class="p-4 border-t border-green-700">
<div class="flex items-center">
<img src="https://images.unsplash.com/photo-1573497019940-1c28c88b4f3e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80" alt="Lecturer" class="h-8 w-8 rounded-full">
<div class="sidebar-text ml-3">
<p class="text-sm font-medium text-white">Dr. Sarah Johnson</p>
<p class="text-xs font-medium text-green-200">s.johnson@school.edu</p>
</div>
</div>
<button class="mt-4 w-full flex items-center justify-center px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-green-600 bg-white hover:bg-green-50">
<i class="fas fa-sign-out-alt mr-2"></i>
<span class="sidebar-text">Logout</span>
</button>
</div>
</div>
<!-- Main Content -->
<div class="main-content flex-1 overflow-y-auto bg-gray-100">
<!-- Top Navigation -->
<div class="bg-white shadow">
<div class="px-4 py-4 sm:px-6 lg:px-8 flex justify-between items-center">
<h1 class="text-xl font-semibold text-gray-900">Lecturer Dashboard</h1>
<div class="flex items-center space-x-4">
<div class="relative">
<button class="p-1 rounded-full text-gray-400 hover:text-gray-500 focus:outline-none">
<i class="fas fa-bell text-xl"></i>
<span class="notification-badge">3</span>
</button>
</div>
<div class="relative">
<button class="p-1 rounded-full text-gray-400 hover:text-gray-500 focus:outline-none">
<i class="fas fa-envelope text-xl"></i>
<span class="notification-badge">4</span>
</button>
</div>
</div>
</div>
</div>
<!-- Dashboard Content -->
<div class="p-6">
<!-- Stats Cards -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6">
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center">
<div class="p-3 rounded-full bg-indigo-100 text-indigo-600">
<i class="fas fa-book-open text-xl"></i>
</div>
<div class="ml-4">
<p class="text-sm font-medium text-gray-500">Courses Teaching</p>
<p class="text-2xl font-semibold text-gray-900">4</p>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center">
<div class="p-3 rounded-full bg-green-100 text-green-600">
<i class="fas fa-user-graduate text-xl"></i>
</div>
<div class="ml-4">
<p class="text-sm font-medium text-gray-500">Students</p>
<p class="text-2xl font-semibold text-gray-900">142</p>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center">
<div class="p-3 rounded-full bg-blue-100 text-blue-600">
<i class="fas fa-tasks text-xl"></i>
</div>
<div class="ml-4">
<p class="text-sm font-medium text-gray-500">Pending Assignments</p>
<p class="text-2xl font-semibold text-gray-900">23</p>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center">
<div class="p-3 rounded-full bg-purple-100 text-purple-600">
<i class="fas fa-calendar-day text-xl"></i>
</div>
<div class="ml-4">
<p class="text-sm font-medium text-gray-500">Classes Today</p>
<p class="text-2xl font-semibold text-gray-900">2</p>
</div>
</div>
</div>
</div>
<!-- Today's Classes -->
<div class="bg-white rounded-lg shadow p-6 mb-6">
<h2 class="text-lg font-semibold text-gray-900 mb-4">Today's Classes</h2>
<div class="space-y-4">
<div class="p-4 border border-gray-200 rounded-lg">
<div class="flex items-center justify-between">
<h3 class="text-md font-medium text-gray-900">Advanced Database Systems</h3>
<span class="text-sm text-gray-500">10:00 AM - 12:00 PM</span>
</div>
<div class="mt-2 flex items-center text-sm text-gray-500">
<i class="fas fa-university mr-2"></i>
<span>Room 302, Computer Science Building</span>
</div>
<div class="mt-3 flex justify-end space-x-2">
<button class="px-3 py-1 bg-green-100 text-green-700 rounded-md text-sm hover:bg-green-200">
<i class="fas fa-check mr-1"></i> Mark Attendance
</button>
<button class="px-3 py-1 bg-red-100 text-red-700 rounded-md text-sm hover:bg-red-200">
<i class="fas fa-times mr-1"></i> Cancel Class
</button>
</div>
</div>
<div class="p-4 border border-gray-200 rounded-lg">
<div class="flex items-center justify-between">
<h3 class="text-md font-medium text-gray-900">Web Development</h3>
<span class="text-sm text-gray-500">2:00 PM - 4:00 PM</span>
</div>
<div class="mt-2 flex items-center text-sm text-gray-500">
<i class="fas fa-university mr-2"></i>
<span>Room 105, Engineering Building</span>
</div>
<div class="mt-3 flex justify-end space-x-2">
<button class="px-3 py-1 bg-green-100 text-green-700 rounded-md text-sm hover:bg-green-200">
<i class="fas fa-check mr-1"></i> Mark Attendance
</button>
<button class="px-3 py-1 bg-red-100 text-red-700 rounded-md text-sm hover:bg-red-200">
<i class="fas fa-times mr-1"></i> Cancel Class
</button>
</div>
</div>
</div>
</div>
<!-- Create Assignment -->
<div class="bg-white rounded-lg shadow p-6">
<h2 class="text-lg font-semibold text-gray-900 mb-4">Create New Assignment</h2>
<form>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<div>
<label for="assignment-course" class="block text-sm font-medium text-gray-700">Course</label>
<select id="assignment-course" class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-green-500 focus:border-green-500">
<option value="">Select course</option>
<option value="cs101">CS101 - Introduction to Programming</option>
<option value="cs201">CS201 - Data Structures</option>
<option value="cs301">CS301 - Advanced Database Systems</option>
<option value="cs401">CS401 - Web Development</option>
</select>
</div>
<div>
<label for="assignment-title" class="block text-sm font-medium text-gray-700">Title</label>
<input type="text" id="assignment-title" class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-green-500 focus:border-green-500">
</div>
<div>
<label for="assignment-due-date" class="block text-sm font-medium text-gray-700">Due Date</label>
<input type="date" id="assignment-due-date" class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-green-500 focus:border-green-500">
</div>
<div>
<label for="assignment-total-marks" class="block text-sm font-medium text-gray-700">Total Marks</label>
<input type="number" id="assignment-total-marks" class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-green-500 focus:border-green-500">
</div>
</div>
<div class="mt-4">
<label for="assignment-description" class="block text-sm font-medium text-gray-700">Description</label>
<textarea id="assignment-description" rows="4" class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-green-500 focus:border-green-500"></textarea>
</div>
<div class="mt-4">
<label class="block text-sm font-medium text-gray-700">Attachments</label>
<div class="mt-1 flex items-center">
<span class="inline-block h-12 w-12 rounded-full overflow-hidden bg-gray-100">
<svg class="h-full w-full text-gray-300" fill="currentColor" viewBox="0 0 24 24">
<path d="M24 20.993V24H0v-2.996A14.977 14.977 0 0112.004 15c4.904 0 9.26 2.354 11.996 5.993zM16.002 8.999a4 4 0 11-8 0 4 4 0 018 0z" />
</svg>
</span>
<button type="button" class="ml-5 bg-white py-2 px-3 border border-gray-300 rounded-md shadow-sm text-sm leading-4 font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500">
Upload Files
</button>
</div>
</div>
<div class="mt-6 flex justify-end">
<button type="button" class="bg-white py-2 px-4 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500">
Cancel
</button>
<button type="submit" class="ml-3 inline-flex justify-center py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-green-600 hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500">
Create Assignment
</button>
</div>
</form>
</div>
</div>
</div>
</div>
<!-- Student Dashboard -->
<div id="student-dashboard" class="hidden flex h-screen">
<!-- Sidebar -->
<div class="sidebar bg-purple-800 text-white w-64 flex flex-col">
<div class="p-4 flex items-center justify-between border-b border-purple-700">
<div class="flex items-center">
<img src="https://tailwindui.com/img/logos/workflow-mark-purple-500.svg" alt="Logo" class="h-8 w-8">
<span class="sidebar-text ml-2 text-xl font-semibold">Student Panel</span>
</div>
<button class="text-white focus:outline-none">
<i class="fas fa-bars"></i>
</button>
</div>
<div class="flex-1 overflow-y-auto">
<nav class="mt-4">
<div>
<a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-white bg-purple-900">
<i class="fas fa-tachometer-alt mr-3"></i>
<span class="sidebar-text">Dashboard</span>
</a>
<a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-purple-200 hover:bg-purple-700 hover:text-white">
<i class="fas fa-book mr-3"></i>
<span class="sidebar-text">My Courses</span>
</a>
<a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-purple-200 hover:bg-purple-700 hover:text-white">
<i class="fas fa-calendar-alt mr-3"></i>
<span class="sidebar-text">Timetable</span>
</a>
<a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-purple-200 hover:bg-purple-700 hover:text-white">
<i class="fas fa-tasks mr-3"></i>
<span class="sidebar-text">Assignments</span>
<span class="notification-badge">2</span>
</a>
<a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-purple-200 hover:bg-purple-700 hover:text-white">
<i class="fas fa-graduation-cap mr-3"></i>
<span class="sidebar-text">Grades</span>
</a>
<a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-purple-200 hover:bg-purple-700 hover:text-white">
<i class="fas fa-comments mr-3"></i>
<span class="sidebar-text">Messages</span>
<span class="notification-badge">3</span>
</a>
<a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-purple-200 hover:bg-purple-700 hover:text-white">
<i class="fas fa-users mr-3"></i>
<span class="sidebar-text">Social Space</span>
</a>
<a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-purple-200 hover:bg-purple-700 hover:text-white">
<i class="fas fa-file-invoice-dollar mr-3"></i>
<span class="sidebar-text">Fee Payment</span>
</a>
<a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-purple-200 hover:bg-purple-700 hover:text-white">
<i class="fas fa-microphone mr-3"></i>
<span class="sidebar-text">Text-to-Speech</span>
</a>
</div>
</nav>
</div>
<div class="p-4 border-t border-purple-700">
<div class="flex items-center">
<img src="https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80" alt="Student" class="h-8 w-8 rounded-full">
<div class="sidebar-text ml-3">
<p class="text-sm font-medium text-white">John Doe</p>
<p class="text-xs font-medium text-purple-200">CS2023001@school.edu</p>
</div>
</div>
<button class="mt-4 w-full flex items-center justify-center px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-purple-600 bg-white hover:bg-purple-50">
<i class="fas fa-sign-out-alt mr-2"></i>
<span class="sidebar-text">Logout</span>
</button>
</div>
</div>
<!-- Main Content -->
<div class="main-content flex-1 overflow-y-auto bg-gray-100">
<!-- Top Navigation -->
<div class="bg-white shadow">
<div class="px-4 py-4 sm:px-6 lg:px-8 flex justify-between items-center">
<h1 class="text-xl font-semibold text-gray-900">Student Dashboard</h1>
<div class="flex items-center space-x-4">
<div class="relative">
<button class="p-1 rounded-full text-gray-400 hover:text-gray-500 focus:outline-none">
<i class="fas fa-bell text-xl"></i>
<span class="notification-badge">5</span>
</button>
</div>
<div class="relative">
<button class="p-1 rounded-full text-gray-400 hover:text-gray-500 focus:outline-none">
<i class="fas fa-envelope text-xl"></i>
<span class="notification-badge">3</span>
</button>
</div>
</div>
</div>
</div>
<!-- Dashboard Content -->
<div class="p-6">
<!-- Welcome Banner -->
<div class="bg-gradient-to-r from-purple-600 to-indigo-600 rounded-lg shadow p-6 mb-6 text-white">
<h2 class="text-2xl font-bold mb-2">Welcome back, John!</h2>
<p class="mb-4">You have 2 upcoming classes today and 1 pending assignment to submit.</p>
<div class="flex space-x-4">
<div class="bg-white bg-opacity-20 p-3 rounded-lg">
<p class="text-sm">Current Semester</p>
<p class="font-semibold">Fall 2023</p>
</div>
<div class="bg-white bg-opacity-20 p-3 rounded-lg">
<p class="text-sm">Registered Courses</p>
<p class="font-semibold">5</p>
</div>
<div class="bg-white bg-opacity-20 p-3 rounded-lg">
<p class="text-sm">CGPA</p>
<p class="font-semibold">3.75</p>
</div>
</div>
</div>
<!-- Upcoming Classes -->
<div class="bg-white rounded-lg shadow p-6 mb-6">
<h2 class="text-lg font-semibold text-gray-900 mb-4">Upcoming Classes</h2>
<div class="space-y-4">
<div class="p-4 border border-gray-200 rounded-lg">
<div class="flex items-center justify-between">
<div>
<h3 class="text-md font-medium text-gray-900">Data Structures</h3>
<p class="text-sm text-gray-500">Dr. Sarah Johnson</p>
</div>
<div class="text-right">
<span class="text-sm text-gray-500">10:00 AM - 12:00 PM</span>
<p class="text-sm text-gray-500">Room 302, CS Building</p>
</div>
</div>
<div class="mt-3 flex justify-between items-center">
<div class="flex items-center text-sm text-gray-500">
<i class="fas fa-clock mr-1"></i>
<span>Starts in 1 hour 15 minutes</span>
</div>
<button class="px-3 py-1 bg-purple-100 text-purple-700 rounded-md text-sm hover:bg-purple-200">
<i class="fas fa-bell mr-1"></i> Set Reminder
</button>
</div>
</div>
<div class="p-4 border border-gray-200 rounded-lg">
<div class="flex items-center justify-between">
<div>
<h3 class="text-md font-medium text-gray-900">Web Development</h3>
<p class="text-sm text-gray-500">Prof. Michael Brown</p>
</div>
<div class="text-right">
<span class="text-sm text-gray-500">2:00 PM - 4:00 PM</span>
<p class="text-sm text-gray-500">Room 105, Engineering Building</p>
</div>
</div>
<div class="mt-3 flex justify-between items-center">
<div class="flex items-center text-sm text-gray-500">
<i class="fas fa-clock mr-1"></i>
<span>Starts in 5 hours 15 minutes</span>
</div>
<button class="px-3 py-1 bg-purple-100 text-purple-700 rounded-md text-sm hover:bg-purple-200">
<i class="fas fa-bell mr-1"></i> Set Reminder
</button>
</div>
</div>
</div>
</div>
<!-- Pending Assignments -->
<div class="bg-white rounded-lg shadow p-6 mb-6">
<div class="flex justify-between items-center mb-4">
<h2 class="text-lg font-semibold text-gray-900">Pending Assignments</h2>
<button class="px-4 py-2 bg-purple-600 text-white rounded-md hover:bg-purple-700">
View All
</button>
</div>
<div class="space-y-4">
<div class="assignment-card p-4 border border-gray-200 rounded-lg hover:shadow-md">
<div class="flex justify-between">
<div>
<h3 class="text-md font-medium text-gray-900">Database Design Project</h3>
<p class="text-sm text-gray-500">Advanced Database Systems</p>
</div>
<div class="text-right">
<span class="text-sm font-medium text-red-600">Due Tomorrow</span>
<p class="text-sm text-gray-500">Total Marks: 100</p>
</div>
</div>
<div class="mt-3">
<p class="text-sm text-gray-700">Design a complete database schema for a university management system including all necessary tables, relationships, and constraints.</p>
</div>
<div class="mt-4 flex justify-between items-center">
<div class="flex items-center text-sm text-gray-500">
<i class="fas fa-paperclip mr-1"></i>
<span>3 files attached</span>
</div>
<button class="px-3 py-1 bg-purple-600 text-white rounded-md text-sm hover:bg-purple-700">
<i class="fas fa-upload mr-1"></i> Submit Now
</button>
</div>
</div>
<div class="assignment-card p-4 border border-gray-200 rounded-lg hover:shadow-md">
<div class="flex justify-between">
<div>
<h3 class="text-md font-medium text-gray-900">React Component Development</h3>
<p class="text-sm text-gray-500">Web Development</p>
</div>
<div class="text-right">
<span class="text-sm font-medium text-yellow-600">Due in 3 days</span>
<p class="text-sm text-gray-500">Total Marks: 50</p>
</div>
</div>
<div class="mt-3">
<p class="text-sm text-gray-700">Create a React component that fetches data from an API and displays it in a responsive grid layout with sorting and filtering capabilities.</p>
</div>
<div class="mt-4 flex justify-between items-center">
<div class="flex items-center text-sm text-gray-500">
<i class="fas fa-paperclip mr-1"></i>
<span>1 file attached</span>
</div>
<button class="px-3 py-1 bg-purple-600 text-white rounded-md text-sm hover:bg-purple-700">
<i class="fas fa-upload mr-1"></i> Submit Now
</button>
</div>
</div>
</div>
</div>
<!-- Course Registration -->
<div class="bg-white rounded-lg shadow p-6">
<h2 class="text-lg font-semibold text-gray-900 mb-4">Course Registration</h2>
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Course Code</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Course Name</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Lecturer</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Credits</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-w
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Oloud/lms-inter" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>School Management System</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
.sidebar {
transition: all 0.3s;
}
.sidebar.collapsed {
width: 70px;
}
.sidebar.collapsed .sidebar-text {
display: none;
}
.main-content {
transition: all 0.3s;
}
.sidebar.collapsed + .main-content {
margin-left: 70px;
}
.notification-badge {
position: absolute;
top: -5px;
right: -5px;
font-size: 10px;
background-color: #ef4444;
color: white;
border-radius: 50%;
width: 18px;
height: 18px;
display: flex;
align-items: center;
justify-content: center;
}
.chart-container {
position: relative;
height: 300px;
width: 100%;
}
.file-upload {
border: 2px dashed #d1d5db;
border-radius: 0.5rem;
transition: all 0.3s;
}
.file-upload:hover {
border-color: #3b82f6;
}
.timetable-cell {
min-height: 80px;
border: 1px solid #e5e7eb;
}
.timetable-cell:hover {
background-color: #f3f4f6;
}
.assignment-card {
transition: all 0.2s;
}
.assignment-card:hover {
transform: translateY(-2px);
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.message-bubble {
max-width: 70%;
border-radius: 1rem;
}
.message-bubble.sent {
background-color: #3b82f6;
color: white;
margin-left: auto;
}
.message-bubble.received {
background-color: #e5e7eb;
color: #1f2937;
}
</style>
</head>
<body class="bg-gray-100 font-sans">
<!-- Login Page -->
<div id="login-page" class="min-h-screen flex items-center justify-center bg-gray-50 py-12 px-4 sm:px-6 lg:px-8">
<div class="max-w-md w-full space-y-8 bg-white p-8 rounded-lg shadow-lg">
<div>
<img class="mx-auto h-12 w-auto" src="https://tailwindui.com/img/logos/workflow-mark-indigo-600.svg" alt="Workflow">
<h2 class="mt-6 text-center text-3xl font-extrabold text-gray-900">
School Management System
</h2>
<p class="mt-2 text-center text-sm text-gray-600">
Sign in to your account
</p>
</div>
<form class="mt-8 space-y-6" action="#" method="POST">
<input type="hidden" name="remember" value="true">
<div class="rounded-md shadow-sm space-y-4">
<div>
<label for="email-address" class="sr-only">Email address</label>
<input id="email-address" name="email" type="email" autocomplete="email" required class="appearance-none rounded-none relative block w-full px-3 py-2 border border-gray-300 placeholder-gray-500 text-gray-900 rounded-t-md focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 focus:z-10 sm:text-sm" placeholder="Email address">
</div>