dasss / index.html
Design-28's picture
Add 3 files
c7ecdd4 verified
Raw History Blame Contribute Delete
54.3 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AI Attendance Dashboard</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Inter:wght@400;500&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
body {
font-family: 'Inter', sans-serif;
background-color: #f8fafc;
}
h1, h2, h3, h4 {
font-family: 'Poppins', sans-serif;
}
.group-card:hover {
transform: translateY(-2px);
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.status-badge {
font-size: 0.75rem;
padding: 0.25rem 0.5rem;
border-radius: 9999px;
}
.present {
background-color: #ecfdf5;
color: #059669;
}
.absent {
background-color: #fee2e2;
color: #b91c1c;
}
.late {
background-color: #fef3c7;
color: #92400e;
}
.unmarked {
background-color: #f3f4f6;
color: #4b5563;
}
.avatar {
display: inline-flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
border-radius: 50%;
background-color: #6366f1;
color: white;
font-weight: 500;
font-size: 0.875rem;
}
.attendance-row:hover {
background-color: #f9fafb;
}
.dropdown-content {
display: none;
position: absolute;
right: 0;
background-color: white;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
z-index: 1;
border-radius: 0.5rem;
}
.dropdown:hover .dropdown-content {
display: block;
}
.slide-down {
animation: slideDown 0.3s ease-out forwards;
}
@keyframes slideDown {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.checkmark {
display: inline-block;
transform: rotate(45deg);
height: 16px;
width: 8px;
border-bottom: 2px solid #10b981;
border-right: 2px solid #10b981;
animation: checkmark 0.5s ease;
}
@keyframes checkmark {
0% {
height: 0;
width: 0;
opacity: 0;
}
50% {
height: 0;
width: 8px;
opacity: 1;
}
100% {
height: 16px;
width: 8px;
opacity: 1;
}
}
</style>
</head>
<body class="min-h-screen">
<!-- Top Navigation Bar -->
<header class="bg-white shadow-sm sticky top-0 z-10">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex justify-between items-center py-4">
<h1 class="text-xl font-semibold text-indigo-800 flex items-center">
<i class="fas fa-robot text-indigo-500 mr-2"></i>
AI Attendance
</h1>
<div class="flex items-center space-x-4">
<div class="relative">
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
<i class="fas fa-search text-gray-400"></i>
</div>
<input type="text" class="block w-full pl-10 pr-3 py-2 border border-gray-300 rounded-lg bg-gray-50 focus:ring-indigo-500 focus:border-indigo-500" placeholder="Search groups or members...">
</div>
<div class="relative dropdown">
<button class="flex items-center space-x-1 px-3 py-2 border border-gray-300 rounded-lg hover:bg-gray-50">
<i class="fas fa-filter text-gray-600"></i>
<span class="text-sm font-medium">Filter</span>
<i class="fas fa-chevron-down text-xs text-gray-500"></i>
</button>
<div class="dropdown-content mt-1 p-2">
<div class="px-3 py-1">
<label class="block text-sm font-medium text-gray-700 mb-1">Group Type</label>
<select 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 Types</option>
<option>Teaching</option>
<option>Support Staff</option>
<option>Admin Team</option>
<option>Operations</option>
</select>
</div>
<div class="px-3 py-1">
<label class="block text-sm font-medium text-gray-700 mb-1">Designation</label>
<select 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 Designations</option>
<option>Teacher</option>
<option>Assistant</option>
<option>Manager</option>
<option>Staff</option>
</select>
</div>
<div class="px-3 py-1">
<label class="block text-sm font-medium text-gray-700 mb-1">Shift Type</label>
<select 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 Shifts</option>
<option>Morning</option>
<option>Afternoon</option>
<option>Evening</option>
<option>Night</option>
</select>
</div>
<div class="px-3 py-2 border-t border-gray-100 flex justify-between">
<button class="text-xs text-gray-500 hover:text-gray-700">Reset</button>
<button class="text-xs bg-indigo-600 text-white px-2 py-1 rounded hover:bg-indigo-700">Apply</button>
</div>
</div>
</div>
<div class="relative dropdown">
<button class="flex items-center space-x-1 px-3 py-2 border border-gray-300 rounded-lg hover:bg-gray-50">
<i class="fas fa-sort text-gray-600"></i>
<span class="text-sm font-medium">Sort</span>
<i class="fas fa-chevron-down text-xs text-gray-500"></i>
</button>
<div class="dropdown-content mt-1 p-2 w-40">
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded">Recently Created</a>
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded">A-Z</a>
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded">Attendance %</a>
</div>
</div>
<button class="flex items-center space-x-1 px-4 py-2 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700 transition-colors">
<i class="fas fa-plus"></i>
<span class="text-sm font-medium">New Group</span>
</button>
</div>
</div>
</div>
</header>
<!-- Main Content -->
<main class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6">
<!-- View Toggle -->
<div class="flex justify-between items-center mb-6">
<h2 class="text-lg font-semibold text-gray-800">Your Attendance Groups</h2>
<div class="flex bg-gray-100 rounded-lg p-1">
<button id="gridViewBtn" class="px-3 py-1 rounded-md bg-white shadow-sm text-indigo-600">
<i class="fas fa-th-large mr-1"></i> Grid
</button>
<button id="listViewBtn" class="px-3 py-1 rounded-md text-gray-600 hover:text-gray-800">
<i class="fas fa-list mr-1"></i> List
</button>
</div>
</div>
<!-- Groups Grid View -->
<div id="groupsGrid" class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
<!-- Group Card 1 -->
<div class="group-card bg-white rounded-xl shadow-sm border border-gray-200 overflow-hidden transition-all duration-200 hover:border-indigo-200">
<div class="p-5">
<div class="flex justify-between items-start">
<div>
<h3 class="font-semibold text-gray-800 text-lg">Teaching Staff</h3>
<div class="flex mt-1 space-x-1">
<span class="px-2 py-1 text-xs rounded-full bg-indigo-100 text-indigo-800">Teaching</span>
<span class="px-2 py-1 text-xs rounded-full bg-teal-100 text-teal-800">Morning Shift</span>
</div>
</div>
<div class="dropdown relative">
<button class="text-gray-400 hover:text-gray-600">
<i class="fas fa-ellipsis-v"></i>
</button>
<div class="dropdown-content absolute right-0 mt-1 w-40">
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"><i class="fas fa-eye mr-2"></i> View</a>
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"><i class="fas fa-edit mr-2"></i> Edit</a>
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"><i class="fas fa-trash mr-2 text-red-500"></i> Delete</a>
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"><i class="fas fa-file-export mr-2"></i> Export</a>
</div>
</div>
</div>
<div class="mt-4 grid grid-cols-2 gap-4">
<div>
<p class="text-xs text-gray-500">Total Members</p>
<p class="font-medium">24</p>
</div>
<div>
<p class="text-xs text-gray-500">Shift Info</p>
<p class="font-medium">2 Shifts | Mon–Sat</p>
</div>
</div>
<div class="mt-4">
<p class="text-xs text-gray-500">Today's Summary</p>
<div class="flex items-center mt-1">
<div class="w-full bg-gray-200 rounded-full h-2.5">
<div class="bg-indigo-600 h-2.5 rounded-full" style="width: 75%"></div>
</div>
<span class="ml-2 text-sm font-medium">18/24 Present</span>
</div>
</div>
<div class="mt-4 flex justify-between text-xs text-gray-500">
<span>Created: 15 Jun 2023</span>
<span>Last modified: 2 days ago</span>
</div>
</div>
<div class="group-details hidden slide-down bg-gray-50 border-t border-gray-200 p-5">
<!-- Group Details Content -->
<div class="flex justify-between items-center mb-4">
<div>
<h3 class="font-semibold text-gray-800 text-lg">Teaching Staff</h3>
<div class="flex mt-1 space-x-1">
<span class="px-2 py-1 text-xs rounded-full bg-indigo-100 text-indigo-800">Teaching</span>
<span class="px-2 py-1 text-xs rounded-full bg-teal-100 text-teal-800">Morning Shift</span>
</div>
</div>
<button class="text-indigo-600 hover:text-indigo-800 text-sm font-medium flex items-center">
<i class="fas fa-download mr-1"></i> Export Data
</button>
</div>
<div class="grid grid-cols-2 md:grid-cols-4 gap-4 mb-6">
<div class="bg-white p-3 rounded-lg shadow-xs">
<p class="text-xs text-gray-500">Shift 1</p>
<p class="font-medium">8:00 AM - 12:00 PM</p>
</div>
<div class="bg-white p-3 rounded-lg shadow-xs">
<p class="text-xs text-gray-500">Shift 2</p>
<p class="font-medium">1:00 PM - 5:00 PM</p>
</div>
<div class="bg-white p-3 rounded-lg shadow-xs">
<p class="text-xs text-gray-500">Workdays</p>
<p class="font-medium">Mon - Sat</p>
</div>
<div class="bg-white p-3 rounded-lg shadow-xs">
<p class="text-xs text-gray-500">Breaks</p>
<p class="font-medium">30 min lunch</p>
</div>
</div>
<div class="flex justify-between items-center mb-4">
<h4 class="font-medium text-gray-700">Attendance Tracker</h4>
<div class="flex space-x-2">
<button class="px-3 py-1 bg-indigo-50 text-indigo-600 text-xs rounded hover:bg-indigo-100">
Bulk Mark
</button>
<button class="px-3 py-1 bg-gray-100 text-gray-600 text-xs rounded hover:bg-gray-200">
<i class="fas fa-copy mr-1"></i> Duplicate
</button>
</div>
</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">Member</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Designation</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Shift</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">Action</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Attendance %</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr class="attendance-row">
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="avatar mr-3">JD</div>
<div>
<div class="text-sm font-medium text-gray-900">John Doe</div>
<div class="text-xs text-gray-500">john@example.com</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">Math Teacher</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 text-xs rounded-full bg-indigo-100 text-indigo-800">Shift 1</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="status-badge present">Present</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<button class="text-indigo-600 hover:text-indigo-900 text-sm font-medium mark-attendance">
<span class="checkmark-container">
<span class="checkmark"></span>
</span>
</button>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="w-16 bg-gray-200 rounded-full h-1.5">
<div class="bg-green-600 h-1.5 rounded-full" style="width: 95%"></div>
</div>
<span class="ml-2 text-xs font-medium">95%</span>
</div>
</td>
</tr>
<tr class="attendance-row">
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="avatar mr-3">AS</div>
<div>
<div class="text-sm font-medium text-gray-900">Alice Smith</div>
<div class="text-xs text-gray-500">alice@example.com</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">Science Teacher</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 text-xs rounded-full bg-indigo-100 text-indigo-800">Shift 1</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="status-badge absent">Absent</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<button class="text-indigo-600 hover:text-indigo-900 text-sm font-medium mark-attendance">
Mark
</button>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="w-16 bg-gray-200 rounded-full h-1.5">
<div class="bg-green-600 h-1.5 rounded-full" style="width: 85%"></div>
</div>
<span class="ml-2 text-xs font-medium">85%</span>
</div>
</td>
</tr>
<tr class="attendance-row">
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="avatar mr-3">RJ</div>
<div>
<div class="text-sm font-medium text-gray-900">Robert Johnson</div>
<div class="text-xs text-gray-500">robert@example.com</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">English Teacher</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 text-xs rounded-full bg-indigo-100 text-indigo-800">Shift 2</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="status-badge late">Late</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<button class="text-indigo-600 hover:text-indigo-900 text-sm font-medium mark-attendance">
Mark
</button>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="w-16 bg-gray-200 rounded-full h-1.5">
<div class="bg-green-600 h-1.5 rounded-full" style="width: 90%"></div>
</div>
<span class="ml-2 text-xs font-medium">90%</span>
</div>
</td>
</tr>
<tr class="attendance-row">
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="avatar mr-3">MB</div>
<div>
<div class="text-sm font-medium text-gray-900">Maria Brown</div>
<div class="text-xs text-gray-500">maria@example.com</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">History Teacher</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 text-xs rounded-full bg-indigo-100 text-indigo-800">Shift 2</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="status-badge unmarked">Unmarked</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<button class="text-indigo-600 hover:text-indigo-900 text-sm font-medium mark-attendance">
Mark
</button>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="w-16 bg-gray-200 rounded-full h-1.5">
<div class="bg-green-600 h-1.5 rounded-full" style="width: 88%"></div>
</div>
<span class="ml-2 text-xs font-medium">88%</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="mt-6 bg-white rounded-lg shadow-xs p-4">
<div class="flex justify-between items-center">
<h4 class="font-medium text-gray-700">Today's Marked Attendance</h4>
<div class="text-xs text-gray-500">Last updated: 2:15 PM</div>
</div>
<div class="mt-3 grid grid-cols-2 md:grid-cols-4 gap-3">
<div class="flex items-center">
<div class="w-3 h-3 rounded-full bg-green-500 mr-2"></div>
<span class="text-sm">Present: 18</span>
</div>
<div class="flex items-center">
<div class="w-3 h-3 rounded-full bg-red-500 mr-2"></div>
<span class="text-sm">Absent: 4</span>
</div>
<div class="flex items-center">
<div class="w-3 h-3 rounded-full bg-yellow-500 mr-2"></div>
<span class="text-sm">Late: 2</span>
</div>
<div class="flex items-center">
<div class="w-3 h-3 rounded-full bg-gray-400 mr-2"></div>
<span class="text-sm">Unmarked: 3</span>
</div>
</div>
</div>
<div class="mt-6 bg-white rounded-lg shadow-xs p-4">
<div class="flex justify-between items-center mb-3">
<h4 class="font-medium text-gray-700">Weekly Attendance Trend</h4>
<div class="text-xs text-gray-500">This Week</div>
</div>
<div class="h-40">
<!-- Chart placeholder - in a real app this would be a chart library -->
<div class="flex items-end h-full space-x-1">
<div class="flex-1 bg-indigo-100 rounded-t" style="height: 30%"></div>
<div class="flex-1 bg-indigo-200 rounded-t" style="height: 50%"></div>
<div class="flex-1 bg-indigo-300 rounded-t" style="height: 70%"></div>
<div class="flex-1 bg-indigo-400 rounded-t" style="height: 90%"></div>
<div class="flex-1 bg-indigo-500 rounded-t" style="height: 80%"></div>
<div class="flex-1 bg-indigo-600 rounded-t" style="height: 95%"></div>
<div class="flex-1 bg-indigo-700 rounded-t" style="height: 75%"></div>
</div>
<div class="flex justify-between text-xs text-gray-500 mt-1">
<span>Mon</span>
<span>Tue</span>
<span>Wed</span>
<span>Thu</span>
<span>Fri</span>
<span>Sat</span>
<span>Sun</span>
</div>
</div>
</div>
</div>
<div class="bg-gray-50 px-5 py-3 border-t border-gray-200 flex justify-between items-center">
<button class="view-details-btn text-indigo-600 hover:text-indigo-800 text-sm font-medium flex items-center">
<i class="fas fa-chevron-down mr-1"></i> View Details
</button>
<div class="text-xs text-gray-500">
<i class="fas fa-info-circle mr-1"></i> 2 staff haven't been marked yet today
</div>
</div>
</div>
<!-- Group Card 2 -->
<div class="group-card bg-white rounded-xl shadow-sm border border-gray-200 overflow-hidden transition-all duration-200 hover:border-indigo-200">
<div class="p-5">
<div class="flex justify-between items-start">
<div>
<h3 class="font-semibold text-gray-800 text-lg">Admin Team</h3>
<div class="flex mt-1 space-x-1">
<span class="px-2 py-1 text-xs rounded-full bg-purple-100 text-purple-800">Admin</span>
<span class="px-2 py-1 text-xs rounded-full bg-teal-100 text-teal-800">Full Day</span>
</div>
</div>
<div class="dropdown relative">
<button class="text-gray-400 hover:text-gray-600">
<i class="fas fa-ellipsis-v"></i>
</button>
<div class="dropdown-content absolute right-0 mt-1 w-40">
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"><i class="fas fa-eye mr-2"></i> View</a>
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"><i class="fas fa-edit mr-2"></i> Edit</a>
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"><i class="fas fa-trash mr-2 text-red-500"></i> Delete</a>
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"><i class="fas fa-file-export mr-2"></i> Export</a>
</div>
</div>
</div>
<div class="mt-4 grid grid-cols-2 gap-4">
<div>
<p class="text-xs text-gray-500">Total Members</p>
<p class="font-medium">12</p>
</div>
<div>
<p class="text-xs text-gray-500">Shift Info</p>
<p class="font-medium">1 Shift | Mon–Fri</p>
</div>
</div>
<div class="mt-4">
<p class="text-xs text-gray-500">Today's Summary</p>
<div class="flex items-center mt-1">
<div class="w-full bg-gray-200 rounded-full h-2.5">
<div class="bg-indigo-600 h-2.5 rounded-full" style="width: 83%"></div>
</div>
<span class="ml-2 text-sm font-medium">10/12 Present</span>
</div>
</div>
<div class="mt-4 flex justify-between text-xs text-gray-500">
<span>Created: 10 May 2023</span>
<span>Last modified: 1 week ago</span>
</div>
</div>
<div class="bg-gray-50 px-5 py-3 border-t border-gray-200 flex justify-between items-center">
<button class="view-details-btn text-indigo-600 hover:text-indigo-800 text-sm font-medium flex items-center">
<i class="fas fa-chevron-down mr-1"></i> View Details
</button>
<div class="text-xs text-gray-500">
<i class="fas fa-info-circle mr-1"></i> All staff marked today
</div>
</div>
</div>
<!-- Group Card 3 -->
<div class="group-card bg-white rounded-xl shadow-sm border border-gray-200 overflow-hidden transition-all duration-200 hover:border-indigo-200">
<div class="p-5">
<div class="flex justify-between items-start">
<div>
<h3 class="font-semibold text-gray-800 text-lg">Support Staff</h3>
<div class="flex mt-1 space-x-1">
<span class="px-2 py-1 text-xs rounded-full bg-blue-100 text-blue-800">Support</span>
<span class="px-2 py-1 text-xs rounded-full bg-amber-100 text-amber-800">Rotating</span>
</div>
</div>
<div class="dropdown relative">
<button class="text-gray-400 hover:text-gray-600">
<i class="fas fa-ellipsis-v"></i>
</button>
<div class="dropdown-content absolute right-0 mt-1 w-40">
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"><i class="fas fa-eye mr-2"></i> View</a>
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"><i class="fas fa-edit mr-2"></i> Edit</a>
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"><i class="fas fa-trash mr-2 text-red-500"></i> Delete</a>
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"><i class="fas fa-file-export mr-2"></i> Export</a>
</div>
</div>
</div>
<div class="mt-4 grid grid-cols-2 gap-4">
<div>
<p class="text-xs text-gray-500">Total Members</p>
<p class="font-medium">8</p>
</div>
<div>
<p class="text-xs text-gray-500">Shift Info</p>
<p class="font-medium">3 Shifts | 24/7</p>
</div>
</div>
<div class="mt-4">
<p class="text-xs text-gray-500">Today's Summary</p>
<div class="flex items-center mt-1">
<div class="w-full bg-gray-200 rounded-full h-2.5">
<div class="bg-indigo-600 h-2.5 rounded-full" style="width: 62%"></div>
</div>
<span class="ml-2 text-sm font-medium">5/8 Present</span>
</div>
</div>
<div class="mt-4 flex justify-between text-xs text-gray-500">
<span>Created: 22 Apr 2023</span>
<span>Last modified: 3 days ago</span>
</div>
</div>
<div class="bg-gray-50 px-5 py-3 border-t border-gray-200 flex justify-between items-center">
<button class="view-details-btn text-indigo-600 hover:text-indigo-800 text-sm font-medium flex items-center">
<i class="fas fa-chevron-down mr-1"></i> View Details
</button>
<div class="text-xs text-gray-500">
<i class="fas fa-info-circle mr-1"></i> 3 staff haven't been marked yet today
</div>
</div>
</div>
</div>
<!-- Groups List View (Hidden by default) -->
<div id="groupsList" class="hidden bg-white shadow-sm rounded-lg overflow-hidden">
<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">Group Name</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Tags</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Members</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Shift Info</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Today's Summary</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Last Modified</th>
<th scope="col" class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr class="hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap">
<div class="font-medium text-gray-900">Teaching Staff</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 text-xs rounded-full bg-indigo-100 text-indigo-800">Teaching</span>
<span class="px-2 py-1 text-xs rounded-full bg-teal-100 text-teal-800">Morning Shift</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">24</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">2 Shifts | Mon–Sat</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="w-16 bg-gray-200 rounded-full h-1.5">
<div class="bg-indigo-600 h-1.5 rounded-full" style="width: 75%"></div>
</div>
<span class="ml-2 text-xs font-medium">18/24 Present</span>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-500">2 days ago</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
<div class="dropdown relative inline-block">
<button class="text-gray-400 hover:text-gray-600">
<i class="fas fa-ellipsis-v"></i>
</button>
<div class="dropdown-content absolute right-0 mt-1 w-40">
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"><i class="fas fa-eye mr-2"></i> View</a>
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"><i class="fas fa-edit mr-2"></i> Edit</a>
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"><i class="fas fa-trash mr-2 text-red-500"></i> Delete</a>
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"><i class="fas fa-file-export mr-2"></i> Export</a>
</div>
</div>
</td>
</tr>
<tr class="hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap">
<div class="font-medium text-gray-900">Admin Team</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 text-xs rounded-full bg-purple-100 text-purple-800">Admin</span>
<span class="px-2 py-1 text-xs rounded-full bg-teal-100 text-teal-800">Full Day</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">12</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">1 Shift | Mon–Fri</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="w-16 bg-gray-200 rounded-full h-1.5">
<div class="bg-indigo-600 h-1.5 rounded-full" style="width: 83%"></div>
</div>
<span class="ml-2 text-xs font-medium">10/12 Present</span>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-500">1 week ago</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
<div class="dropdown relative inline-block">
<button class="text-gray-400 hover:text-gray-600">
<i class="fas fa-ellipsis-v"></i>
</button>
<div class="dropdown-content absolute right-0 mt-1 w-40">
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"><i class="fas fa-eye mr-2"></i> View</a>
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"><i class="fas fa-edit mr-2"></i> Edit</a>
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"><i class="fas fa-trash mr-2 text-red-500"></i> Delete</a>
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"><i class="fas fa-file-export mr-2"></i> Export</a>
</div>
</div>
</td>
</tr>
<tr class="hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap">
<div class="font-medium text-gray-900">Support Staff</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 text-xs rounded-full bg-blue-100 text-blue-800">Support</span>
<span class="px-2 py-1 text-xs rounded-full bg-amber-100 text-amber-800">Rotating</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">8</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">3 Shifts | 24/7</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="w-16 bg-gray-200 rounded-full h-1.5">
<div class="bg-indigo-600 h-1.5 rounded-full" style="width: 62%"></div>
</div>
<span class="ml-2 text-xs font-medium">5/8 Present</span>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-500">3 days ago</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
<div class="dropdown relative inline-block">
<button class="text-gray-400 hover:text-gray-600">
<i class="fas fa-ellipsis-v"></i>
</button>
<div class="dropdown-content absolute right-0 mt-1 w-40">
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"><i class="fas fa-eye mr-2"></i> View</a>
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"><i class="fas fa-edit mr-2"></i> Edit</a>
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"><i class="fas fa-trash mr-2 text-red-500"></i> Delete</a>
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"><i class="fas fa-file-export mr-2"></i> Export</a>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- Voice Recognition Toggle -->
<div class="fixed bottom-6 right-6">
<button id="voiceToggle" class="p-4 bg-indigo-600 text-white rounded-full shadow-lg hover:bg-indigo-700 transition-colors">
<i class="fas fa-microphone text-xl"></i>
</button>
<div id="voiceStatus" class="hidden absolute bottom-full right-0 mb-2 bg-white p-3 rounded-lg shadow-lg w-64">
<div class="flex items-center mb-2">
<div class="w-3 h-3 rounded-full bg-red-500 mr-2 animate-pulse"></div>
<span class="font-medium">Listening for commands...</span>
</div>
<p class="text-xs text-gray-600">Say "Mark [name] as present" or "Mark all in [group] as absent"</p>
</div>
</div>
</main>
<script>
// Toggle between grid and list view
document.getElementById('gridViewBtn').addEventListener('click', function() {
document.getElementById('groupsGrid').classList.remove('hidden');
document.getElementById('groupsList').classList.add('hidden');
this.classList.add('bg-white', 'shadow-sm', 'text-indigo-600');
this.classList.remove('text-gray-600');
document.getElementById('listViewBtn').classList.remove('bg-white', 'shadow-sm', 'text-indigo-600');
document.getElementById('listViewBtn').classList.add('text-gray-600');
});
document.getElementById('listViewBtn').addEventListener('click', function() {
document.getElementById('groupsGrid').classList.add('hidden');
document.getElementById('groupsList').classList.remove('hidden');
this.classList.add('bg-white', 'shadow-sm', 'text-indigo-600');
this.classList.remove('text-gray-600');
document.getElementById('gridViewBtn').classList.remove('bg-white', 'shadow-sm', 'text-indigo-600');
document.getElementById('gridViewBtn').classList.add('text-gray-600');
});
// Toggle group details
document.querySelectorAll('.view-details-btn').forEach(button => {
button.addEventListener('click', function() {
const groupCard = this.closest('.group-card');
const details = groupCard.querySelector('.group-details');
if (details.classList.contains('hidden')) {
details.classList.remove('hidden');
details.classList.add('slide-down');
this.innerHTML = '<i class="fas fa-chevron-up mr-1"></i> Hide Details';
} else {
details.classList.add('hidden');
details.classList.remove('slide-down');
this.innerHTML = '<i class="fas fa-chevron-down mr-1"></i> View Details';
}
});
});
// Mark attendance button animation
document.querySelectorAll('.mark-attendance').forEach(button => {
button.addEventListener('click', function() {
if (!this.querySelector('.checkmark')) {
this.innerHTML = '<span class="checkmark"></span>';
// In a real app, this would update the status in the database
setTimeout(() => {
const row = this.closest('tr');
const statusCell = row.querySelector('.status-badge');
statusCell.classList.remove('absent', 'late', 'unmarked');
statusCell.classList.add('present');
statusCell.textContent = 'Present';
// Update the attendance percentage (mock)
const percentageCell = row.querySelector('td:nth-child(6) .bg-green-600');
const currentWidth = parseInt(percentageCell.style.width);
percentageCell.style.width = `${Math.min(currentWidth + 5, 100)}%`;
percentageCell.nextElementSibling.textContent = `${Math.min(currentWidth + 5, 100)}%`;
}, 500);
}
});
});
// Voice recognition toggle
document.getElementById('voiceToggle').addEventListener('click', function() {
const voiceStatus = document.getElementById('voiceStatus');
if (voiceStatus.classList.contains('hidden')) {
voiceStatus.classList.remove('hidden');
// In a real app, this would initialize the voice recognition API
console.log("Voice recognition activated");
} else {
voiceStatus.classList.add('hidden');
// In a real app, this would stop the voice recognition
console.log("Voice recognition deactivated");
}
});
// Dropdown menus
document.querySelectorAll('.dropdown').forEach(dropdown => {
dropdown.addEventListener('mouseleave', function() {
const content = this.querySelector('.dropdown-content');
content.style.display = 'none';
});
});
</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=Design-28/dasss" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>