buatkan aplikasi absesnsi harian siswa beserta databasenya dengan halaman login, user login admin dan petugas absensi kelas, dengan alur absensi sehari 3 kali absen pagi, absen istirahat 1, absen istirahat 2, dengan rekap absen bulanan yang dapat di unduh dengan output excel - Initial Deployment
f37a629 verified Download admin.html from oysaceper/mm: direct link, hf CLI and curl.
- Browser
- Download file 11 kB
-
https://huggingface.co/spaces/oysaceper/mm/resolve/main/admin.html
- Command line
-
hf download hf://spaces/oysaceper/mm/admin.html
-
curl -L -o admin.html https://huggingface.co/spaces/oysaceper/mm/resolve/main/admin.html
11 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Admin Dashboard</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://unpkg.com/feather-icons"></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.sheetjs.com/xlsx-0.19.3/package/dist/xlsx.full.min.js"></script> | |
| <style> | |
| .sidebar { | |
| transition: all 0.3s ease; | |
| } | |
| .active-nav { | |
| background-color: #6366f1; | |
| color: white; | |
| } | |
| .active-nav:hover { | |
| background-color: #4f46e5; | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-100"> | |
| <div class="flex h-screen overflow-hidden"> | |
| <!-- Sidebar --> | |
| <div class="sidebar w-64 bg-white shadow-lg"> | |
| <div class="p-4 border-b border-gray-200"> | |
| <h1 class="text-xl font-bold text-indigo-600 flex items-center"> | |
| <i data-feather="shield" class="mr-2"></i> Admin Panel | |
| </h1> | |
| </div> | |
| <nav class="p-4"> | |
| <ul class="space-y-2"> | |
| <li> | |
| <a href="#" class="flex items-center p-2 rounded-lg active-nav"> | |
| <i data-feather="home" class="mr-2"></i> Dashboard | |
| </a> | |
| </li> | |
| <li> | |
| <a href="#" class="flex items-center p-2 rounded-lg hover:bg-gray-100"> | |
| <i data-feather="users" class="mr-2"></i> Manage Students | |
| </a> | |
| </li> | |
| <li> | |
| <a href="#" class="flex items-center p-2 rounded-lg hover:bg-gray-100"> | |
| <i data-feather="user-plus" class="mr-2"></i> Manage Officers | |
| </a> | |
| </li> | |
| <li> | |
| <a href="#" class="flex items-center p-2 rounded-lg hover:bg-gray-100"> | |
| <i data-feather="calendar" class="mr-2"></i> Attendance Reports | |
| </a> | |
| </li> | |
| <li> | |
| <a href="#" class="flex items-center p-2 rounded-lg hover:bg-gray-100"> | |
| <i data-feather="settings" class="mr-2"></i> System Settings | |
| </a> | |
| </li> | |
| </ul> | |
| </nav> | |
| </div> | |
| <!-- Main Content --> | |
| <div class="flex-1 overflow-auto"> | |
| <!-- Header --> | |
| <header class="bg-white shadow-sm p-4 flex justify-between items-center"> | |
| <h2 class="text-xl font-semibold text-gray-800">Dashboard</h2> | |
| <div class="flex items-center space-x-4"> | |
| <div class="relative"> | |
| <i data-feather="bell" class="text-gray-600 cursor-pointer"></i> | |
| <span class="absolute top-0 right-0 h-2 w-2 rounded-full bg-red-500"></span> | |
| </div> | |
| <div class="flex items-center"> | |
| <div class="h-8 w-8 rounded-full bg-indigo-100 flex items-center justify-center"> | |
| <i data-feather="user" class="text-indigo-600"></i> | |
| </div> | |
| <span class="ml-2 text-sm font-medium">Admin</span> | |
| </div> | |
| </div> | |
| </header> | |
| <!-- Content --> | |
| <main class="p-6"> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6"> | |
| <div class="bg-white p-6 rounded-lg shadow hover:shadow-lg transition-shadow"> | |
| <div class="flex justify-between items-center"> | |
| <div> | |
| <p class="text-gray-500">Total Students</p> | |
| <h3 class="text-2xl font-bold">1,245</h3> | |
| </div> | |
| <div class="p-3 rounded-full bg-blue-100 text-blue-600"> | |
| <i data-feather="users"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-white p-6 rounded-lg shadow hover:shadow-lg transition-shadow"> | |
| <div class="flex justify-between items-center"> | |
| <div> | |
| <p class="text-gray-500">Present Today</p> | |
| <h3 class="text-2xl font-bold">1,120</h3> | |
| </div> | |
| <div class="p-3 rounded-full bg-green-100 text-green-600"> | |
| <i data-feather="check-circle"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-white p-6 rounded-lg shadow hover:shadow-lg transition-shadow"> | |
| <div class="flex justify-between items-center"> | |
| <div> | |
| <p class="text-gray-500">Absent Today</p> | |
| <h3 class="text-2xl font-bold">125</h3> | |
| </div> | |
| <div class="p-3 rounded-full bg-red-100 text-red-600"> | |
| <i data-feather="x-circle"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-white p-6 rounded-lg shadow hover:shadow-lg transition-shadow"> | |
| <div class="flex justify-between items-center"> | |
| <div> | |
| <p class="text-gray-500">Attendance Officers</p> | |
| <h3 class="text-2xl font-bold">24</h3> | |
| </div> | |
| <div class="p-3 rounded-full bg-purple-100 text-purple-600"> | |
| <i data-feather="user-check"></i> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-white p-6 rounded-lg shadow mb-6"> | |
| <div class="flex justify-between items-center mb-4"> | |
| <h3 class="text-lg font-semibold">Recent Attendance</h3> | |
| <button class="bg-indigo-600 text-white px-4 py-2 rounded-lg hover:bg-indigo-700 flex items-center"> | |
| <i data-feather="download" class="mr-2"></i> Export Excel | |
| </button> | |
| </div> | |
| <div class="overflow-x-auto"> | |
| <table class="min-w-full divide-y divide-gray-200"> | |
| <thead class="bg-gray-50"> | |
| <tr> | |
| <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Date</th> | |
| <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Student</th> | |
| <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Morning</th> | |
| <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Break 1</th> | |
| <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Break 2</th> | |
| </tr> | |
| </thead> | |
| <tbody class="bg-white divide-y divide-gray-200"> | |
| <tr> | |
| <td class="px-6 py-4 whitespace-nowrap">2023-06-15</td> | |
| <td class="px-6 py-4 whitespace-nowrap">John Doe</td> | |
| <td class="px-6 py-4 whitespace-nowrap"><span class="px-2 py-1 bg-green-100 text-green-800 rounded-full text-xs">Present</span></td> | |
| <td class="px-6 py-4 whitespace-nowrap"><span class="px-2 py-1 bg-green-100 text-green-800 rounded-full text-xs">Present</span></td> | |
| <td class="px-6 py-4 whitespace-nowrap"><span class="px-2 py-1 bg-red-100 text-red-800 rounded-full text-xs">Absent</span></td> | |
| </tr> | |
| <tr> | |
| <td class="px-6 py-4 whitespace-nowrap">2023-06-15</td> | |
| <td class="px-6 py-4 whitespace-nowrap">Jane Smith</td> | |
| <td class="px-6 py-4 whitespace-nowrap"><span class="px-2 py-1 bg-green-100 text-green-800 rounded-full text-xs">Present</span></td> | |
| <td class="px-6 py-4 whitespace-nowrap"><span class="px-2 py-1 bg-green-100 text-green-800 rounded-full text-xs">Present</span></td> | |
| <td class="px-6 py-4 whitespace-nowrap"><span class="px-2 py-1 bg-green-100 text-green-800 rounded-full text-xs">Present</span></td> | |
| </tr> | |
| <tr> | |
| <td class="px-6 py-4 whitespace-nowrap">2023-06-15</td> | |
| <td class="px-6 py-4 whitespace-nowrap">Michael Johnson</td> | |
| <td class="px-6 py-4 whitespace-nowrap"><span class="px-2 py-1 bg-yellow-100 text-yellow-800 rounded-full text-xs">Late</span></td> | |
| <td class="px-6 py-4 whitespace-nowrap"><span class="px-2 py-1 bg-green-100 text-green-800 rounded-full text-xs">Present</span></td> | |
| <td class="px-6 py-4 whitespace-nowrap"><span class="px-2 py-1 bg-green-100 text-green-800 rounded-full text-xs">Present</span></td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| </div> | |
| </div> | |
| <div class="bg-white p-6 rounded-lg shadow"> | |
| <h3 class="text-lg font-semibold mb-4">Monthly Attendance Overview</h3> | |
| <div class="h-64"> | |
| <!-- Chart placeholder --> | |
| <div class="bg-gray-100 rounded-lg h-full flex items-center justify-center"> | |
| <p class="text-gray-500">Attendance chart will be displayed here</p> | |
| </div> | |
| </div> | |
| </div> | |
| </main> | |
| </div> | |
| </div> | |
| <script> | |
| AOS.init(); | |
| feather.replace(); | |
| </script> | |
| </body> | |
| </html> | |
| html |