Spaces:
Running
Running
Download student_dashboard.html from danielmkinga92/usis: direct link, hf CLI and curl.
- Browser
- Download file 22.5 kB
-
https://huggingface.co/spaces/danielmkinga92/usis/resolve/main/student_dashboard.html
- Command line
-
hf download hf://spaces/danielmkinga92/usis/student_dashboard.html
-
curl -L -o student_dashboard.html https://huggingface.co/spaces/danielmkinga92/usis/resolve/main/student_dashboard.html
22.5 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Student Dashboard | UATC USIS</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> | |
| <style> | |
| .sidebar { | |
| transition: all 0.3s ease; | |
| } | |
| .sidebar.collapsed { | |
| width: 80px; | |
| } | |
| .sidebar.collapsed .nav-text { | |
| display: none; | |
| } | |
| .main-content { | |
| transition: margin-left 0.3s ease; | |
| } | |
| .active-nav { | |
| background-color: #3b82f6; | |
| color: white ; | |
| } | |
| .active-nav i { | |
| color: white ; | |
| } | |
| .course-card:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-100 font-sans"> | |
| <div class="flex h-screen overflow-hidden"> | |
| <!-- Sidebar --> | |
| <div id="sidebar" class="sidebar bg-gray-800 text-white w-64 flex flex-col"> | |
| <div class="p-4 flex items-center justify-between border-b border-gray-700"> | |
| <div class="flex items-center space-x-2"> | |
| <i data-feather="book-open" class="text-blue-400"></i> | |
| <span class="nav-text text-xl font-bold">UATC USIS</span> | |
| </div> | |
| <button id="toggleSidebar" class="text-gray-400 hover:text-white"> | |
| <i data-feather="chevron-left"></i> | |
| </button> | |
| </div> | |
| <div class="p-4 border-b border-gray-700"> | |
| <div class="flex items-center space-x-3"> | |
| <img src="http://static.photos/people/200x200/8" alt="Profile" class="w-10 h-10 rounded-full"> | |
| <div class="nav-text"> | |
| <div class="font-medium">John Doe</div> | |
| <div class="text-xs text-gray-400">Computer Science</div> | |
| </div> | |
| </div> | |
| </div> | |
| <nav class="flex-1 overflow-y-auto"> | |
| <div class="p-2"> | |
| <div class="text-xs uppercase text-gray-500 px-4 py-2 nav-text">Main</div> | |
| <a href="#" class="flex items-center space-x-3 px-4 py-3 text-gray-300 hover:bg-gray-700 rounded-lg active-nav"> | |
| <i data-feather="home"></i> | |
| <span class="nav-text">Dashboard</span> | |
| </a> | |
| <div class="text-xs uppercase text-gray-500 px-4 py-2 nav-text">Academic</div> | |
| <a href="#" class="flex items-center space-x-3 px-4 py-3 text-gray-300 hover:bg-gray-700 rounded-lg"> | |
| <i data-feather="book"></i> | |
| <span class="nav-text">My Courses</span> | |
| </a> | |
| <a href="#" class="flex items-center space-x-3 px-4 py-3 text-gray-300 hover:bg-gray-700 rounded-lg"> | |
| <i data-feather="file-text"></i> | |
| <span class="nav-text">Grades & Transcript</span> | |
| </a> | |
| <a href="#" class="flex items-center space-x-3 px-4 py-3 text-gray-300 hover:bg-gray-700 rounded-lg"> | |
| <i data-feather="calendar"></i> | |
| <span class="nav-text">Class Schedule</span> | |
| </a> | |
| <div class="text-xs uppercase text-gray-500 px-4 py-2 nav-text">Registration</div> | |
| <a href="#" class="flex items-center space-x-3 px-4 py-3 text-gray-300 hover:bg-gray-700 rounded-lg"> | |
| <i data-feather="edit"></i> | |
| <span class="nav-text">Course Registration</span> | |
| </a> | |
| <a href="#" class="flex items-center space-x-3 px-4 py-3 text-gray-300 hover:bg-gray-700 rounded-lg"> | |
| <i data-feather="clipboard"></i> | |
| <span class="nav-text">Registration Status</span> | |
| </a> | |
| <div class="text-xs uppercase text-gray-500 px-4 py-2 nav-text">Finance</div> | |
| <a href="#" class="flex items-center space-x-3 px-4 py-3 text-gray-300 hover:bg-gray-700 rounded-lg"> | |
| <i data-feather="dollar-sign"></i> | |
| <span class="nav-text">Fee Payments</span> | |
| </a> | |
| <a href="#" class="flex items-center space-x-3 px-4 py-3 text-gray-300 hover:bg-gray-700 rounded-lg"> | |
| <i data-feather="credit-card"></i> | |
| <span class="nav-text">Payment History</span> | |
| </a> | |
| </div> | |
| </nav> | |
| <div class="p-4 border-t border-gray-700"> | |
| <a href="#" class="flex items-center space-x-3 text-gray-300 hover:text-white"> | |
| <i data-feather="settings"></i> | |
| <span class="nav-text">Settings</span> | |
| </a> | |
| <a href="#" class="flex items-center space-x-3 mt-3 text-gray-300 hover:text-white"> | |
| <i data-feather="log-out"></i> | |
| <span class="nav-text">Logout</span> | |
| </a> | |
| </div> | |
| </div> | |
| <!-- Main Content --> | |
| <div class="main-content flex-1 flex flex-col overflow-hidden"> | |
| <!-- Top Navigation --> | |
| <header class="bg-white shadow-sm z-10"> | |
| <div class="px-6 py-4 flex items-center justify-between"> | |
| <div class="flex items-center space-x-4"> | |
| <button id="mobileToggle" class="text-gray-500 lg:hidden"> | |
| <i data-feather="menu"></i> | |
| </button> | |
| <h1 class="text-xl font-semibold text-gray-800">Student Dashboard</h1> | |
| </div> | |
| <div class="flex items-center space-x-4"> | |
| <div class="relative"> | |
| <button class="text-gray-500 hover:text-gray-700"> | |
| <i data-feather="bell"></i> | |
| <span class="absolute top-0 right-0 h-2 w-2 rounded-full bg-red-500"></span> | |
| </button> | |
| </div> | |
| <div class="relative"> | |
| <button class="flex items-center space-x-2"> | |
| <img src="http://static.photos/people/200x200/8" alt="Profile" class="w-8 h-8 rounded-full"> | |
| <span class="hidden md:inline-block">John Doe</span> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </header> | |
| <!-- Content Area --> | |
| <main class="flex-1 overflow-y-auto p-6 bg-gray-50"> | |
| <!-- Welcome Banner --> | |
| <div class="bg-gradient-to-r from-blue-600 to-blue-800 rounded-xl shadow-md text-white p-6 mb-6" data-aos="fade-up"> | |
| <div class="flex flex-col md:flex-row md:items-center md:justify-between"> | |
| <div> | |
| <h2 class="text-2xl font-bold mb-2">Welcome back, John!</h2> | |
| <p class="opacity-90">You have 3 new announcements and 2 pending tasks to complete.</p> | |
| </div> | |
| <button class="mt-4 md:mt-0 px-4 py-2 bg-white text-blue-600 rounded-lg font-medium hover:bg-blue-50 transition"> | |
| View Announcements | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Quick Stats --> | |
| <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" data-aos="fade-up"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="text-gray-500">Current Semester</p> | |
| <h3 class="text-2xl font-bold">Fall 2023</h3> | |
| </div> | |
| <div class="p-3 rounded-full bg-blue-100 text-blue-600"> | |
| <i data-feather="calendar"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-lg shadow p-6" data-aos="fade-up" data-aos-delay="100"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="text-gray-500">Registered Courses</p> | |
| <h3 class="text-2xl font-bold">5</h3> | |
| </div> | |
| <div class="p-3 rounded-full bg-green-100 text-green-600"> | |
| <i data-feather="book"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-lg shadow p-6" data-aos="fade-up" data-aos-delay="200"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="text-gray-500">CGPA</p> | |
| <h3 class="text-2xl font-bold">3.75</h3> | |
| </div> | |
| <div class="p-3 rounded-full bg-purple-100 text-purple-600"> | |
| <i data-feather="award"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-lg shadow p-6" data-aos="fade-up" data-aos-delay="300"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="text-gray-500">Balance Due</p> | |
| <h3 class="text-2xl font-bold">$1,250</h3> | |
| </div> | |
| <div class="p-3 rounded-full bg-yellow-100 text-yellow-600"> | |
| <i data-feather="dollar-sign"></i> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Current Courses --> | |
| <div class="bg-white rounded-lg shadow mb-6" data-aos="fade-up"> | |
| <div class="p-6 border-b border-gray-200"> | |
| <h2 class="text-lg font-semibold text-gray-800">Your Current Courses</h2> | |
| </div> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 p-6"> | |
| <div class="course-card bg-white border border-gray-200 rounded-lg shadow-sm p-6 transition duration-300"> | |
| <div class="flex items-center justify-between mb-4"> | |
| <span class="px-2 py-1 text-xs font-semibold bg-blue-100 text-blue-800 rounded">CS-401</span> | |
| <span class="text-sm text-gray-500">Mon/Wed 10:00 AM</span> | |
| </div> | |
| <h3 class="text-lg font-semibold text-gray-800 mb-2">Advanced Algorithms</h3> | |
| <p class="text-sm text-gray-600 mb-4">Dr. Sarah Johnson</p> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <span class="text-sm font-medium text-gray-700">Progress:</span> | |
| <span class="text-sm text-gray-500 ml-1">65%</span> | |
| </div> | |
| <div class="text-sm font-medium text-blue-600">View Details</div> | |
| </div> | |
| <div class="w-full bg-gray-200 rounded-full h-2 mt-2"> | |
| <div class="bg-blue-600 h-2 rounded-full" style="width: 65%"></div> | |
| </div> | |
| </div> | |
| <div class="course-card bg-white border border-gray-200 rounded-lg shadow-sm p-6 transition duration-300"> | |
| <div class="flex items-center justify-between mb-4"> | |
| <span class="px-2 py-1 text-xs font-semibold bg-green-100 text-green-800 rounded">CS-402</span> | |
| <span class="text-sm text-gray-500">Tue/Thu 2:00 PM</span> | |
| </div> | |
| <h3 class="text-lg font-semibold text-gray-800 mb-2">Database Systems</h3> | |
| <p class="text-sm text-gray-600 mb-4">Prof. Michael Brown</p> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <span class="text-sm font-medium text-gray-700">Progress:</span> | |
| <span class="text-sm text-gray-500 ml-1">45%</span> | |
| </div> | |
| <div class="text-sm font-medium text-blue-600">View Details</div> | |
| </div> | |
| <div class="w-full bg-gray-200 rounded-full h-2 mt-2"> | |
| <div class="bg-green-600 h-2 rounded-full" style="width: 45%"></div> | |
| </div> | |
| </div> | |
| <div class="course-card bg-white border border-gray-200 rounded-lg shadow-sm p-6 transition duration-300"> | |
| <div class="flex items-center justify-between mb-4"> | |
| <span class="px-2 py-1 text-xs font-semibold bg-purple-100 text-purple-800 rounded">CS-403</span> | |
| <span class="text-sm text-gray-500">Fri 9:00 AM</span> | |
| </div> | |
| <h3 class="text-lg font-semibold text-gray-800 mb-2">Artificial Intelligence</h3> | |
| <p class="text-sm text-gray-600 mb-4">Dr. Emily Wilson</p> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <span class="text-sm font-medium text-gray-700">Progress:</span> | |
| <span class="text-sm text-gray-500 ml-1">30%</span> | |
| </div> | |
| <div class="text-sm font-medium text-blue-600">View Details</div> | |
| </div> | |
| <div class="w-full bg-gray-200 rounded-full h-2 mt-2"> | |
| <div class="bg-purple-600 h-2 rounded-full" style="width: 30%"></div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="p-4 border-t border-gray-200 flex justify-end"> | |
| <button class="px-4 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700">View All Courses</button> | |
| </div> | |
| </div> | |
| <!-- Upcoming Deadlines --> | |
| <div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-6"> | |
| <div class="bg-white rounded-lg shadow" data-aos="fade-up"> | |
| <div class="p-6 border-b border-gray-200"> | |
| <h2 class="text-lg font-semibold text-gray-800">Upcoming Deadlines</h2> | |
| </div> | |
| <div class="p-6"> | |
| <div class="space-y-4"> | |
| <div class="flex items-start"> | |
| <div class="flex-shrink-0 h-12 w-12 rounded-full bg-red-100 flex items-center justify-center"> | |
| <i data-feather="alert-circle" class="text-red-600"></i> | |
| </div> | |
| <div class="ml-4"> | |
| <h3 class="text-sm font-medium text-gray-900">Assignment 3 - AI</h3> | |
| <p class="text-sm text-gray-500">Artificial Intelligence</p> | |
| <p class="text-xs text-red-500 font-medium mt-1">Due: Tomorrow, 11:59 PM</p> | |
| </div> | |
| </div> | |
| <div class="flex items-start"> | |
| <div class="flex-shrink-0 h-12 w-12 rounded-full bg-yellow-100 flex items-center justify-center"> | |
| <i data-feather="file-text" class="text-yellow-600"></i> | |
| </div> | |
| <div class="ml-4"> | |
| <h3 class="text-sm font-medium text-gray-900">Midterm Exam</h3> | |
| <p class="text-sm text-gray-500">Database Systems</p> | |
| <p class="text-xs text-gray-400 mt-1">Oct 12, 2023 - 9:00 AM</p> | |
| </div> | |
| </div> | |
| <div class="flex items-start"> | |
| <div class="flex-shrink-0 h-12 w-12 rounded-full bg-blue-100 flex items-center justify-center"> | |
| <i data-feather="edit" class="text-blue-600"></i> | |
| </div> | |
| <div class="ml-4"> | |
| <h3 class="text-sm font-medium text-gray-900">Project Proposal</h3> | |
| <p class="text-sm text-gray-500">Advanced Algorithms</p> | |
| <p class="text-xs text-gray-400 mt-1">Oct 15, 2023 - 5:00 PM</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Class Schedule --> | |
| <div class="bg-white rounded-lg shadow" data-aos="fade-up" data-aos-delay="100"> | |
| <div class="p-6 border-b border-gray-200"> | |
| <h2 class="text-lg font-semibold text-gray-800">Today's Schedule</h2> | |
| </div> | |
| <div class="p-6"> | |
| <div class="space-y-4"> | |
| <div class="flex items-start"> | |
| <div class="flex-shrink-0 h-12 w-12 rounded-full bg-green-100 flex items-center justify-center"> | |
| <i data-feather="clock" class="text-green-600"></i> | |
| </div> | |
| <div class="ml-4"> | |
| <h3 class="text-sm font-medium text-gray-900">Advanced Algorithms</h3> | |
| <p class="text-sm text-gray-500">10:00 AM - 11:30 AM</p> | |
| <p class="text-xs text-gray-400 mt-1">Room: CS-202 | Dr. Sarah Johnson</p> | |
| </div> | |
| </div> | |
| <div class="flex items-start"> | |
| <div class="flex-shrink-0 h-12 w-12 rounded-full bg-purple-100 flex items-center justify-center"> | |
| <i data-feather="clock" class="text-purple-600"></i> | |
| </div> | |
| <div class="ml-4"> | |
| <h3 class="text-sm font-medium text-gray-900">Database Systems</h3> | |
| <p class="text-sm text-gray-500">2:00 PM - 3:30 PM</p> | |
| <p class="text-xs text-gray-400 mt-1">Room: CS-305 | Prof. Michael Brown</p> | |
| </div> | |
| </div> | |
| <div class="flex items-start"> | |
| <div class="flex-shrink-0 h-12 w-12 rounded-full bg-gray-100 flex items-center justify-center"> | |
| <i data-feather="clock" class="text-gray-600"></i> | |
| </div> | |
| <div class="ml-4"> | |
| <h3 class="text-sm font-medium text-gray-900">Office Hours</h3> | |
| <p class="text-sm text-gray-500">4:00 PM - 5:00 PM</p> | |
| <p class="text-xs text-gray-400 mt-1">Dr. Emily Wilson | CS Faculty Lounge</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </main> | |
| </div> | |
| </div> | |
| <script> | |
| // Initialize AOS animations | |
| AOS.init({ | |
| duration: 800, | |
| easing: 'ease-in-out', | |
| once: true | |
| }); | |
| // Toggle sidebar | |
| const sidebar = document.getElementById('sidebar'); | |
| const toggleSidebar = document.getElementById('toggleSidebar'); | |
| const mobileToggle = document.getElementById('mobileToggle'); | |
| toggleSidebar.addEventListener('click', () => { | |
| sidebar.classList.toggle('collapsed'); | |
| }); | |
| mobileToggle.addEventListener('click', () => { | |
| sidebar.classList.toggle('hidden'); | |
| }); | |
| // Active navigation | |
| const navLinks = document.querySelectorAll('nav a'); | |
| navLinks.forEach(link => { | |
| link.addEventListener('click', function() { | |
| navLinks.forEach(l => l.classList.remove('active-nav')); | |
| this.classList.add('active-nav'); | |
| }); | |
| }); | |
| // Feather icons | |
| feather.replace(); | |
| </script> | |
| </body> | |
| </html> | |