using MySQL as the database develop a professional website with the following features and requirements Admin Requirements: - Admin should be able to add the school's yearly timetable. - Admin should be able to add timetables for each course. - Admin should be able to add new courses and subjects under those courses. - Admin should be able to register new students. - Admin should be able to send information to both students and lecturers directly and generally. - 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
e35ca57 verified Download index.html from Oloud/lms: direct link, hf CLI and curl.
- Browser
- Download file 41.3 kB
-
https://huggingface.co/spaces/Oloud/lms/resolve/main/index.html
- Command line
-
hf download hf://spaces/Oloud/lms/index.html
-
curl -L -o index.html https://huggingface.co/spaces/Oloud/lms/resolve/main/index.html
41.3 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>EduTrack LMS</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> | |
| /* Custom CSS for features Tailwind doesn't cover */ | |
| .sidebar { | |
| transition: all 0.3s ease; | |
| } | |
| .sidebar-collapsed { | |
| width: 70px; | |
| } | |
| .sidebar-expanded { | |
| width: 250px; | |
| } | |
| .main-content { | |
| transition: margin-left 0.3s ease; | |
| } | |
| .content-expanded { | |
| margin-left: 250px; | |
| } | |
| .content-collapsed { | |
| 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; | |
| } | |
| .file-upload-container { | |
| border: 2px dashed #cbd5e0; | |
| transition: all 0.3s ease; | |
| } | |
| .file-upload-container:hover { | |
| border-color: #6366f1; | |
| background-color: #f8fafc; | |
| } | |
| .timetable-cell { | |
| min-height: 80px; | |
| border: 1px solid #e2e8f0; | |
| } | |
| .timetable-cell:hover { | |
| background-color: #f1f5f9; | |
| } | |
| .chat-message { | |
| max-width: 70%; | |
| word-wrap: break-word; | |
| } | |
| .grading-progress { | |
| height: 8px; | |
| background-color: #e2e8f0; | |
| } | |
| .grading-progress-bar { | |
| height: 100%; | |
| background-color: #10b981; | |
| } | |
| @media (max-width: 768px) { | |
| .sidebar { | |
| position: fixed; | |
| z-index: 1000; | |
| height: 100vh; | |
| } | |
| .sidebar-collapsed, .sidebar-expanded { | |
| width: 0; | |
| overflow: hidden; | |
| } | |
| .main-content { | |
| margin-left: 0 ; | |
| } | |
| .mobile-menu-button { | |
| display: block ; | |
| } | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-50"> | |
| <!-- Mobile Menu Button --> | |
| <button id="mobileMenuButton" class="md:hidden fixed top-4 left-4 z-50 bg-indigo-600 text-white p-2 rounded-lg shadow-lg"> | |
| <i class="fas fa-bars"></i> | |
| </button> | |
| <!-- Sidebar --> | |
| <div id="sidebar" class="sidebar sidebar-expanded bg-indigo-800 text-white h-screen fixed overflow-y-auto"> | |
| <div class="p-4 flex items-center justify-between border-b border-indigo-700"> | |
| <div class="flex items-center space-x-2"> | |
| <i class="fas fa-graduation-cap text-2xl"></i> | |
| <span id="logoText" class="text-xl font-bold">EduTrack</span> | |
| </div> | |
| <button id="toggleSidebar" class="text-white hover:text-indigo-200"> | |
| <i class="fas fa-chevron-left"></i> | |
| </button> | |
| </div> | |
| <!-- User Profile --> | |
| <div class="p-4 flex items-center space-x-3 border-b border-indigo-700"> | |
| <div class="relative"> | |
| <img src="https://randomuser.me/api/portraits/men/1.jpg" alt="Profile" class="w-10 h-10 rounded-full"> | |
| <span class="absolute bottom-0 right-0 w-3 h-3 bg-green-500 rounded-full border-2 border-indigo-800"></span> | |
| </div> | |
| <div id="userInfo"> | |
| <p class="font-medium">Admin User</p> | |
| <p class="text-xs text-indigo-200">Administrator</p> | |
| </div> | |
| </div> | |
| <!-- Navigation --> | |
| <nav class="mt-4"> | |
| <div class="px-2"> | |
| <p class="text-xs uppercase text-indigo-400 font-semibold mb-2">Dashboard</p> | |
| <a href="#" class="flex items-center space-x-3 p-2 rounded-lg bg-indigo-700 text-white"> | |
| <i class="fas fa-home"></i> | |
| <span>Dashboard</span> | |
| </a> | |
| </div> | |
| <div class="px-2 mt-4"> | |
| <p class="text-xs uppercase text-indigo-400 font-semibold mb-2">Management</p> | |
| <a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-indigo-700 text-white"> | |
| <i class="fas fa-users"></i> | |
| <span>Users</span> | |
| </a> | |
| <a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-indigo-700 text-white"> | |
| <i class="fas fa-book"></i> | |
| <span>Courses</span> | |
| </a> | |
| <a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-indigo-700 text-white"> | |
| <i class="fas fa-calendar-alt"></i> | |
| <span>Timetables</span> | |
| </a> | |
| <a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-indigo-700 text-white"> | |
| <i class="fas fa-file-alt"></i> | |
| <span>Content</span> | |
| </a> | |
| </div> | |
| <div class="px-2 mt-4"> | |
| <p class="text-xs uppercase text-indigo-400 font-semibold mb-2">Communication</p> | |
| <a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-indigo-700 text-white"> | |
| <div class="relative"> | |
| <i class="fas fa-envelope"></i> | |
| <span class="notification-badge">3</span> | |
| </div> | |
| <span>Messages</span> | |
| </a> | |
| <a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-indigo-700 text-white"> | |
| <i class="fas fa-bullhorn"></i> | |
| <span>Announcements</span> | |
| </a> | |
| <a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-indigo-700 text-white"> | |
| <i class="fas fa-calendar-check"></i> | |
| <span>Meetings</span> | |
| </a> | |
| </div> | |
| <div class="px-2 mt-4"> | |
| <p class="text-xs uppercase text-indigo-400 font-semibold mb-2">Academic</p> | |
| <a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-indigo-700 text-white"> | |
| <i class="fas fa-tasks"></i> | |
| <span>Assignments</span> | |
| </a> | |
| <a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-indigo-700 text-white"> | |
| <i class="fas fa-chart-bar"></i> | |
| <span>Grades</span> | |
| </a> | |
| <a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-indigo-700 text-white"> | |
| <i class="fas fa-user-check"></i> | |
| <span>Attendance</span> | |
| </a> | |
| </div> | |
| <div class="px-2 mt-4"> | |
| <p class="text-xs uppercase text-indigo-400 font-semibold mb-2">Settings</p> | |
| <a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-indigo-700 text-white"> | |
| <i class="fas fa-cog"></i> | |
| <span>Settings</span> | |
| </a> | |
| <a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-indigo-700 text-white"> | |
| <i class="fas fa-sign-out-alt"></i> | |
| <span>Logout</span> | |
| </a> | |
| </div> | |
| </nav> | |
| </div> | |
| <!-- Main Content --> | |
| <div id="mainContent" class="main-content content-expanded min-h-screen"> | |
| <!-- Top Navigation --> | |
| <header class="bg-white shadow-sm"> | |
| <div class="max-w-7xl mx-auto px-4 py-4 sm:px-6 lg:px-8 flex justify-between items-center"> | |
| <h1 class="text-lg font-semibold text-gray-900">Admin Dashboard</h1> | |
| <div class="flex items-center space-x-4"> | |
| <div class="relative"> | |
| <button class="p-2 rounded-full text-gray-600 hover:text-gray-900 hover:bg-gray-100"> | |
| <i class="fas fa-bell"></i> | |
| <span class="notification-badge">5</span> | |
| </button> | |
| </div> | |
| <div class="relative"> | |
| <button class="p-2 rounded-full text-gray-600 hover:text-gray-900 hover:bg-gray-100"> | |
| <i class="fas fa-envelope"></i> | |
| <span class="notification-badge">3</span> | |
| </button> | |
| </div> | |
| <div class="relative"> | |
| <img src="https://randomuser.me/api/portraits/men/1.jpg" alt="Profile" class="w-8 h-8 rounded-full"> | |
| </div> | |
| </div> | |
| </div> | |
| </header> | |
| <!-- Dashboard Content --> | |
| <main class="max-w-7xl mx-auto px-4 py-6 sm:px-6 lg:px-8"> | |
| <!-- Stats Cards --> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8"> | |
| <div class="bg-white rounded-lg shadow p-6"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="text-sm font-medium text-gray-500">Total Students</p> | |
| <p class="text-2xl font-semibold text-gray-900">1,248</p> | |
| </div> | |
| <div class="p-3 rounded-full bg-indigo-100 text-indigo-600"> | |
| <i class="fas fa-users"></i> | |
| </div> | |
| </div> | |
| <div class="mt-4"> | |
| <span class="text-green-600 text-sm font-medium">+12.5%</span> | |
| <span class="text-gray-500 text-sm ml-2">from last semester</span> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-lg shadow p-6"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="text-sm font-medium text-gray-500">Active Lecturers</p> | |
| <p class="text-2xl font-semibold text-gray-900">48</p> | |
| </div> | |
| <div class="p-3 rounded-full bg-green-100 text-green-600"> | |
| <i class="fas fa-chalkboard-teacher"></i> | |
| </div> | |
| </div> | |
| <div class="mt-4"> | |
| <span class="text-green-600 text-sm font-medium">+3.2%</span> | |
| <span class="text-gray-500 text-sm ml-2">from last semester</span> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-lg shadow p-6"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="text-sm font-medium text-gray-500">Courses Offered</p> | |
| <p class="text-2xl font-semibold text-gray-900">36</p> | |
| </div> | |
| <div class="p-3 rounded-full bg-blue-100 text-blue-600"> | |
| <i class="fas fa-book"></i> | |
| </div> | |
| </div> | |
| <div class="mt-4"> | |
| <span class="text-green-600 text-sm font-medium">+2</span> | |
| <span class="text-gray-500 text-sm ml-2">new courses</span> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-lg shadow p-6"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="text-sm font-medium text-gray-500">Pending Tasks</p> | |
| <p class="text-2xl font-semibold text-gray-900">7</p> | |
| </div> | |
| <div class="p-3 rounded-full bg-yellow-100 text-yellow-600"> | |
| <i class="fas fa-tasks"></i> | |
| </div> | |
| </div> | |
| <div class="mt-4"> | |
| <span class="text-red-600 text-sm font-medium">-2</span> | |
| <span class="text-gray-500 text-sm ml-2">since yesterday</span> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Main Sections --> | |
| <div class="grid grid-cols-1 lg:grid-cols-3 gap-6"> | |
| <!-- Left Column --> | |
| <div class="lg:col-span-2 space-y-6"> | |
| <!-- Timetable Management --> | |
| <div class="bg-white rounded-lg shadow overflow-hidden"> | |
| <div class="px-6 py-4 border-b border-gray-200"> | |
| <h2 class="text-lg font-semibold text-gray-900">Timetable Management</h2> | |
| </div> | |
| <div class="p-6"> | |
| <div class="flex justify-between items-center mb-4"> | |
| <div> | |
| <h3 class="text-md font-medium">Academic Year 2023/2024</h3> | |
| <p class="text-sm text-gray-500">Semester 1 Timetable</p> | |
| </div> | |
| <div class="flex space-x-2"> | |
| <button class="px-3 py-1 bg-indigo-600 text-white rounded-md text-sm hover:bg-indigo-700"> | |
| <i class="fas fa-plus mr-1"></i> Add Timetable | |
| </button> | |
| <button class="px-3 py-1 bg-white border border-gray-300 text-gray-700 rounded-md text-sm hover:bg-gray-50"> | |
| <i class="fas fa-download mr-1"></i> Export | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Timetable View --> | |
| <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-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Time</th> | |
| <th scope="col" class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Monday</th> | |
| <th scope="col" class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Tuesday</th> | |
| <th scope="col" class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Wednesday</th> | |
| <th scope="col" class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Thursday</th> | |
| <th scope="col" class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Friday</th> | |
| </tr> | |
| </thead> | |
| <tbody class="bg-white divide-y divide-gray-200"> | |
| <tr> | |
| <td class="px-4 py-4 whitespace-nowrap text-sm font-medium text-gray-900">8:00 - 9:30</td> | |
| <td class="px-4 py-4"> | |
| <div class="timetable-cell p-2 bg-blue-50 rounded"> | |
| <p class="text-sm font-medium">Mathematics 101</p> | |
| <p class="text-xs text-gray-500">Prof. Smith</p> | |
| <p class="text-xs text-gray-500">Room A12</p> | |
| </div> | |
| </td> | |
| <td class="px-4 py-4"></td> | |
| <td class="px-4 py-4"> | |
| <div class="timetable-cell p-2 bg-green-50 rounded"> | |
| <p class="text-sm font-medium">Physics 101</p> | |
| <p class="text-xs text-gray-500">Dr. Johnson</p> | |
| <p class="text-xs text-gray-500">Lab B3</p> | |
| </div> | |
| </td> | |
| <td class="px-4 py-4"></td> | |
| <td class="px-4 py-4"> | |
| <div class="timetable-cell p-2 bg-purple-50 rounded"> | |
| <p class="text-sm font-medium">Computer Science</p> | |
| <p class="text-xs text-gray-500">Dr. Lee</p> | |
| <p class="text-xs text-gray-500">Room C5</p> | |
| </div> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td class="px-4 py-4 whitespace-nowrap text-sm font-medium text-gray-900">10:00 - 11:30</td> | |
| <td class="px-4 py-4"></td> | |
| <td class="px-4 py-4"> | |
| <div class="timetable-cell p-2 bg-yellow-50 rounded"> | |
| <p class="text-sm font-medium">Literature 101</p> | |
| <p class="text-xs text-gray-500">Prof. Brown</p> | |
| <p class="text-xs text-gray-500">Room D8</p> | |
| </div> | |
| </td> | |
| <td class="px-4 py-4"></td> | |
| <td class="px-4 py-4"> | |
| <div class="timetable-cell p-2 bg-red-50 rounded"> | |
| <p class="text-sm font-medium">Chemistry</p> | |
| <p class="text-xs text-gray-500">Dr. Wilson</p> | |
| <p class="text-xs text-gray-500">Lab A2</p> | |
| </div> | |
| </td> | |
| <td class="px-4 py-4"></td> | |
| </tr> | |
| <!-- More time slots... --> | |
| </tbody> | |
| </table> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Course Management --> | |
| <div class="bg-white rounded-lg shadow overflow-hidden"> | |
| <div class="px-6 py-4 border-b border-gray-200"> | |
| <h2 class="text-lg font-semibold text-gray-900">Course Management</h2> | |
| </div> | |
| <div class="p-6"> | |
| <div class="flex justify-between items-center mb-4"> | |
| <div> | |
| <h3 class="text-md font-medium">Current Courses</h3> | |
| <p class="text-sm text-gray-500">All active courses in the system</p> | |
| </div> | |
| <button class="px-3 py-1 bg-indigo-600 text-white rounded-md text-sm hover:bg-indigo-700"> | |
| <i class="fas fa-plus mr-1"></i> Add Course | |
| </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-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Course Code</th> | |
| <th scope="col" class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Course Name</th> | |
| <th scope="col" class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Lecturer</th> | |
| <th scope="col" class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Students</th> | |
| <th scope="col" class="px-4 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-4 py-4 whitespace-nowrap text-sm font-medium text-gray-900">CS101</td> | |
| <td class="px-4 py-4 whitespace-nowrap text-sm text-gray-500">Introduction to Computer Science</td> | |
| <td class="px-4 py-4 whitespace-nowrap text-sm text-gray-500">Dr. Sarah Lee</td> | |
| <td class="px-4 py-4 whitespace-nowrap text-sm text-gray-500">142</td> | |
| <td class="px-4 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-4 py-4 whitespace-nowrap text-sm font-medium text-gray-900">MATH201</td> | |
| <td class="px-4 py-4 whitespace-nowrap text-sm text-gray-500">Calculus II</td> | |
| <td class="px-4 py-4 whitespace-nowrap text-sm text-gray-500">Prof. John Smith</td> | |
| <td class="px-4 py-4 whitespace-nowrap text-sm text-gray-500">98</td> | |
| <td class="px-4 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> | |
| <!-- More courses... --> | |
| </tbody> | |
| </table> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Right Column --> | |
| <div class="space-y-6"> | |
| <!-- Quick Actions --> | |
| <div class="bg-white rounded-lg shadow overflow-hidden"> | |
| <div class="px-6 py-4 border-b border-gray-200"> | |
| <h2 class="text-lg font-semibold text-gray-900">Quick Actions</h2> | |
| </div> | |
| <div class="p-6 grid grid-cols-2 gap-4"> | |
| <button class="flex flex-col items-center justify-center p-4 border border-gray-200 rounded-lg hover:bg-gray-50"> | |
| <div class="p-3 rounded-full bg-indigo-100 text-indigo-600 mb-2"> | |
| <i class="fas fa-user-plus"></i> | |
| </div> | |
| <span class="text-sm font-medium">Add Student</span> | |
| </button> | |
| <button class="flex flex-col items-center justify-center p-4 border border-gray-200 rounded-lg hover:bg-gray-50"> | |
| <div class="p-3 rounded-full bg-green-100 text-green-600 mb-2"> | |
| <i class="fas fa-chalkboard-teacher"></i> | |
| </div> | |
| <span class="text-sm font-medium">Add Lecturer</span> | |
| </button> | |
| <button class="flex flex-col items-center justify-center p-4 border border-gray-200 rounded-lg hover:bg-gray-50"> | |
| <div class="p-3 rounded-full bg-blue-100 text-blue-600 mb-2"> | |
| <i class="fas fa-calendar-plus"></i> | |
| </div> | |
| <span class="text-sm font-medium">Add Event</span> | |
| </button> | |
| <button class="flex flex-col items-center justify-center p-4 border border-gray-200 rounded-lg hover:bg-gray-50"> | |
| <div class="p-3 rounded-full bg-purple-100 text-purple-600 mb-2"> | |
| <i class="fas fa-bullhorn"></i> | |
| </div> | |
| <span class="text-sm font-medium">Send Announcement</span> | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Recent Announcements --> | |
| <div class="bg-white rounded-lg shadow overflow-hidden"> | |
| <div class="px-6 py-4 border-b border-gray-200"> | |
| <h2 class="text-lg font-semibold text-gray-900">Recent Announcements</h2> | |
| </div> | |
| <div class="p-6 space-y-4"> | |
| <div class="flex items-start"> | |
| <div class="flex-shrink-0"> | |
| <img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/women/1.jpg" alt="Admin"> | |
| </div> | |
| <div class="ml-3"> | |
| <p class="text-sm font-medium text-gray-900">Admin</p> | |
| <p class="text-sm text-gray-500">Midterm exams schedule has been updated. Please check your timetable.</p> | |
| <div class="mt-1 flex items-center text-xs text-gray-500"> | |
| <span>2 hours ago</span> | |
| <span class="mx-1">•</span> | |
| <button class="text-indigo-600 hover:text-indigo-900">View Details</button> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="flex items-start"> | |
| <div class="flex-shrink-0"> | |
| <img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/men/2.jpg" alt="President"> | |
| </div> | |
| <div class="ml-3"> | |
| <p class="text-sm font-medium text-gray-900">School President</p> | |
| <p class="text-sm text-gray-500">The annual science fair will be held next month. Registration is now open.</p> | |
| <div class="mt-1 flex items-center text-xs text-gray-500"> | |
| <span>1 day ago</span> | |
| <span class="mx-1">•</span> | |
| <button class="text-indigo-600 hover:text-indigo-900">View Details</button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="px-6 py-3 border-t border-gray-200 bg-gray-50 text-right"> | |
| <button class="text-sm font-medium text-indigo-600 hover:text-indigo-900">View all announcements</button> | |
| </div> | |
| </div> | |
| <!-- File Upload --> | |
| <div class="bg-white rounded-lg shadow overflow-hidden"> | |
| <div class="px-6 py-4 border-b border-gray-200"> | |
| <h2 class="text-lg font-semibold text-gray-900">Upload Files</h2> | |
| </div> | |
| <div class="p-6"> | |
| <div class="file-upload-container rounded-lg p-6 text-center"> | |
| <div class="mx-auto h-12 w-12 text-gray-400"> | |
| <i class="fas fa-cloud-upload-alt text-3xl"></i> | |
| </div> | |
| <h3 class="mt-2 text-sm font-medium text-gray-900">Drag and drop files here</h3> | |
| <p class="mt-1 text-xs text-gray-500">or</p> | |
| <label for="file-upload" class="mt-2 inline-flex items-center px-3 py-2 border border-gray-300 shadow-sm text-sm leading-4 font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"> | |
| <i class="fas fa-folder-open mr-2"></i> | |
| Browse Files | |
| </label> | |
| <input id="file-upload" name="file-upload" type="file" class="sr-only"> | |
| </div> | |
| <div class="mt-4"> | |
| <label for="recipient" class="block text-sm font-medium text-gray-700">Recipient</label> | |
| <select id="recipient" name="recipient" class="mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md"> | |
| <option>All Students</option> | |
| <option>All Lecturers</option> | |
| <option>Computer Science Students</option> | |
| <option>Mathematics Department</option> | |
| </select> | |
| </div> | |
| <div class="mt-4"> | |
| <label for="message" class="block text-sm font-medium text-gray-700">Message</label> | |
| <textarea id="message" name="message" rows="3" class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"></textarea> | |
| </div> | |
| <div class="mt-4 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"> | |
| Send | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </main> | |
| </div> | |
| <!-- Database Connection Modal (Hidden by default) --> | |
| <div id="dbModal" class="hidden fixed z-50 inset-0 overflow-y-auto"> | |
| <div class="flex items-center justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0"> | |
| <div class="fixed inset-0 transition-opacity" aria-hidden="true"> | |
| <div class="absolute inset-0 bg-gray-500 opacity-75"></div> | |
| </div> | |
| <span class="hidden sm:inline-block sm:align-middle sm:h-screen" aria-hidden="true">​</span> | |
| <div class="inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full"> | |
| <div class="bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4"> | |
| <h3 class="text-lg leading-6 font-medium text-gray-900 mb-4">MySQL Database Connection</h3> | |
| <form> | |
| <div class="mb-4"> | |
| <label for="dbHost" class="block text-sm font-medium text-gray-700">Host</label> | |
| <input type="text" id="dbHost" name="dbHost" 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 sm:text-sm" value="localhost"> | |
| </div> | |
| <div class="mb-4"> | |
| <label for="dbUser" class="block text-sm font-medium text-gray-700">Username</label> | |
| <input type="text" id="dbUser" name="dbUser" 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 sm:text-sm" value="root"> | |
| </div> | |
| <div class="mb-4"> | |
| <label for="dbPass" class="block text-sm font-medium text-gray-700">Password</label> | |
| <input type="password" id="dbPass" name="dbPass" 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 sm:text-sm"> | |
| </div> | |
| <div class="mb-4"> | |
| <label for="dbName" class="block text-sm font-medium text-gray-700">Database Name</label> | |
| <input type="text" id="dbName" name="dbName" 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 sm:text-sm" value="edutrack_lms"> | |
| </div> | |
| </form> | |
| </div> | |
| <div class="bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse"> | |
| <button type="button" class="w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-indigo-600 text-base font-medium text-white hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:ml-3 sm:w-auto sm:text-sm"> | |
| Test Connection | |
| </button> | |
| <button type="button" class="mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"> | |
| Cancel | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <script> | |
| // Toggle sidebar | |
| document.getElementById('toggleSidebar').addEventListener('click', function() { | |
| const sidebar = document.getElementById('sidebar'); | |
| const mainContent = document.getElementById('mainContent'); | |
| const logoText = document.getElementById('logoText'); | |
| if (sidebar.classList.contains('sidebar-expanded')) { | |
| sidebar.classList.remove('sidebar-expanded'); | |
| sidebar.classList.add('sidebar-collapsed'); | |
| mainContent.classList.remove('content-expanded'); | |
| mainContent.classList.add('content-collapsed'); | |
| logoText.classList.add('hidden'); | |
| } else { | |
| sidebar.classList.remove('sidebar-collapsed'); | |
| sidebar.classList.add('sidebar-expanded'); | |
| mainContent.classList.remove('content-collapsed'); | |
| mainContent.classList.add('content-expanded'); | |
| logoText.classList.remove('hidden'); | |
| } | |
| }); | |
| // Mobile menu toggle | |
| document.getElementById('mobileMenuButton').addEventListener('click', function() { | |
| const sidebar = document.getElementById('sidebar'); | |
| if (sidebar.classList.contains('sidebar-expanded') || sidebar.classList.contains('sidebar-collapsed')) { | |
| sidebar.classList.remove('sidebar-expanded', 'sidebar-collapsed'); | |
| } else { | |
| sidebar.classList.add('sidebar-expanded'); | |
| document.getElementById('mainContent').classList.remove('content-collapsed', 'content-expanded'); | |
| } | |
| }); | |
| // Database connection modal (for demonstration) | |
| document.addEventListener('DOMContentLoaded', function() { | |
| // In a real application, this would be handled by your backend | |
| console.log('EduTrack LMS loaded. Database connection would be established here.'); | |
| // Example of connecting to MySQL (this would be server-side in a real app) | |
| /* | |
| const mysql = require('mysql'); | |
| const connection = mysql.createConnection({ | |
| host: 'localhost', | |
| user: 'root', | |
| password: '', | |
| database: 'edutrack_lms' | |
| }); | |
| connection.connect((err) => { | |
| if (err) { | |
| console.error('Error connecting to MySQL:', err); | |
| return; | |
| } | |
| console.log('Connected to MySQL database'); | |
| }); | |
| */ | |
| }); | |
| // File upload interaction | |
| const fileUploadContainer = document.querySelector('.file-upload-container'); | |
| const fileInput = document.getElementById('file-upload'); | |
| fileUploadContainer.addEventListener('dragover', (e) => { | |
| e.preventDefault(); | |
| fileUploadContainer.classList.add('border-indigo-500', 'bg-indigo-50'); | |
| }); | |
| fileUploadContainer.addEventListener('dragleave', () => { | |
| fileUploadContainer.classList.remove('border-indigo-500', 'bg-indigo-50'); | |
| }); | |
| fileUploadContainer.addEventListener('drop', (e) => { | |
| e.preventDefault(); | |
| fileUploadContainer.classList.remove('border-indigo-500', 'bg-indigo-50'); | |
| fileInput.files = e.dataTransfer.files; | |
| // Handle file upload in a real application | |
| }); | |
| fileInput.addEventListener('change', () => { | |
| // Handle file selection in a real application | |
| }); | |
| </script> | |
| <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" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |