Spaces:
Running
Running
make and put the student management into quick actions
Browse files- admin-dashboard.html +20 -8
- style.css +15 -2
admin-dashboard.html
CHANGED
|
@@ -215,10 +215,14 @@
|
|
| 215 |
<p class="text-blue-100">Manage food waste and attendance data</p>
|
| 216 |
</div>
|
| 217 |
</div>
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 222 |
</header>
|
| 223 |
<!-- Admin Controls -->
|
| 224 |
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-8">
|
|
@@ -238,10 +242,18 @@
|
|
| 238 |
<i class="fas fa-chart-bar text-2xl mb-2"></i>
|
| 239 |
<span>View Reports</span>
|
| 240 |
</a>
|
| 241 |
-
<
|
| 242 |
-
<i class="fas fa-
|
| 243 |
-
<span>
|
| 244 |
-
</
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 245 |
</div>
|
| 246 |
</div>
|
| 247 |
<!-- System Overview -->
|
|
|
|
| 215 |
<p class="text-blue-100">Manage food waste and attendance data</p>
|
| 216 |
</div>
|
| 217 |
</div>
|
| 218 |
+
<button id="logout-btn" class="bg-red-500 hover:bg-red-600 text-white px-4 py-2 rounded-lg">
|
| 219 |
+
<i class="fas fa-sign-out-alt mr-2"></i> Logout
|
| 220 |
+
</button>
|
| 221 |
+
<!-- Hidden buttons to trigger the actual actions -->
|
| 222 |
+
<button id="add-student-btn" class="hidden"></button>
|
| 223 |
+
<button id="remove-student-btn" class="hidden"></button>
|
| 224 |
+
<button id="import-btn" class="hidden"></button>
|
| 225 |
+
</div>
|
| 226 |
</header>
|
| 227 |
<!-- Admin Controls -->
|
| 228 |
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-8">
|
|
|
|
| 242 |
<i class="fas fa-chart-bar text-2xl mb-2"></i>
|
| 243 |
<span>View Reports</span>
|
| 244 |
</a>
|
| 245 |
+
<button onclick="document.getElementById('add-student-btn').click()" class="bg-indigo-50 hover:bg-indigo-100 text-indigo-700 p-4 rounded-lg flex flex-col items-center justify-center transition-colors cursor-pointer">
|
| 246 |
+
<i class="fas fa-user-plus text-2xl mb-2"></i>
|
| 247 |
+
<span>Add Student</span>
|
| 248 |
+
</button>
|
| 249 |
+
<button onclick="document.getElementById('remove-student-btn').click()" class="bg-red-50 hover:bg-red-100 text-red-700 p-4 rounded-lg flex flex-col items-center justify-center transition-colors cursor-pointer">
|
| 250 |
+
<i class="fas fa-user-minus text-2xl mb-2"></i>
|
| 251 |
+
<span>Remove Student</span>
|
| 252 |
+
</button>
|
| 253 |
+
<button onclick="document.getElementById('import-btn').click()" class="bg-teal-50 hover:bg-teal-100 text-teal-700 p-4 rounded-lg flex flex-col items-center justify-center transition-colors cursor-pointer">
|
| 254 |
+
<i class="fas fa-file-import text-2xl mb-2"></i>
|
| 255 |
+
<span>Import Students</span>
|
| 256 |
+
</button>
|
| 257 |
</div>
|
| 258 |
</div>
|
| 259 |
<!-- System Overview -->
|
style.css
CHANGED
|
@@ -27,14 +27,27 @@ p {
|
|
| 27 |
.card p:last-child {
|
| 28 |
margin-bottom: 0;
|
| 29 |
}
|
| 30 |
-
/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
.menu-option {
|
| 32 |
transition: all 0.3s ease;
|
| 33 |
}
|
| 34 |
|
| 35 |
.menu-option:hover,
|
| 36 |
.student-checkbox:checked + label {
|
| 37 |
-
|
| 38 |
font-weight: 600;
|
| 39 |
}
|
| 40 |
|
|
|
|
| 27 |
.card p:last-child {
|
| 28 |
margin-bottom: 0;
|
| 29 |
}
|
| 30 |
+
/* Quick Actions and Menu Options */
|
| 31 |
+
.grid.grid-cols-2.gap-4 {
|
| 32 |
+
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
.grid.grid-cols-2.gap-4 > * {
|
| 36 |
+
min-height: 100px;
|
| 37 |
+
display: flex;
|
| 38 |
+
flex-direction: column;
|
| 39 |
+
align-items: center;
|
| 40 |
+
justify-content: center;
|
| 41 |
+
text-align: center;
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
.menu-option {
|
| 45 |
transition: all 0.3s ease;
|
| 46 |
}
|
| 47 |
|
| 48 |
.menu-option:hover,
|
| 49 |
.student-checkbox:checked + label {
|
| 50 |
+
color: #f97316;
|
| 51 |
font-weight: 600;
|
| 52 |
}
|
| 53 |
|