File size: 29,691 Bytes
9618126 3f386dc |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SAML LMS - Learning Management System</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.tailwindcss.com/3.4.0"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script>
tailwind.config = {
darkMode: 'class',
theme: {
extend: {
colors: {
'sa-orange': '#FF6B35',
'sa-teal': '#008080',
'sa-yellow': '#FFD23F',
'sa-purple': '#6A4C93',
'sa-red': '#C1121F',
'sa-green': '#007200',
'sa-blue': '#003049'
},
animation: {
'fade-in': 'fadeIn 0.5s ease-in-out',
'slide-up': 'slideUp 0.3s ease-out',
'pulse-slow': 'pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite',
}
}
}
}
</script>
<style>
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: loading 1.5s infinite; }
@keyframes loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.offline-badge { background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,.1) 10px, rgba(255,255,255,.1) 20px); }
</style>
</head>
<body class="bg-gray-50 dark:bg-gray-900 text-gray-900 dark:text-gray-100 transition-colors duration-200">
<!-- Navigation -->
<nav class="bg-white dark:bg-gray-800 shadow-sm border-b border-gray-200 dark:border-gray-700 sticky top-0 z-50">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex justify-between items-center h-16">
<div class="flex items-center space-x-8">
<div class="flex items-center space-x-3">
<div class="w-8 h-8 bg-gradient-to-br from-sa-orange to-sa-purple rounded-lg flex items-center justify-center">
<i data-feather="cpu" class="w-5 h-5 text-white"></i>
</div>
<span class="font-bold text-xl">SAML LMS</span>
</div>
<div class="hidden md:flex space-x-6">
<a href="index.html" class="nav-link text-sa-teal dark:text-sa-teal font-medium flex items-center gap-2">
<i data-feather="home" class="w-4 h-4"></i> Dashboard
</a>
<a href="activities.html" class="nav-link text-gray-600 dark:text-gray-300 hover:text-sa-teal dark:hover:text-sa-teal transition-colors flex items-center gap-2">
<i data-feather="grid" class="w-4 h-4"></i> Activities
</a>
<a href="tools.html" class="nav-link text-gray-600 dark:text-gray-300 hover:text-sa-teal dark:hover:text-sa-teal transition-colors flex items-center gap-2">
<i data-feather="tool" class="w-4 h-4"></i> Tools
</a>
<a href="progress.html" class="nav-link text-gray-600 dark:text-gray-300 hover:text-sa-teal dark:hover:text-sa-teal transition-colors flex items-center gap-2">
<i data-feather="trending-up" class="w-4 h-4"></i> Progress
</a>
<a href="resources.html" class="nav-link text-gray-600 dark:text-gray-300 hover:text-sa-teal dark:hover:text-sa-teal transition-colors flex items-center gap-2">
<i data-feather="book-open" class="w-4 h-4"></i> Resources
</a>
</div>
</div>
<div class="flex items-center space-x-4">
<div class="relative">
<span class="absolute -top-1 -right-1 w-3 h-3 bg-green-500 rounded-full animate-pulse-slow"></span>
<button class="offline-badge bg-sa-green text-white px-3 py-1 rounded-full text-xs font-medium flex items-center gap-2">
<i data-feather="wifi-off" class="w-3 h-3"></i> Offline
</button>
</div>
<button onclick="toggleTheme()" class="p-2 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors">
<i data-feather="moon" class="w-5 h-5 hidden dark:block"></i>
<i data-feather="sun" class="w-5 h-5 block dark:hidden"></i>
</button>
<button class="p-2 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors relative">
<i data-feather="bell" class="w-5 h-5"></i>
<span class="absolute top-1 right-1 w-2 h-2 bg-red-500 rounded-full"></span>
</button>
<div class="flex items-center space-x-3 pl-4 border-l border-gray-200 dark:border-gray-700">
<img src="http://static.photos/people/40x40/123" alt="Profile" class="w-10 h-10 rounded-full">
<div>
<p class="text-sm font-medium">Ms. Nkosi</p>
<p class="text-xs text-gray-500 dark:text-gray-400">Grade 2</p>
</div>
</div>
</div>
</div>
</div>
</nav>
<!-- Main Content -->
<main class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
<!-- Welcome Section -->
<div class="mb-8 animate-fade-in">
<h1 class="text-3xl font-bold mb-2">Welcome back, Ms. Nkosi! 👋</h1>
<p class="text-gray-600 dark:text-gray-400">Ready to inspire young minds with computational thinking?</p>
</div>
<!-- Quick Actions -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 mb-8">
<button onclick="showNewLessonModal()" class="bg-white dark:bg-gray-800 p-6 rounded-xl shadow-sm hover:shadow-md transition-all duration-200 border border-gray-200 dark:border-gray-700 hover:border-sa-orange dark:hover:border-sa-orange group">
<div class="flex items-center justify-between mb-3">
<div class="w-12 h-12 bg-sa-orange/10 dark:bg-sa-orange/20 rounded-lg flex items-center justify-center group-hover:bg-sa-orange/20 dark:group-hover:bg-sa-orange/30 transition-colors">
<i data-feather="plus-circle" class="w-6 h-6 text-sa-orange"></i>
</div>
<i data-feather="arrow-right" class="w-4 h-4 text-gray-400 group-hover:text-sa-orange transition-colors"></i>
</div>
<h3 class="font-semibold text-left mb-1">New Lesson</h3>
<p class="text-sm text-gray-500 dark:text-gray-400 text-left">Create fresh activity plan</p>
</button>
<button onclick="showProgressModal()" class="bg-white dark:bg-gray-800 p-6 rounded-xl shadow-sm hover:shadow-md transition-all duration-200 border border-gray-200 dark:border-gray-700 hover:border-sa-teal dark:hover:border-sa-teal group">
<div class="flex items-center justify-between mb-3">
<div class="w-12 h-12 bg-sa-teal/10 dark:bg-sa-teal/20 rounded-lg flex items-center justify-center group-hover:bg-sa-teal/20 dark:group-hover:bg-sa-teal/30 transition-colors">
<i data-feather="check-square" class="w-6 h-6 text-sa-teal"></i>
</div>
<i data-feather="arrow-right" class="w-4 h-4 text-gray-400 group-hover:text-sa-teal transition-colors"></i>
</div>
<h3 class="font-semibold text-left mb-1">Record Progress</h3>
<p class="text-sm text-gray-500 dark:text-gray-400 text-left">Track student mastery</p>
</button>
<button class="bg-white dark:bg-gray-800 p-6 rounded-xl shadow-sm hover:shadow-md transition-all duration-200 border border-gray-200 dark:border-gray-700 hover:border-sa-yellow dark:hover:border-sa-yellow group">
<div class="flex items-center justify-between mb-3">
<div class="w-12 h-12 bg-sa-yellow/10 dark:bg-sa-yellow/20 rounded-lg flex items-center justify-center group-hover:bg-sa-yellow/20 dark:group-hover:bg-sa-yellow/30 transition-colors">
<i data-feather="download" class="w-6 h-6 text-sa-yellow"></i>
</div>
<i data-feather="arrow-right" class="w-4 h-4 text-gray-400 group-hover:text-sa-yellow transition-colors"></i>
</div>
<h3 class="font-semibold text-left mb-1">Materials</h3>
<p class="text-sm text-gray-500 dark:text-gray-400 text-left">Download activity packs</p>
</button>
<button class="bg-white dark:bg-gray-800 p-6 rounded-xl shadow-sm hover:shadow-md transition-all duration-200 border border-gray-200 dark:border-gray-700 hover:border-sa-purple dark:hover:border-sa-purple group">
<div class="flex items-center justify-between mb-3">
<div class="w-12 h-12 bg-sa-purple/10 dark:bg-sa-purple/20 rounded-lg flex items-center justify-center group-hover:bg-sa-purple/20 dark:group-hover:bg-sa-purple/30 transition-colors">
<i data-feather="refresh-cw" class="w-6 h-6 text-sa-purple"></i>
</div>
<i data-feather="arrow-right" class="w-4 h-4 text-gray-400 group-hover:text-sa-purple transition-colors"></i>
</div>
<h3 class="font-semibold text-left mb-1">Sync Queue</h3>
<p class="text-sm text-gray-500 dark:text-gray-400 text-left">3 items pending</p>
</button>
</div>
<!-- Stats Overview -->
<div class="grid grid-cols-1 md:grid-cols-4 gap-4 mb-8">
<div class="bg-gradient-to-br from-sa-orange to-sa-orange/80 p-6 rounded-xl text-white">
<div class="flex items-center justify-between mb-2">
<i data-feather="users" class="w-8 h-8 opacity-80"></i>
<span class="text-2xl font-bold">28</span>
</div>
<p class="text-sm opacity-90">Active Students</p>
</div>
<div class="bg-gradient-to-br from-sa-teal to-sa-teal/80 p-6 rounded-xl text-white">
<div class="flex items-center justify-between mb-2">
<i data-feather="activity" class="w-8 h-8 opacity-80"></i>
<span class="text-2xl font-bold">15</span>
</div>
<p class="text-sm opacity-90">Activities This Week</p>
</div>
<div class="bg-gradient-to-br from-sa-purple to-sa-purple/80 p-6 rounded-xl text-white">
<div class="flex items-center justify-between mb-2">
<i data-feather="award" class="w-8 h-8 opacity-80"></i>
<span class="text-2xl font-bold">92%</span>
</div>
<p class="text-sm opacity-90">Completion Rate</p>
</div>
<div class="bg-gradient-to-br from-sa-yellow to-sa-yellow/80 p-6 rounded-xl text-white">
<div class="flex items-center justify-between mb-2">
<i data-feather="clock" class="w-8 h-8 opacity-80"></i>
<span class="text-2xl font-bold">4.5h</span>
</div>
<p class="text-sm opacity-90">Learning Time</p>
</div>
</div>
<!-- Recent Activities -->
<div class="bg-white dark:bg-gray-800 rounded-xl shadow-sm p-6 mb-8">
<div class="flex items-center justify-between mb-6">
<h2 class="text-xl font-bold">Recent Activities</h2>
<a href="#" class="text-sa-teal hover:text-sa-teal/80 font-medium text-sm flex items-center gap-1">
View All <i data-feather="chevron-right" class="w-4 h-4"></i>
</a>
</div>
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
<div class="border border-gray-200 dark:border-gray-700 rounded-lg p-4 hover:shadow-md transition-all duration-200 cursor-pointer group">
<div class="flex items-start justify-between mb-3">
<img src="http://static.photos/education/80x80/42" alt="Activity" class="w-16 h-16 rounded-lg object-cover">
<span class="bg-sa-green/10 text-sa-green px-2 py-1 rounded text-xs font-medium">Offline</span>
</div>
<h3 class="font-semibold mb-1 group-hover:text-sa-teal transition-colors">Pattern Dance Party</h3>
<p class="text-sm text-gray-600 dark:text-gray-400 mb-3">Grade 2 • 45 min • Patterns</p>
<div class="flex items-center justify-between">
<div class="flex -space-x-2">
<img src="http://static.photos/people/32x32/101" class="w-8 h-8 rounded-full border-2 border-white dark:border-gray-800">
<img src="http://static.photos/people/32x32/102" class="w-8 h-8 rounded-full border-2 border-white dark:border-gray-800">
<img src="http://static.photos/people/32x32/103" class="w-8 h-8 rounded-full border-2 border-white dark:border-gray-800">
<div class="w-8 h-8 rounded-full bg-gray-200 dark:bg-gray-700 border-2 border-white dark:border-gray-800 flex items-center justify-center text-xs font-medium">+5</div>
</div>
<div class="flex items-center gap-1">
<i data-feather="star" class="w-4 h-4 text-yellow-500 fill-current"></i>
<span class="text-sm font-medium">4.8</span>
</div>
</div>
</div>
<div class="border border-gray-200 dark:border-gray-700 rounded-lg p-4 hover:shadow-md transition-all duration-200 cursor-pointer group">
<div class="flex items-start justify-between mb-3">
<img src="http://static.photos/education/80x80/43" alt="Activity" class="w-16 h-16 rounded-lg object-cover">
<span class="bg-sa-green/10 text-sa-green px-2 py-1 rounded text-xs font-medium">Offline</span>
</div>
<h3 class="font-semibold mb-1 group-hover:text-sa-teal transition-colors">Robot Instructions</h3>
<p class="text-sm text-gray-600 dark:text-gray-400 mb-3">Grade 2 • 30 min • Algorithms</p>
<div class="flex items-center justify-between">
<div class="flex -space-x-2">
<img src="http://static.photos/people/32x32/104" class="w-8 h-8 rounded-full border-2 border-white dark:border-gray-800">
<img src="http://static.photos/people/32x32/105" class="w-8 h-8 rounded-full border-2 border-white dark:border-gray-800">
<div class="w-8 h-8 rounded-full bg-gray-200 dark:bg-gray-700 border-2 border-white dark:border-gray-800 flex items-center justify-center text-xs font-medium">+3</div>
</div>
<div class="flex items-center gap-1">
<i data-feather="star" class="w-4 h-4 text-yellow-500 fill-current"></i>
<span class="text-sm font-medium">4.6</span>
</div>
</div>
</div>
<div class="border border-gray-200 dark:border-gray-700 rounded-lg p-4 hover:shadow-md transition-all duration-200 cursor-pointer group">
<div class="flex items-start justify-between mb-3">
<img src="http://static.photos/education/80x80/44" alt="Activity" class="w-16 h-16 rounded-lg object-cover">
<span class="bg-sa-orange/10 text-sa-orange px-2 py-1 rounded text-xs font-medium">New</span>
</div>
<h3 class="font-semibold mb-1 group-hover:text-sa-teal transition-colors">Bug Detective</h3>
<p class="text-sm text-gray-600 dark:text-gray-400 mb-3">Grade 2 • 40 min • Debugging</p>
<div class="flex items-center justify-between">
<span class="text-sm text-gray-500 dark:text-gray-400">Not started</span>
<button class="text-sa-teal hover:text-sa-teal/80 font-medium text-sm">Start →</button>
</div>
</div>
</div>
</div>
<!-- Progress Charts -->
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
<div class="bg-white dark:bg-gray-800 rounded-xl shadow-sm p-6">
<h3 class="font-bold text-lg mb-4">Concept Mastery</h3>
<canvas id="masteryChart"></canvas>
</div>
<div class="bg-white dark:bg-gray-800 rounded-xl shadow-sm p-6">
<h3 class="font-bold text-lg mb-4">Weekly Progress</h3>
<canvas id="progressChart"></canvas>
</div>
</div>
</main>
<!-- Modals -->
<div id="modalOverlay" class="fixed inset-0 bg-black/50 hidden z-50 flex items-center justify-center p-4">
<div id="modalContent" class="bg-white dark:bg-gray-800 rounded-xl max-w-md w-full p-6 animate-slide-up">
<!-- Dynamic content -->
</div>
</div>
<script>
</script>
</body>
</html>
|