Spaces:
Running
Running
Add 1 files
Browse files- index.html +401 -135
index.html
CHANGED
|
@@ -3,39 +3,66 @@
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
|
|
|
| 6 |
<title>EduLearn - Online Learning Platform</title>
|
|
|
|
|
|
|
|
|
|
| 7 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
|
|
|
| 9 |
<style>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
.course-card:hover .course-overlay {
|
| 11 |
opacity: 1;
|
| 12 |
transform: translateY(0);
|
| 13 |
}
|
|
|
|
| 14 |
.course-overlay {
|
| 15 |
transition: all 0.3s ease;
|
| 16 |
opacity: 0;
|
| 17 |
transform: translateY(10px);
|
| 18 |
}
|
|
|
|
| 19 |
.sidebar {
|
| 20 |
transition: all 0.3s ease;
|
|
|
|
| 21 |
}
|
|
|
|
| 22 |
.sidebar-collapsed {
|
| 23 |
-
width:
|
| 24 |
}
|
|
|
|
| 25 |
.sidebar-collapsed .sidebar-text {
|
| 26 |
display: none;
|
| 27 |
}
|
|
|
|
| 28 |
.sidebar-collapsed .logo-text {
|
| 29 |
display: none;
|
| 30 |
}
|
|
|
|
| 31 |
.progress-ring__circle {
|
| 32 |
transition: stroke-dashoffset 0.35s;
|
| 33 |
transform: rotate(-90deg);
|
| 34 |
transform-origin: 50% 50%;
|
| 35 |
}
|
|
|
|
| 36 |
.dropdown:hover .dropdown-menu {
|
| 37 |
display: block;
|
| 38 |
}
|
|
|
|
| 39 |
@keyframes pulse {
|
| 40 |
0%, 100% {
|
| 41 |
opacity: 1;
|
|
@@ -44,48 +71,171 @@
|
|
| 44 |
opacity: 0.5;
|
| 45 |
}
|
| 46 |
}
|
|
|
|
| 47 |
.animate-pulse {
|
| 48 |
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
| 49 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
</style>
|
| 51 |
</head>
|
| 52 |
-
<body class="bg-gray-100
|
| 53 |
<!-- Header -->
|
| 54 |
-
<header class="bg-white shadow-sm fixed w-full z-
|
| 55 |
<div class="flex items-center justify-between px-4 py-3">
|
| 56 |
-
<div class="flex items-center">
|
| 57 |
-
<button id="sidebar-toggle" class="
|
| 58 |
<i class="fas fa-bars text-xl"></i>
|
| 59 |
</button>
|
| 60 |
-
<
|
|
|
|
|
|
|
|
|
|
| 61 |
<i class="fas fa-graduation-cap text-blue-600 text-2xl mr-2"></i>
|
| 62 |
<span class="text-xl font-bold text-blue-600 logo-text">EduLearn</span>
|
| 63 |
</div>
|
| 64 |
</div>
|
| 65 |
|
| 66 |
-
<div class="flex-1 max-w-xl mx-4">
|
| 67 |
-
<div class="relative">
|
| 68 |
<input type="text" placeholder="Search courses..." class="w-full pl-10 pr-4 py-2 rounded-full border border-gray-300 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent">
|
| 69 |
<i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
|
| 70 |
</div>
|
| 71 |
</div>
|
| 72 |
|
| 73 |
-
<div class="flex items-center space-x-4">
|
| 74 |
-
<button class="text-gray-600 hover:text-blue-600
|
|
|
|
|
|
|
|
|
|
| 75 |
<i class="fas fa-bell text-xl"></i>
|
| 76 |
<span class="absolute top-0 right-0 h-2 w-2 rounded-full bg-red-500"></span>
|
| 77 |
</button>
|
| 78 |
-
<button class="text-gray-600 hover:text-blue-600">
|
| 79 |
<i class="fas fa-envelope text-xl"></i>
|
| 80 |
</button>
|
|
|
|
|
|
|
|
|
|
| 81 |
|
| 82 |
<div class="dropdown relative">
|
| 83 |
<button class="flex items-center space-x-2 focus:outline-none">
|
| 84 |
<div class="w-8 h-8 rounded-full bg-blue-500 flex items-center justify-center text-white font-semibold">JS</div>
|
| 85 |
<span class="hidden md:inline">John Smith</span>
|
| 86 |
-
<i class="fas fa-chevron-down text-xs"></i>
|
| 87 |
</button>
|
| 88 |
-
<div class="dropdown-menu absolute right-0 mt-2 w-48 bg-white rounded-md shadow-lg py-1 z-20 hidden">
|
| 89 |
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Profile</a>
|
| 90 |
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Dashboard</a>
|
| 91 |
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Settings</a>
|
|
@@ -95,10 +245,21 @@
|
|
| 95 |
</div>
|
| 96 |
</div>
|
| 97 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 98 |
</header>
|
| 99 |
|
|
|
|
|
|
|
|
|
|
| 100 |
<!-- Sidebar -->
|
| 101 |
-
<aside id="sidebar" class="sidebar bg-blue-800 text-white h-screen fixed pt-16
|
| 102 |
<nav class="mt-6">
|
| 103 |
<div class="px-4 py-3 hover:bg-blue-700 cursor-pointer flex items-center text-blue-100">
|
| 104 |
<i class="fas fa-home text-lg w-6"></i>
|
|
@@ -143,74 +304,74 @@
|
|
| 143 |
</aside>
|
| 144 |
|
| 145 |
<!-- Main Content -->
|
| 146 |
-
<main class="ml-64 pt-16 px-
|
| 147 |
<!-- Dashboard Overview -->
|
| 148 |
-
<div class="grid grid-cols-1
|
| 149 |
-
<div class="bg-white rounded-lg shadow p-6">
|
| 150 |
<div class="flex items-center justify-between">
|
| 151 |
<div>
|
| 152 |
-
<p class="text-gray-500">Active Courses</p>
|
| 153 |
-
<h3 class="text-2xl font-bold">5</h3>
|
| 154 |
</div>
|
| 155 |
-
<div class="w-12 h-12 rounded-full bg-blue-100 flex items-center justify-center">
|
| 156 |
-
<i class="fas fa-book text-blue-600 text-xl"></i>
|
| 157 |
</div>
|
| 158 |
</div>
|
| 159 |
-
<div class="mt-4 text-sm text-blue-600 font-medium">
|
| 160 |
<a href="#" class="hover:underline">View all courses</a>
|
| 161 |
</div>
|
| 162 |
</div>
|
| 163 |
|
| 164 |
-
<div class="bg-white rounded-lg shadow p-6">
|
| 165 |
<div class="flex items-center justify-between">
|
| 166 |
<div>
|
| 167 |
-
<p class="text-gray-500">Assignments Due</p>
|
| 168 |
-
<h3 class="text-2xl font-bold">3</h3>
|
| 169 |
</div>
|
| 170 |
-
<div class="w-12 h-12 rounded-full bg-orange-100 flex items-center justify-center">
|
| 171 |
-
<i class="fas fa-tasks text-orange-600 text-xl"></i>
|
| 172 |
</div>
|
| 173 |
</div>
|
| 174 |
-
<div class="mt-4 text-sm text-orange-600 font-medium">
|
| 175 |
<a href="#" class="hover:underline">View assignments</a>
|
| 176 |
</div>
|
| 177 |
</div>
|
| 178 |
|
| 179 |
-
<div class="bg-white rounded-lg shadow p-6">
|
| 180 |
<div class="flex items-center justify-between">
|
| 181 |
<div>
|
| 182 |
-
<p class="text-gray-500">Messages</p>
|
| 183 |
-
<h3 class="text-2xl font-bold">7</h3>
|
| 184 |
</div>
|
| 185 |
-
<div class="w-12 h-12 rounded-full bg-green-100 flex items-center justify-center">
|
| 186 |
-
<i class="fas fa-envelope text-green-600 text-xl"></i>
|
| 187 |
</div>
|
| 188 |
</div>
|
| 189 |
-
<div class="mt-4 text-sm text-green-600 font-medium">
|
| 190 |
<a href="#" class="hover:underline">View messages</a>
|
| 191 |
</div>
|
| 192 |
</div>
|
| 193 |
|
| 194 |
-
<div class="bg-white rounded-lg shadow p-6">
|
| 195 |
<div class="flex items-center justify-between">
|
| 196 |
<div>
|
| 197 |
-
<p class="text-gray-500">Overall Progress</p>
|
| 198 |
<div class="flex items-center">
|
| 199 |
-
<div class="relative w-10 h-10 mr-3">
|
| 200 |
<svg class="w-full h-full" viewBox="0 0 36 36">
|
| 201 |
<circle cx="18" cy="18" r="16" fill="none" class="stroke-gray-200" stroke-width="3"></circle>
|
| 202 |
<circle cx="18" cy="18" r="16" fill="none" class="stroke-blue-600 progress-ring__circle" stroke-width="3" stroke-dasharray="100" stroke-dashoffset="35"></circle>
|
| 203 |
</svg>
|
| 204 |
<div class="absolute inset-0 flex items-center justify-center text-xs font-bold">65%</div>
|
| 205 |
</div>
|
| 206 |
-
<h3 class="text-2xl font-bold">Good</h3>
|
| 207 |
</div>
|
| 208 |
</div>
|
| 209 |
-
<div class="w-12 h-12 rounded-full bg-purple-100 flex items-center justify-center">
|
| 210 |
-
<i class="fas fa-chart-line text-purple-600 text-xl"></i>
|
| 211 |
</div>
|
| 212 |
</div>
|
| 213 |
-
<div class="mt-4 text-sm text-purple-600 font-medium">
|
| 214 |
<a href="#" class="hover:underline">View progress</a>
|
| 215 |
</div>
|
| 216 |
</div>
|
|
@@ -218,36 +379,36 @@
|
|
| 218 |
|
| 219 |
<!-- Current Courses -->
|
| 220 |
<div class="bg-white rounded-lg shadow mb-6">
|
| 221 |
-
<div class="px-6 py-4 border-b border-gray-200">
|
| 222 |
-
<h2 class="text-xl font-semibold text-gray-800">My Current Courses</h2>
|
| 223 |
</div>
|
| 224 |
-
<div class="p-6">
|
| 225 |
-
<div class="grid grid-cols-1
|
| 226 |
<!-- Course Card 1 -->
|
| 227 |
<div class="course-card bg-white rounded-lg border border-gray-200 overflow-hidden hover:shadow-lg transition-shadow duration-300 relative">
|
| 228 |
-
<div class="h-40 bg-gradient-to-r from-blue-500 to-blue-400 flex items-center justify-center">
|
| 229 |
-
<i class="fas fa-laptop-code text-white text-5xl"></i>
|
| 230 |
</div>
|
| 231 |
-
<div class="p-4">
|
| 232 |
<div class="flex justify-between items-start">
|
| 233 |
<div>
|
| 234 |
-
<h3 class="font-bold text-lg mb-1">Web Development</h3>
|
| 235 |
-
<p class="text-gray-600 text-sm">Prof. Sarah Johnson</p>
|
| 236 |
</div>
|
| 237 |
<span class="bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded-full">Active</span>
|
| 238 |
</div>
|
| 239 |
-
<div class="mt-4 flex items-center justify-between">
|
| 240 |
<div class="w-full bg-gray-200 rounded-full h-2">
|
| 241 |
<div class="bg-blue-600 h-2 rounded-full" style="width: 75%"></div>
|
| 242 |
</div>
|
| 243 |
-
<span class="ml-2 text-sm text-gray-600">75%</span>
|
| 244 |
</div>
|
| 245 |
</div>
|
| 246 |
<div class="course-overlay absolute inset-0 bg-black bg-opacity-70 flex items-center justify-center space-x-2">
|
| 247 |
-
<button class="bg-white text-blue-600 px-4 py-2 rounded-lg font-medium hover:bg-blue-50">
|
| 248 |
<i class="fas fa-play mr-1"></i> Continue
|
| 249 |
</button>
|
| 250 |
-
<button class="bg-blue-600 text-white px-4 py-2 rounded-lg font-medium hover:bg-blue-700">
|
| 251 |
<i class="fas fa-info-circle mr-1"></i> Details
|
| 252 |
</button>
|
| 253 |
</div>
|
|
@@ -255,29 +416,29 @@
|
|
| 255 |
|
| 256 |
<!-- Course Card 2 -->
|
| 257 |
<div class="course-card bg-white rounded-lg border border-gray-200 overflow-hidden hover:shadow-lg transition-shadow duration-300 relative">
|
| 258 |
-
<div class="h-40 bg-gradient-to-r from-purple-500 to-purple-400 flex items-center justify-center">
|
| 259 |
-
<i class="fas fa-database text-white text-5xl"></i>
|
| 260 |
</div>
|
| 261 |
-
<div class="p-4">
|
| 262 |
<div class="flex justify-between items-start">
|
| 263 |
<div>
|
| 264 |
-
<h3 class="font-bold text-lg mb-1">Database Design</h3>
|
| 265 |
-
<p class="text-gray-600 text-sm">Prof. Michael Chen</p>
|
| 266 |
</div>
|
| 267 |
<span class="bg-purple-100 text-purple-800 text-xs px-2 py-1 rounded-full">Active</span>
|
| 268 |
</div>
|
| 269 |
-
<div class="mt-4 flex items-center justify-between">
|
| 270 |
<div class="w-full bg-gray-200 rounded-full h-2">
|
| 271 |
<div class="bg-purple-600 h-2 rounded-full" style="width: 45%"></div>
|
| 272 |
</div>
|
| 273 |
-
<span class="ml-2 text-sm text-gray-600">45%</span>
|
| 274 |
</div>
|
| 275 |
</div>
|
| 276 |
<div class="course-overlay absolute inset-0 bg-black bg-opacity-70 flex items-center justify-center space-x-2">
|
| 277 |
-
<button class="bg-white text-purple-600 px-4 py-2 rounded-lg font-medium hover:bg-purple-50">
|
| 278 |
<i class="fas fa-play mr-1"></i> Continue
|
| 279 |
</button>
|
| 280 |
-
<button class="bg-purple-600 text-white px-4 py-2 rounded-lg font-medium hover:bg-purple-700">
|
| 281 |
<i class="fas fa-info-circle mr-1"></i> Details
|
| 282 |
</button>
|
| 283 |
</div>
|
|
@@ -285,29 +446,29 @@
|
|
| 285 |
|
| 286 |
<!-- Course Card 3 -->
|
| 287 |
<div class="course-card bg-white rounded-lg border border-gray-200 overflow-hidden hover:shadow-lg transition-shadow duration-300 relative">
|
| 288 |
-
<div class="h-40 bg-gradient-to-r from-green-500 to-green-400 flex items-center justify-center">
|
| 289 |
-
<i class="fas fa-mobile-alt text-white text-5xl"></i>
|
| 290 |
</div>
|
| 291 |
-
<div class="p-4">
|
| 292 |
<div class="flex justify-between items-start">
|
| 293 |
<div>
|
| 294 |
-
<h3 class="font-bold text-lg mb-1">Mobile App Development</h3>
|
| 295 |
-
<p class="text-gray-600 text-sm">Prof. Emily Rodriguez</p>
|
| 296 |
</div>
|
| 297 |
<span class="bg-green-100 text-green-800 text-xs px-2 py-1 rounded-full">Active</span>
|
| 298 |
</div>
|
| 299 |
-
<div class="mt-4 flex items-center justify-between">
|
| 300 |
<div class="w-full bg-gray-200 rounded-full h-2">
|
| 301 |
<div class="bg-green-600 h-2 rounded-full" style="width: 60%"></div>
|
| 302 |
</div>
|
| 303 |
-
<span class="ml-2 text-sm text-gray-600">60%</span>
|
| 304 |
</div>
|
| 305 |
</div>
|
| 306 |
<div class="course-overlay absolute inset-0 bg-black bg-opacity-70 flex items-center justify-center space-x-2">
|
| 307 |
-
<button class="bg-white text-green-600 px-4 py-2 rounded-lg font-medium hover:bg-green-50">
|
| 308 |
<i class="fas fa-play mr-1"></i> Continue
|
| 309 |
</button>
|
| 310 |
-
<button class="bg-green-600 text-white px-4 py-2 rounded-lg font-medium hover:bg-green-700">
|
| 311 |
<i class="fas fa-info-circle mr-1"></i> Details
|
| 312 |
</button>
|
| 313 |
</div>
|
|
@@ -315,7 +476,7 @@
|
|
| 315 |
</div>
|
| 316 |
|
| 317 |
<div class="mt-6 text-center">
|
| 318 |
-
<button class="bg-white border border-blue-500 text-blue-500 px-6 py-2 rounded-lg font-medium hover:bg-blue-50 hover:text-blue-600">
|
| 319 |
View All Courses
|
| 320 |
</button>
|
| 321 |
</div>
|
|
@@ -323,25 +484,25 @@
|
|
| 323 |
</div>
|
| 324 |
|
| 325 |
<!-- Upcoming Deadlines & Recent Activity -->
|
| 326 |
-
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
|
| 327 |
<!-- Upcoming Deadlines -->
|
| 328 |
<div class="bg-white rounded-lg shadow">
|
| 329 |
-
<div class="px-6 py-4 border-b border-gray-200">
|
| 330 |
-
<h2 class="text-xl font-semibold text-gray-800">Upcoming Deadlines</h2>
|
| 331 |
</div>
|
| 332 |
-
<div class="p-6">
|
| 333 |
-
<div class="space-y-4">
|
| 334 |
<!-- Deadline 1 -->
|
| 335 |
<div class="flex items-start">
|
| 336 |
<div class="flex-shrink-0 mt-1">
|
| 337 |
-
<div class="w-10 h-10 rounded-full bg-red-100 flex items-center justify-center">
|
| 338 |
-
<i class="fas fa-exclamation text-red-600"></i>
|
| 339 |
</div>
|
| 340 |
</div>
|
| 341 |
-
<div class="ml-4">
|
| 342 |
-
<h3 class="font-medium text-gray-900">Web Development Project</h3>
|
| 343 |
-
<p class="text-
|
| 344 |
-
<div class="mt-1 flex items-center text-
|
| 345 |
<i class="fas fa-book mr-1"></i>
|
| 346 |
<span>Web Development Course</span>
|
| 347 |
</div>
|
|
@@ -351,14 +512,14 @@
|
|
| 351 |
<!-- Deadline 2 -->
|
| 352 |
<div class="flex items-start">
|
| 353 |
<div class="flex-shrink-0 mt-1">
|
| 354 |
-
<div class="w-10 h-10 rounded-full bg-yellow-100 flex items-center justify-center">
|
| 355 |
-
<i class="fas fa-tasks text-yellow-600"></i>
|
| 356 |
</div>
|
| 357 |
</div>
|
| 358 |
-
<div class="ml-4">
|
| 359 |
-
<h3 class="font-medium text-gray-900">Database Design Quiz</h3>
|
| 360 |
-
<p class="text-
|
| 361 |
-
<div class="mt-1 flex items-center text-
|
| 362 |
<i class="fas fa-book mr-1"></i>
|
| 363 |
<span>Database Design Course</span>
|
| 364 |
</div>
|
|
@@ -368,14 +529,14 @@
|
|
| 368 |
<!-- Deadline 3 -->
|
| 369 |
<div class="flex items-start">
|
| 370 |
<div class="flex-shrink-0 mt-1">
|
| 371 |
-
<div class="w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center">
|
| 372 |
-
<i class="fas fa-file-alt text-blue-600"></i>
|
| 373 |
</div>
|
| 374 |
</div>
|
| 375 |
-
<div class="ml-4">
|
| 376 |
-
<h3 class="font-medium text-gray-900">Mobile App Wireframes</h3>
|
| 377 |
-
<p class="text-
|
| 378 |
-
<div class="mt-1 flex items-center text-
|
| 379 |
<i class="fas fa-book mr-1"></i>
|
| 380 |
<span>Mobile App Development</span>
|
| 381 |
</div>
|
|
@@ -383,8 +544,8 @@
|
|
| 383 |
</div>
|
| 384 |
</div>
|
| 385 |
|
| 386 |
-
<div class="mt-6">
|
| 387 |
-
<button class="w-full bg-gray-100 hover:bg-gray-200 text-gray-800 font-medium py-2 px-4 rounded-lg">
|
| 388 |
View All Deadlines
|
| 389 |
</button>
|
| 390 |
</div>
|
|
@@ -393,76 +554,168 @@
|
|
| 393 |
|
| 394 |
<!-- Recent Activity -->
|
| 395 |
<div class="bg-white rounded-lg shadow">
|
| 396 |
-
<div class="px-6 py-4 border-b border-gray-200">
|
| 397 |
-
<h2 class="text-xl font-semibold text-gray-800">Recent Activity</h2>
|
| 398 |
</div>
|
| 399 |
-
<div class="p-6">
|
| 400 |
-
<div class="space-y-4">
|
| 401 |
<!-- Activity 1 -->
|
| 402 |
<div class="flex">
|
| 403 |
<div class="flex-shrink-0">
|
| 404 |
-
<div class="w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center">
|
| 405 |
-
<i class="fas fa-comment text-blue-600"></i>
|
| 406 |
</div>
|
| 407 |
</div>
|
| 408 |
-
<div class="ml-4">
|
| 409 |
-
<p class="text-sm text-
|
| 410 |
<span class="font-medium">Prof. Sarah Johnson</span> posted a new announcement in <span class="font-medium text-blue-600">Web Development</span>
|
| 411 |
</p>
|
| 412 |
-
<p class="text-xs text-
|
| 413 |
</div>
|
| 414 |
</div>
|
| 415 |
|
| 416 |
<!-- Activity 2 -->
|
| 417 |
<div class="flex">
|
| 418 |
<div class="flex-shrink-0">
|
| 419 |
-
<div class="w-10 h-10 rounded-full bg-green-100 flex items-center justify-center">
|
| 420 |
-
<i class="fas fa-check-circle text-green-600"></i>
|
| 421 |
</div>
|
| 422 |
</div>
|
| 423 |
-
<div class="ml-4">
|
| 424 |
-
<p class="text-sm text-
|
| 425 |
You submitted <span class="font-medium">Assignment #3</span> for <span class="font-medium text-green-600">Database Design</span>
|
| 426 |
</p>
|
| 427 |
-
<p class="text-xs text-
|
| 428 |
</div>
|
| 429 |
</div>
|
| 430 |
|
| 431 |
<!-- Activity 3 -->
|
| 432 |
<div class="flex">
|
| 433 |
<div class="flex-shrink-0">
|
| 434 |
-
<div class="w-10 h-10 rounded-full bg-purple-100 flex items-center justify-center">
|
| 435 |
-
<i class="fas fa-graduation-cap text-purple-600"></i>
|
| 436 |
</div>
|
| 437 |
</div>
|
| 438 |
-
<div class="ml-4">
|
| 439 |
-
<p class="text-sm text-
|
| 440 |
You earned a badge <span class="font-medium">"Quick Learner"</span> in <span class="font-medium text-purple-600">Mobile App Development</span>
|
| 441 |
</p>
|
| 442 |
-
<p class="text-xs text-
|
| 443 |
</div>
|
| 444 |
</div>
|
| 445 |
</div>
|
| 446 |
|
| 447 |
-
<div class="mt-6">
|
| 448 |
-
<button class="w-full bg-gray-100 hover:bg-gray-200 text-gray-800 font-medium py-2 px-4 rounded-lg">
|
| 449 |
View All Activity
|
| 450 |
</button>
|
| 451 |
</div>
|
| 452 |
</div>
|
| 453 |
</div>
|
| 454 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 455 |
</main>
|
| 456 |
|
| 457 |
<script>
|
| 458 |
-
// Toggle sidebar
|
| 459 |
document.getElementById('sidebar-toggle').addEventListener('click', function() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 460 |
const sidebar = document.getElementById('sidebar');
|
| 461 |
const mainContent = document.getElementById('main-content');
|
| 462 |
|
|
|
|
| 463 |
sidebar.classList.toggle('sidebar-collapsed');
|
| 464 |
-
mainContent.classList.toggle('ml-64');
|
| 465 |
-
mainContent.classList.toggle('ml-20');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 466 |
});
|
| 467 |
|
| 468 |
// Simulate loading courses (for demo purposes)
|
|
@@ -480,24 +733,37 @@
|
|
| 480 |
}
|
| 481 |
});
|
| 482 |
});
|
| 483 |
-
});
|
| 484 |
-
|
| 485 |
-
// Dropdown functionality
|
| 486 |
-
document.querySelectorAll('.dropdown').forEach(dropdown => {
|
| 487 |
-
const button = dropdown.querySelector('button');
|
| 488 |
-
const menu = dropdown.querySelector('.dropdown-menu');
|
| 489 |
|
| 490 |
-
|
| 491 |
-
|
| 492 |
-
|
|
|
|
|
|
|
| 493 |
|
| 494 |
-
//
|
| 495 |
-
|
| 496 |
-
if (!
|
| 497 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 498 |
}
|
| 499 |
});
|
| 500 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 501 |
</script>
|
| 502 |
<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=ZakheTH/elearning-platform" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 503 |
</html>
|
|
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<meta name="description" content="EduLearn - Modern eLearning Platform for Online Education">
|
| 7 |
+
<meta name="keywords" content="elearning, online courses, education, moodle alternative">
|
| 8 |
<title>EduLearn - Online Learning Platform</title>
|
| 9 |
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
| 10 |
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
| 11 |
+
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
|
| 12 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 13 |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 14 |
+
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🎓</text></svg>">
|
| 15 |
<style>
|
| 16 |
+
:root {
|
| 17 |
+
--primary-color: #3b82f6;
|
| 18 |
+
--primary-hover: #2563eb;
|
| 19 |
+
--sidebar-width: 16rem;
|
| 20 |
+
--sidebar-collapsed: 4.5rem;
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
body {
|
| 24 |
+
font-family: 'Inter', sans-serif;
|
| 25 |
+
background-color: #f8fafc;
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
.course-card:hover .course-overlay {
|
| 29 |
opacity: 1;
|
| 30 |
transform: translateY(0);
|
| 31 |
}
|
| 32 |
+
|
| 33 |
.course-overlay {
|
| 34 |
transition: all 0.3s ease;
|
| 35 |
opacity: 0;
|
| 36 |
transform: translateY(10px);
|
| 37 |
}
|
| 38 |
+
|
| 39 |
.sidebar {
|
| 40 |
transition: all 0.3s ease;
|
| 41 |
+
width: var(--sidebar-width);
|
| 42 |
}
|
| 43 |
+
|
| 44 |
.sidebar-collapsed {
|
| 45 |
+
width: var(--sidebar-collapsed);
|
| 46 |
}
|
| 47 |
+
|
| 48 |
.sidebar-collapsed .sidebar-text {
|
| 49 |
display: none;
|
| 50 |
}
|
| 51 |
+
|
| 52 |
.sidebar-collapsed .logo-text {
|
| 53 |
display: none;
|
| 54 |
}
|
| 55 |
+
|
| 56 |
.progress-ring__circle {
|
| 57 |
transition: stroke-dashoffset 0.35s;
|
| 58 |
transform: rotate(-90deg);
|
| 59 |
transform-origin: 50% 50%;
|
| 60 |
}
|
| 61 |
+
|
| 62 |
.dropdown:hover .dropdown-menu {
|
| 63 |
display: block;
|
| 64 |
}
|
| 65 |
+
|
| 66 |
@keyframes pulse {
|
| 67 |
0%, 100% {
|
| 68 |
opacity: 1;
|
|
|
|
| 71 |
opacity: 0.5;
|
| 72 |
}
|
| 73 |
}
|
| 74 |
+
|
| 75 |
.animate-pulse {
|
| 76 |
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
| 77 |
}
|
| 78 |
+
|
| 79 |
+
/* Mobile menu */
|
| 80 |
+
.mobile-menu {
|
| 81 |
+
transform: translateX(-100%);
|
| 82 |
+
transition: transform 0.3s ease;
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
.mobile-menu-open {
|
| 86 |
+
transform: translateX(0);
|
| 87 |
+
}
|
| 88 |
+
|
| 89 |
+
/* Dark mode toggle */
|
| 90 |
+
.dark-mode-toggle {
|
| 91 |
+
transition: all 0.3s ease;
|
| 92 |
+
}
|
| 93 |
+
|
| 94 |
+
.dark-mode-toggle:hover {
|
| 95 |
+
transform: scale(1.1);
|
| 96 |
+
}
|
| 97 |
+
|
| 98 |
+
/* Dark mode styles */
|
| 99 |
+
.dark {
|
| 100 |
+
background-color: #0f172a;
|
| 101 |
+
color: #f8fafc;
|
| 102 |
+
}
|
| 103 |
+
|
| 104 |
+
.dark .bg-white {
|
| 105 |
+
background-color: #1e293b !important;
|
| 106 |
+
color: #f8fafc !important;
|
| 107 |
+
}
|
| 108 |
+
|
| 109 |
+
.dark .text-gray-800 {
|
| 110 |
+
color: #f8fafc !important;
|
| 111 |
+
}
|
| 112 |
+
|
| 113 |
+
.dark .text-gray-600 {
|
| 114 |
+
color: #cbd5e1 !important;
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
+
.dark .border-gray-200 {
|
| 118 |
+
border-color: #334155 !important;
|
| 119 |
+
}
|
| 120 |
+
|
| 121 |
+
.dark .bg-gray-100 {
|
| 122 |
+
background-color: #334155 !important;
|
| 123 |
+
color: #f8fafc !important;
|
| 124 |
+
}
|
| 125 |
+
|
| 126 |
+
.dark .hover\:bg-gray-200:hover {
|
| 127 |
+
background-color: #475569 !important;
|
| 128 |
+
}
|
| 129 |
+
|
| 130 |
+
/* Print styles */
|
| 131 |
+
@media print {
|
| 132 |
+
header, aside, .no-print {
|
| 133 |
+
display: none !important;
|
| 134 |
+
}
|
| 135 |
+
|
| 136 |
+
main {
|
| 137 |
+
margin-left: 0 !important;
|
| 138 |
+
padding-top: 0 !important;
|
| 139 |
+
}
|
| 140 |
+
}
|
| 141 |
+
|
| 142 |
+
/* Responsive adjustments */
|
| 143 |
+
@media (max-width: 1024px) {
|
| 144 |
+
.sidebar {
|
| 145 |
+
transform: translateX(-100%);
|
| 146 |
+
position: fixed;
|
| 147 |
+
z-index: 50;
|
| 148 |
+
height: 100vh;
|
| 149 |
+
}
|
| 150 |
+
|
| 151 |
+
.sidebar-open {
|
| 152 |
+
transform: translateX(0);
|
| 153 |
+
}
|
| 154 |
+
|
| 155 |
+
main {
|
| 156 |
+
margin-left: 0 !important;
|
| 157 |
+
}
|
| 158 |
+
|
| 159 |
+
.grid-cols-4 {
|
| 160 |
+
grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
|
| 161 |
+
}
|
| 162 |
+
}
|
| 163 |
+
|
| 164 |
+
@media (max-width: 768px) {
|
| 165 |
+
.grid-cols-4 {
|
| 166 |
+
grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
|
| 167 |
+
}
|
| 168 |
+
|
| 169 |
+
.search-bar {
|
| 170 |
+
display: none !important;
|
| 171 |
+
}
|
| 172 |
+
|
| 173 |
+
.header-icons {
|
| 174 |
+
margin-left: auto;
|
| 175 |
+
}
|
| 176 |
+
|
| 177 |
+
.course-grid {
|
| 178 |
+
grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
|
| 179 |
+
}
|
| 180 |
+
}
|
| 181 |
+
|
| 182 |
+
@media (max-width: 640px) {
|
| 183 |
+
.header-logo .logo-text {
|
| 184 |
+
display: none;
|
| 185 |
+
}
|
| 186 |
+
|
| 187 |
+
.two-column-layout {
|
| 188 |
+
grid-template-columns: 1fr !important;
|
| 189 |
+
}
|
| 190 |
+
}
|
| 191 |
</style>
|
| 192 |
</head>
|
| 193 |
+
<body class="bg-gray-100">
|
| 194 |
<!-- Header -->
|
| 195 |
+
<header class="bg-white shadow-sm fixed w-full z-30">
|
| 196 |
<div class="flex items-center justify-between px-4 py-3">
|
| 197 |
+
<div class="flex items-center space-x-2">
|
| 198 |
+
<button id="sidebar-toggle" class="text-gray-600 hover:text-blue-600 lg:hidden">
|
| 199 |
<i class="fas fa-bars text-xl"></i>
|
| 200 |
</button>
|
| 201 |
+
<button id="desktop-sidebar-toggle" class="text-gray-600 hover:text-blue-600 hidden lg:block">
|
| 202 |
+
<i class="fas fa-bars text-xl"></i>
|
| 203 |
+
</button>
|
| 204 |
+
<div class="flex items-center header-logo">
|
| 205 |
<i class="fas fa-graduation-cap text-blue-600 text-2xl mr-2"></i>
|
| 206 |
<span class="text-xl font-bold text-blue-600 logo-text">EduLearn</span>
|
| 207 |
</div>
|
| 208 |
</div>
|
| 209 |
|
| 210 |
+
<div class="flex-1 max-w-xl mx-4 hidden md:block">
|
| 211 |
+
<div class="relative search-bar">
|
| 212 |
<input type="text" placeholder="Search courses..." class="w-full pl-10 pr-4 py-2 rounded-full border border-gray-300 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent">
|
| 213 |
<i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
|
| 214 |
</div>
|
| 215 |
</div>
|
| 216 |
|
| 217 |
+
<div class="flex items-center space-x-4 header-icons">
|
| 218 |
+
<button id="mobile-search-toggle" class="text-gray-600 hover:text-blue-600 md:hidden">
|
| 219 |
+
<i class="fas fa-search text-xl"></i>
|
| 220 |
+
</button>
|
| 221 |
+
<button class="text-gray-600 hover:text-blue-600 relative hidden sm:inline-block">
|
| 222 |
<i class="fas fa-bell text-xl"></i>
|
| 223 |
<span class="absolute top-0 right-0 h-2 w-2 rounded-full bg-red-500"></span>
|
| 224 |
</button>
|
| 225 |
+
<button class="text-gray-600 hover:text-blue-600 hidden sm:inline-block">
|
| 226 |
<i class="fas fa-envelope text-xl"></i>
|
| 227 |
</button>
|
| 228 |
+
<button id="dark-mode-toggle" class="dark-mode-toggle text-gray-600 hover:text-blue-600 hidden sm:inline-block">
|
| 229 |
+
<i class="fas fa-moon text-xl"></i>
|
| 230 |
+
</button>
|
| 231 |
|
| 232 |
<div class="dropdown relative">
|
| 233 |
<button class="flex items-center space-x-2 focus:outline-none">
|
| 234 |
<div class="w-8 h-8 rounded-full bg-blue-500 flex items-center justify-center text-white font-semibold">JS</div>
|
| 235 |
<span class="hidden md:inline">John Smith</span>
|
| 236 |
+
<i class="fas fa-chevron-down text-xs hidden md:inline"></i>
|
| 237 |
</button>
|
| 238 |
+
<div class="dropdown-menu absolute right-0 mt-2 w-48 bg-white rounded-md shadow-lg py-1 z-20 hidden border border-gray-200">
|
| 239 |
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Profile</a>
|
| 240 |
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Dashboard</a>
|
| 241 |
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Settings</a>
|
|
|
|
| 245 |
</div>
|
| 246 |
</div>
|
| 247 |
</div>
|
| 248 |
+
|
| 249 |
+
<!-- Mobile search bar -->
|
| 250 |
+
<div id="mobile-search" class="px-4 py-2 bg-white border-t border-gray-200 hidden md:hidden">
|
| 251 |
+
<div class="relative">
|
| 252 |
+
<input type="text" placeholder="Search courses..." class="w-full pl-10 pr-4 py-2 rounded-full border border-gray-300 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent">
|
| 253 |
+
<i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
|
| 254 |
+
</div>
|
| 255 |
+
</div>
|
| 256 |
</header>
|
| 257 |
|
| 258 |
+
<!-- Mobile menu overlay -->
|
| 259 |
+
<div id="mobile-overlay" class="fixed inset-0 bg-black bg-opacity-50 z-40 hidden"></div>
|
| 260 |
+
|
| 261 |
<!-- Sidebar -->
|
| 262 |
+
<aside id="sidebar" class="sidebar bg-blue-800 text-white h-screen fixed pt-16 lg:block hidden">
|
| 263 |
<nav class="mt-6">
|
| 264 |
<div class="px-4 py-3 hover:bg-blue-700 cursor-pointer flex items-center text-blue-100">
|
| 265 |
<i class="fas fa-home text-lg w-6"></i>
|
|
|
|
| 304 |
</aside>
|
| 305 |
|
| 306 |
<!-- Main Content -->
|
| 307 |
+
<main class="lg:ml-64 pt-16 px-4 pb-6 transition-all duration-300" id="main-content">
|
| 308 |
<!-- Dashboard Overview -->
|
| 309 |
+
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 mb-6">
|
| 310 |
+
<div class="bg-white rounded-lg shadow p-4 sm:p-6">
|
| 311 |
<div class="flex items-center justify-between">
|
| 312 |
<div>
|
| 313 |
+
<p class="text-gray-500 text-sm sm:text-base">Active Courses</p>
|
| 314 |
+
<h3 class="text-xl sm:text-2xl font-bold">5</h3>
|
| 315 |
</div>
|
| 316 |
+
<div class="w-10 h-10 sm:w-12 sm:h-12 rounded-full bg-blue-100 flex items-center justify-center">
|
| 317 |
+
<i class="fas fa-book text-blue-600 text-lg sm:text-xl"></i>
|
| 318 |
</div>
|
| 319 |
</div>
|
| 320 |
+
<div class="mt-3 sm:mt-4 text-sm text-blue-600 font-medium">
|
| 321 |
<a href="#" class="hover:underline">View all courses</a>
|
| 322 |
</div>
|
| 323 |
</div>
|
| 324 |
|
| 325 |
+
<div class="bg-white rounded-lg shadow p-4 sm:p-6">
|
| 326 |
<div class="flex items-center justify-between">
|
| 327 |
<div>
|
| 328 |
+
<p class="text-gray-500 text-sm sm:text-base">Assignments Due</p>
|
| 329 |
+
<h3 class="text-xl sm:text-2xl font-bold">3</h3>
|
| 330 |
</div>
|
| 331 |
+
<div class="w-10 h-10 sm:w-12 sm:h-12 rounded-full bg-orange-100 flex items-center justify-center">
|
| 332 |
+
<i class="fas fa-tasks text-orange-600 text-lg sm:text-xl"></i>
|
| 333 |
</div>
|
| 334 |
</div>
|
| 335 |
+
<div class="mt-3 sm:mt-4 text-sm text-orange-600 font-medium">
|
| 336 |
<a href="#" class="hover:underline">View assignments</a>
|
| 337 |
</div>
|
| 338 |
</div>
|
| 339 |
|
| 340 |
+
<div class="bg-white rounded-lg shadow p-4 sm:p-6">
|
| 341 |
<div class="flex items-center justify-between">
|
| 342 |
<div>
|
| 343 |
+
<p class="text-gray-500 text-sm sm:text-base">Messages</p>
|
| 344 |
+
<h3 class="text-xl sm:text-2xl font-bold">7</h3>
|
| 345 |
</div>
|
| 346 |
+
<div class="w-10 h-10 sm:w-12 sm:h-12 rounded-full bg-green-100 flex items-center justify-center">
|
| 347 |
+
<i class="fas fa-envelope text-green-600 text-lg sm:text-xl"></i>
|
| 348 |
</div>
|
| 349 |
</div>
|
| 350 |
+
<div class="mt-3 sm:mt-4 text-sm text-green-600 font-medium">
|
| 351 |
<a href="#" class="hover:underline">View messages</a>
|
| 352 |
</div>
|
| 353 |
</div>
|
| 354 |
|
| 355 |
+
<div class="bg-white rounded-lg shadow p-4 sm:p-6">
|
| 356 |
<div class="flex items-center justify-between">
|
| 357 |
<div>
|
| 358 |
+
<p class="text-gray-500 text-sm sm:text-base">Overall Progress</p>
|
| 359 |
<div class="flex items-center">
|
| 360 |
+
<div class="relative w-8 h-8 sm:w-10 sm:h-10 mr-2 sm:mr-3">
|
| 361 |
<svg class="w-full h-full" viewBox="0 0 36 36">
|
| 362 |
<circle cx="18" cy="18" r="16" fill="none" class="stroke-gray-200" stroke-width="3"></circle>
|
| 363 |
<circle cx="18" cy="18" r="16" fill="none" class="stroke-blue-600 progress-ring__circle" stroke-width="3" stroke-dasharray="100" stroke-dashoffset="35"></circle>
|
| 364 |
</svg>
|
| 365 |
<div class="absolute inset-0 flex items-center justify-center text-xs font-bold">65%</div>
|
| 366 |
</div>
|
| 367 |
+
<h3 class="text-xl sm:text-2xl font-bold">Good</h3>
|
| 368 |
</div>
|
| 369 |
</div>
|
| 370 |
+
<div class="w-10 h-10 sm:w-12 sm:h-12 rounded-full bg-purple-100 flex items-center justify-center">
|
| 371 |
+
<i class="fas fa-chart-line text-purple-600 text-lg sm:text-xl"></i>
|
| 372 |
</div>
|
| 373 |
</div>
|
| 374 |
+
<div class="mt-3 sm:mt-4 text-sm text-purple-600 font-medium">
|
| 375 |
<a href="#" class="hover:underline">View progress</a>
|
| 376 |
</div>
|
| 377 |
</div>
|
|
|
|
| 379 |
|
| 380 |
<!-- Current Courses -->
|
| 381 |
<div class="bg-white rounded-lg shadow mb-6">
|
| 382 |
+
<div class="px-4 sm:px-6 py-4 border-b border-gray-200">
|
| 383 |
+
<h2 class="text-lg sm:text-xl font-semibold text-gray-800">My Current Courses</h2>
|
| 384 |
</div>
|
| 385 |
+
<div class="p-4 sm:p-6">
|
| 386 |
+
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4 sm:gap-6 course-grid">
|
| 387 |
<!-- Course Card 1 -->
|
| 388 |
<div class="course-card bg-white rounded-lg border border-gray-200 overflow-hidden hover:shadow-lg transition-shadow duration-300 relative">
|
| 389 |
+
<div class="h-32 sm:h-40 bg-gradient-to-r from-blue-500 to-blue-400 flex items-center justify-center">
|
| 390 |
+
<i class="fas fa-laptop-code text-white text-4xl sm:text-5xl"></i>
|
| 391 |
</div>
|
| 392 |
+
<div class="p-3 sm:p-4">
|
| 393 |
<div class="flex justify-between items-start">
|
| 394 |
<div>
|
| 395 |
+
<h3 class="font-bold text-base sm:text-lg mb-1">Web Development</h3>
|
| 396 |
+
<p class="text-gray-600 text-xs sm:text-sm">Prof. Sarah Johnson</p>
|
| 397 |
</div>
|
| 398 |
<span class="bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded-full">Active</span>
|
| 399 |
</div>
|
| 400 |
+
<div class="mt-3 sm:mt-4 flex items-center justify-between">
|
| 401 |
<div class="w-full bg-gray-200 rounded-full h-2">
|
| 402 |
<div class="bg-blue-600 h-2 rounded-full" style="width: 75%"></div>
|
| 403 |
</div>
|
| 404 |
+
<span class="ml-2 text-xs sm:text-sm text-gray-600">75%</span>
|
| 405 |
</div>
|
| 406 |
</div>
|
| 407 |
<div class="course-overlay absolute inset-0 bg-black bg-opacity-70 flex items-center justify-center space-x-2">
|
| 408 |
+
<button class="bg-white text-blue-600 px-3 py-1 sm:px-4 sm:py-2 rounded-lg font-medium hover:bg-blue-50 text-sm sm:text-base">
|
| 409 |
<i class="fas fa-play mr-1"></i> Continue
|
| 410 |
</button>
|
| 411 |
+
<button class="bg-blue-600 text-white px-3 py-1 sm:px-4 sm:py-2 rounded-lg font-medium hover:bg-blue-700 text-sm sm:text-base">
|
| 412 |
<i class="fas fa-info-circle mr-1"></i> Details
|
| 413 |
</button>
|
| 414 |
</div>
|
|
|
|
| 416 |
|
| 417 |
<!-- Course Card 2 -->
|
| 418 |
<div class="course-card bg-white rounded-lg border border-gray-200 overflow-hidden hover:shadow-lg transition-shadow duration-300 relative">
|
| 419 |
+
<div class="h-32 sm:h-40 bg-gradient-to-r from-purple-500 to-purple-400 flex items-center justify-center">
|
| 420 |
+
<i class="fas fa-database text-white text-4xl sm:text-5xl"></i>
|
| 421 |
</div>
|
| 422 |
+
<div class="p-3 sm:p-4">
|
| 423 |
<div class="flex justify-between items-start">
|
| 424 |
<div>
|
| 425 |
+
<h3 class="font-bold text-base sm:text-lg mb-1">Database Design</h3>
|
| 426 |
+
<p class="text-gray-600 text-xs sm:text-sm">Prof. Michael Chen</p>
|
| 427 |
</div>
|
| 428 |
<span class="bg-purple-100 text-purple-800 text-xs px-2 py-1 rounded-full">Active</span>
|
| 429 |
</div>
|
| 430 |
+
<div class="mt-3 sm:mt-4 flex items-center justify-between">
|
| 431 |
<div class="w-full bg-gray-200 rounded-full h-2">
|
| 432 |
<div class="bg-purple-600 h-2 rounded-full" style="width: 45%"></div>
|
| 433 |
</div>
|
| 434 |
+
<span class="ml-2 text-xs sm:text-sm text-gray-600">45%</span>
|
| 435 |
</div>
|
| 436 |
</div>
|
| 437 |
<div class="course-overlay absolute inset-0 bg-black bg-opacity-70 flex items-center justify-center space-x-2">
|
| 438 |
+
<button class="bg-white text-purple-600 px-3 py-1 sm:px-4 sm:py-2 rounded-lg font-medium hover:bg-purple-50 text-sm sm:text-base">
|
| 439 |
<i class="fas fa-play mr-1"></i> Continue
|
| 440 |
</button>
|
| 441 |
+
<button class="bg-purple-600 text-white px-3 py-1 sm:px-4 sm:py-2 rounded-lg font-medium hover:bg-purple-700 text-sm sm:text-base">
|
| 442 |
<i class="fas fa-info-circle mr-1"></i> Details
|
| 443 |
</button>
|
| 444 |
</div>
|
|
|
|
| 446 |
|
| 447 |
<!-- Course Card 3 -->
|
| 448 |
<div class="course-card bg-white rounded-lg border border-gray-200 overflow-hidden hover:shadow-lg transition-shadow duration-300 relative">
|
| 449 |
+
<div class="h-32 sm:h-40 bg-gradient-to-r from-green-500 to-green-400 flex items-center justify-center">
|
| 450 |
+
<i class="fas fa-mobile-alt text-white text-4xl sm:text-5xl"></i>
|
| 451 |
</div>
|
| 452 |
+
<div class="p-3 sm:p-4">
|
| 453 |
<div class="flex justify-between items-start">
|
| 454 |
<div>
|
| 455 |
+
<h3 class="font-bold text-base sm:text-lg mb-1">Mobile App Development</h3>
|
| 456 |
+
<p class="text-gray-600 text-xs sm:text-sm">Prof. Emily Rodriguez</p>
|
| 457 |
</div>
|
| 458 |
<span class="bg-green-100 text-green-800 text-xs px-2 py-1 rounded-full">Active</span>
|
| 459 |
</div>
|
| 460 |
+
<div class="mt-3 sm:mt-4 flex items-center justify-between">
|
| 461 |
<div class="w-full bg-gray-200 rounded-full h-2">
|
| 462 |
<div class="bg-green-600 h-2 rounded-full" style="width: 60%"></div>
|
| 463 |
</div>
|
| 464 |
+
<span class="ml-2 text-xs sm:text-sm text-gray-600">60%</span>
|
| 465 |
</div>
|
| 466 |
</div>
|
| 467 |
<div class="course-overlay absolute inset-0 bg-black bg-opacity-70 flex items-center justify-center space-x-2">
|
| 468 |
+
<button class="bg-white text-green-600 px-3 py-1 sm:px-4 sm:py-2 rounded-lg font-medium hover:bg-green-50 text-sm sm:text-base">
|
| 469 |
<i class="fas fa-play mr-1"></i> Continue
|
| 470 |
</button>
|
| 471 |
+
<button class="bg-green-600 text-white px-3 py-1 sm:px-4 sm:py-2 rounded-lg font-medium hover:bg-green-700 text-sm sm:text-base">
|
| 472 |
<i class="fas fa-info-circle mr-1"></i> Details
|
| 473 |
</button>
|
| 474 |
</div>
|
|
|
|
| 476 |
</div>
|
| 477 |
|
| 478 |
<div class="mt-6 text-center">
|
| 479 |
+
<button class="bg-white border border-blue-500 text-blue-500 px-4 sm:px-6 py-2 rounded-lg font-medium hover:bg-blue-50 hover:text-blue-600 text-sm sm:text-base">
|
| 480 |
View All Courses
|
| 481 |
</button>
|
| 482 |
</div>
|
|
|
|
| 484 |
</div>
|
| 485 |
|
| 486 |
<!-- Upcoming Deadlines & Recent Activity -->
|
| 487 |
+
<div class="grid grid-cols-1 lg:grid-cols-2 gap-4 sm:gap-6 two-column-layout">
|
| 488 |
<!-- Upcoming Deadlines -->
|
| 489 |
<div class="bg-white rounded-lg shadow">
|
| 490 |
+
<div class="px-4 sm:px-6 py-4 border-b border-gray-200">
|
| 491 |
+
<h2 class="text-lg sm:text-xl font-semibold text-gray-800">Upcoming Deadlines</h2>
|
| 492 |
</div>
|
| 493 |
+
<div class="p-4 sm:p-6">
|
| 494 |
+
<div class="space-y-3 sm:space-y-4">
|
| 495 |
<!-- Deadline 1 -->
|
| 496 |
<div class="flex items-start">
|
| 497 |
<div class="flex-shrink-0 mt-1">
|
| 498 |
+
<div class="w-8 h-8 sm:w-10 sm:h-10 rounded-full bg-red-100 flex items-center justify-center">
|
| 499 |
+
<i class="fas fa-exclamation text-red-600 text-sm sm:text-base"></i>
|
| 500 |
</div>
|
| 501 |
</div>
|
| 502 |
+
<div class="ml-3 sm:ml-4">
|
| 503 |
+
<h3 class="font-medium text-gray-900 text-sm sm:text-base">Web Development Project</h3>
|
| 504 |
+
<p class="text-gray-500 text-xs sm:text-sm">Due in 2 days - May 15, 2023</p>
|
| 505 |
+
<div class="mt-1 flex items-center text-gray-500 text-xs sm:text-sm">
|
| 506 |
<i class="fas fa-book mr-1"></i>
|
| 507 |
<span>Web Development Course</span>
|
| 508 |
</div>
|
|
|
|
| 512 |
<!-- Deadline 2 -->
|
| 513 |
<div class="flex items-start">
|
| 514 |
<div class="flex-shrink-0 mt-1">
|
| 515 |
+
<div class="w-8 h-8 sm:w-10 sm:h-10 rounded-full bg-yellow-100 flex items-center justify-center">
|
| 516 |
+
<i class="fas fa-tasks text-yellow-600 text-sm sm:text-base"></i>
|
| 517 |
</div>
|
| 518 |
</div>
|
| 519 |
+
<div class="ml-3 sm:ml-4">
|
| 520 |
+
<h3 class="font-medium text-gray-900 text-sm sm:text-base">Database Design Quiz</h3>
|
| 521 |
+
<p class="text-gray-500 text-xs sm:text-sm">Due in 5 days - May 18, 2023</p>
|
| 522 |
+
<div class="mt-1 flex items-center text-gray-500 text-xs sm:text-sm">
|
| 523 |
<i class="fas fa-book mr-1"></i>
|
| 524 |
<span>Database Design Course</span>
|
| 525 |
</div>
|
|
|
|
| 529 |
<!-- Deadline 3 -->
|
| 530 |
<div class="flex items-start">
|
| 531 |
<div class="flex-shrink-0 mt-1">
|
| 532 |
+
<div class="w-8 h-8 sm:w-10 sm:h-10 rounded-full bg-blue-100 flex items-center justify-center">
|
| 533 |
+
<i class="fas fa-file-alt text-blue-600 text-sm sm:text-base"></i>
|
| 534 |
</div>
|
| 535 |
</div>
|
| 536 |
+
<div class="ml-3 sm:ml-4">
|
| 537 |
+
<h3 class="font-medium text-gray-900 text-sm sm:text-base">Mobile App Wireframes</h3>
|
| 538 |
+
<p class="text-gray-500 text-xs sm:text-sm">Due in 7 days - May 20, 2023</p>
|
| 539 |
+
<div class="mt-1 flex items-center text-gray-500 text-xs sm:text-sm">
|
| 540 |
<i class="fas fa-book mr-1"></i>
|
| 541 |
<span>Mobile App Development</span>
|
| 542 |
</div>
|
|
|
|
| 544 |
</div>
|
| 545 |
</div>
|
| 546 |
|
| 547 |
+
<div class="mt-4 sm:mt-6">
|
| 548 |
+
<button class="w-full bg-gray-100 hover:bg-gray-200 text-gray-800 font-medium py-2 px-4 rounded-lg text-sm sm:text-base">
|
| 549 |
View All Deadlines
|
| 550 |
</button>
|
| 551 |
</div>
|
|
|
|
| 554 |
|
| 555 |
<!-- Recent Activity -->
|
| 556 |
<div class="bg-white rounded-lg shadow">
|
| 557 |
+
<div class="px-4 sm:px-6 py-4 border-b border-gray-200">
|
| 558 |
+
<h2 class="text-lg sm:text-xl font-semibold text-gray-800">Recent Activity</h2>
|
| 559 |
</div>
|
| 560 |
+
<div class="p-4 sm:p-6">
|
| 561 |
+
<div class="space-y-3 sm:space-y-4">
|
| 562 |
<!-- Activity 1 -->
|
| 563 |
<div class="flex">
|
| 564 |
<div class="flex-shrink-0">
|
| 565 |
+
<div class="w-8 h-8 sm:w-10 sm:h-10 rounded-full bg-blue-100 flex items-center justify-center">
|
| 566 |
+
<i class="fas fa-comment text-blue-600 text-sm sm:text-base"></i>
|
| 567 |
</div>
|
| 568 |
</div>
|
| 569 |
+
<div class="ml-3 sm:ml-4">
|
| 570 |
+
<p class="text-gray-800 text-sm sm:text-base">
|
| 571 |
<span class="font-medium">Prof. Sarah Johnson</span> posted a new announcement in <span class="font-medium text-blue-600">Web Development</span>
|
| 572 |
</p>
|
| 573 |
+
<p class="text-gray-500 text-xs sm:text-sm mt-1">2 hours ago</p>
|
| 574 |
</div>
|
| 575 |
</div>
|
| 576 |
|
| 577 |
<!-- Activity 2 -->
|
| 578 |
<div class="flex">
|
| 579 |
<div class="flex-shrink-0">
|
| 580 |
+
<div class="w-8 h-8 sm:w-10 sm:h-10 rounded-full bg-green-100 flex items-center justify-center">
|
| 581 |
+
<i class="fas fa-check-circle text-green-600 text-sm sm:text-base"></i>
|
| 582 |
</div>
|
| 583 |
</div>
|
| 584 |
+
<div class="ml-3 sm:ml-4">
|
| 585 |
+
<p class="text-gray-800 text-sm sm:text-base">
|
| 586 |
You submitted <span class="font-medium">Assignment #3</span> for <span class="font-medium text-green-600">Database Design</span>
|
| 587 |
</p>
|
| 588 |
+
<p class="text-gray-500 text-xs sm:text-sm mt-1">1 day ago</p>
|
| 589 |
</div>
|
| 590 |
</div>
|
| 591 |
|
| 592 |
<!-- Activity 3 -->
|
| 593 |
<div class="flex">
|
| 594 |
<div class="flex-shrink-0">
|
| 595 |
+
<div class="w-8 h-8 sm:w-10 sm:h-10 rounded-full bg-purple-100 flex items-center justify-center">
|
| 596 |
+
<i class="fas fa-graduation-cap text-purple-600 text-sm sm:text-base"></i>
|
| 597 |
</div>
|
| 598 |
</div>
|
| 599 |
+
<div class="ml-3 sm:ml-4">
|
| 600 |
+
<p class="text-gray-800 text-sm sm:text-base">
|
| 601 |
You earned a badge <span class="font-medium">"Quick Learner"</span> in <span class="font-medium text-purple-600">Mobile App Development</span>
|
| 602 |
</p>
|
| 603 |
+
<p class="text-gray-500 text-xs sm:text-sm mt-1">2 days ago</p>
|
| 604 |
</div>
|
| 605 |
</div>
|
| 606 |
</div>
|
| 607 |
|
| 608 |
+
<div class="mt-4 sm:mt-6">
|
| 609 |
+
<button class="w-full bg-gray-100 hover:bg-gray-200 text-gray-800 font-medium py-2 px-4 rounded-lg text-sm sm:text-base">
|
| 610 |
View All Activity
|
| 611 |
</button>
|
| 612 |
</div>
|
| 613 |
</div>
|
| 614 |
</div>
|
| 615 |
</div>
|
| 616 |
+
|
| 617 |
+
<!-- Footer -->
|
| 618 |
+
<footer class="mt-8 text-center text-gray-500 text-sm no-print">
|
| 619 |
+
<p>© 2023 EduLearn. All rights reserved.</p>
|
| 620 |
+
<div class="mt-2 flex justify-center space-x-4">
|
| 621 |
+
<a href="#" class="hover:text-blue-600">Terms of Service</a>
|
| 622 |
+
<a href="#" class="hover:text-blue-600">Privacy Policy</a>
|
| 623 |
+
<a href="#" class="hover:text-blue-600">Contact Us</a>
|
| 624 |
+
</div>
|
| 625 |
+
</footer>
|
| 626 |
</main>
|
| 627 |
|
| 628 |
<script>
|
| 629 |
+
// Toggle mobile sidebar
|
| 630 |
document.getElementById('sidebar-toggle').addEventListener('click', function() {
|
| 631 |
+
const sidebar = document.getElementById('sidebar');
|
| 632 |
+
const overlay = document.getElementById('mobile-overlay');
|
| 633 |
+
|
| 634 |
+
sidebar.classList.toggle('hidden');
|
| 635 |
+
sidebar.classList.toggle('sidebar-open');
|
| 636 |
+
overlay.classList.toggle('hidden');
|
| 637 |
+
});
|
| 638 |
+
|
| 639 |
+
// Toggle desktop sidebar
|
| 640 |
+
let sidebarCollapsed = false;
|
| 641 |
+
document.getElementById('desktop-sidebar-toggle').addEventListener('click', function() {
|
| 642 |
const sidebar = document.getElementById('sidebar');
|
| 643 |
const mainContent = document.getElementById('main-content');
|
| 644 |
|
| 645 |
+
sidebarCollapsed = !sidebarCollapsed;
|
| 646 |
sidebar.classList.toggle('sidebar-collapsed');
|
| 647 |
+
mainContent.classList.toggle('lg:ml-64');
|
| 648 |
+
mainContent.classList.toggle('lg:ml-20');
|
| 649 |
+
|
| 650 |
+
// Save preference to localStorage
|
| 651 |
+
localStorage.setItem('sidebarCollapsed', sidebarCollapsed);
|
| 652 |
+
});
|
| 653 |
+
|
| 654 |
+
// Close mobile sidebar when clicking overlay
|
| 655 |
+
document.getElementById('mobile-overlay').addEventListener('click', function() {
|
| 656 |
+
const sidebar = document.getElementById('sidebar');
|
| 657 |
+
const overlay = document.getElementById('mobile-overlay');
|
| 658 |
+
|
| 659 |
+
sidebar.classList.add('hidden');
|
| 660 |
+
sidebar.classList.remove('sidebar-open');
|
| 661 |
+
overlay.classList.add('hidden');
|
| 662 |
+
});
|
| 663 |
+
|
| 664 |
+
// Toggle mobile search
|
| 665 |
+
document.getElementById('mobile-search-toggle').addEventListener('click', function() {
|
| 666 |
+
const mobileSearch = document.getElementById('mobile-search');
|
| 667 |
+
mobileSearch.classList.toggle('hidden');
|
| 668 |
+
});
|
| 669 |
+
|
| 670 |
+
// Dark mode toggle
|
| 671 |
+
const darkModeToggle = document.getElementById('dark-mode-toggle');
|
| 672 |
+
const html = document.documentElement;
|
| 673 |
+
|
| 674 |
+
// Check for saved user preference
|
| 675 |
+
if (localStorage.getItem('darkMode') === 'enabled') {
|
| 676 |
+
html.classList.add('dark');
|
| 677 |
+
darkModeToggle.innerHTML = '<i class="fas fa-sun text-xl"></i>';
|
| 678 |
+
}
|
| 679 |
+
|
| 680 |
+
darkModeToggle.addEventListener('click', function() {
|
| 681 |
+
if (html.classList.contains('dark')) {
|
| 682 |
+
html.classList.remove('dark');
|
| 683 |
+
darkModeToggle.innerHTML = '<i class="fas fa-moon text-xl"></i>';
|
| 684 |
+
localStorage.setItem('darkMode', 'disabled');
|
| 685 |
+
} else {
|
| 686 |
+
html.classList.add('dark');
|
| 687 |
+
darkModeToggle.innerHTML = '<i class="fas fa-sun text-xl"></i>';
|
| 688 |
+
localStorage.setItem('darkMode', 'enabled');
|
| 689 |
+
}
|
| 690 |
+
});
|
| 691 |
+
|
| 692 |
+
// Check for saved sidebar state
|
| 693 |
+
if (localStorage.getItem('sidebarCollapsed') === 'true') {
|
| 694 |
+
const sidebar = document.getElementById('sidebar');
|
| 695 |
+
const mainContent = document.getElementById('main-content');
|
| 696 |
+
|
| 697 |
+
sidebar.classList.add('sidebar-collapsed');
|
| 698 |
+
mainContent.classList.remove('lg:ml-64');
|
| 699 |
+
mainContent.classList.add('lg:ml-20');
|
| 700 |
+
sidebarCollapsed = true;
|
| 701 |
+
}
|
| 702 |
+
|
| 703 |
+
// Dropdown functionality
|
| 704 |
+
document.querySelectorAll('.dropdown').forEach(dropdown => {
|
| 705 |
+
const button = dropdown.querySelector('button');
|
| 706 |
+
const menu = dropdown.querySelector('.dropdown-menu');
|
| 707 |
+
|
| 708 |
+
button.addEventListener('click', function(e) {
|
| 709 |
+
e.stopPropagation();
|
| 710 |
+
menu.classList.toggle('hidden');
|
| 711 |
+
});
|
| 712 |
+
|
| 713 |
+
// Close when clicking outside
|
| 714 |
+
document.addEventListener('click', function(e) {
|
| 715 |
+
if (!dropdown.contains(e.target)) {
|
| 716 |
+
menu.classList.add('hidden');
|
| 717 |
+
}
|
| 718 |
+
});
|
| 719 |
});
|
| 720 |
|
| 721 |
// Simulate loading courses (for demo purposes)
|
|
|
|
| 733 |
}
|
| 734 |
});
|
| 735 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 736 |
|
| 737 |
+
// Check for prefers-color-scheme
|
| 738 |
+
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches && !localStorage.getItem('darkMode')) {
|
| 739 |
+
html.classList.add('dark');
|
| 740 |
+
darkModeToggle.innerHTML = '<i class="fas fa-sun text-xl"></i>';
|
| 741 |
+
}
|
| 742 |
|
| 743 |
+
// Watch for system color scheme changes
|
| 744 |
+
window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', event => {
|
| 745 |
+
if (!localStorage.getItem('darkMode')) {
|
| 746 |
+
if (event.matches) {
|
| 747 |
+
html.classList.add('dark');
|
| 748 |
+
darkModeToggle.innerHTML = '<i class="fas fa-sun text-xl"></i>';
|
| 749 |
+
} else {
|
| 750 |
+
html.classList.remove('dark');
|
| 751 |
+
darkModeToggle.innerHTML = '<i class="fas fa-moon text-xl"></i>';
|
| 752 |
+
}
|
| 753 |
}
|
| 754 |
});
|
| 755 |
});
|
| 756 |
+
|
| 757 |
+
// Service worker registration for PWA
|
| 758 |
+
if ('serviceWorker' in navigator) {
|
| 759 |
+
window.addEventListener('load', () => {
|
| 760 |
+
navigator.serviceWorker.register('/sw.js').then(registration => {
|
| 761 |
+
console.log('ServiceWorker registration successful with scope: ', registration.scope);
|
| 762 |
+
}).catch(err => {
|
| 763 |
+
console.log('ServiceWorker registration failed: ', err);
|
| 764 |
+
});
|
| 765 |
+
});
|
| 766 |
+
}
|
| 767 |
</script>
|
| 768 |
<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=ZakheTH/elearning-platform" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 769 |
</html>
|