TechMeOut100 commited on
Commit
bb71530
·
verified ·
1 Parent(s): 664cce3

create database for the login screen - Initial Deployment

Browse files
Files changed (2) hide show
  1. README.md +7 -5
  2. index.html +606 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Edutrack100
3
- emoji: 📚
4
- colorFrom: yellow
5
- colorTo: blue
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: edutrack100
3
+ emoji: 🐳
4
+ colorFrom: red
5
+ colorTo: gray
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite
10
  ---
11
 
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
index.html CHANGED
@@ -1,19 +1,606 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>EduTrack - Learning Management System</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
+ .sidebar {
11
+ transition: all 0.3s ease;
12
+ }
13
+ .progress-ring__circle {
14
+ transition: stroke-dashoffset 0.35s;
15
+ transform: rotate(-90deg);
16
+ transform-origin: 50% 50%;
17
+ }
18
+ .course-card:hover {
19
+ transform: translateY(-5px);
20
+ box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
21
+ }
22
+ @media (max-width: 768px) {
23
+ .sidebar {
24
+ position: fixed;
25
+ left: -100%;
26
+ top: 0;
27
+ z-index: 50;
28
+ height: 100vh;
29
+ }
30
+ .sidebar.active {
31
+ left: 0;
32
+ }
33
+ }
34
+ </style>
35
+ </head>
36
+ <body class="bg-gray-50 font-sans">
37
+ <!-- Login Screen -->
38
+ <div id="loginScreen" class="fixed inset-0 bg-gray-900 bg-opacity-50 flex items-center justify-center z-50">
39
+ <div class="bg-white rounded-xl shadow-xl p-8 w-full max-w-md">
40
+ <div class="text-center mb-8">
41
+ <h1 class="text-3xl font-bold text-blue-600 flex items-center justify-center">
42
+ <i class="fas fa-graduation-cap mr-2"></i> EduTrack
43
+ </h1>
44
+ <p class="text-gray-600 mt-2">Sign in to your account</p>
45
+ </div>
46
+ <form id="loginForm" class="space-y-4">
47
+ <div>
48
+ <label for="email" class="block text-sm font-medium text-gray-700 mb-1">Email</label>
49
+ <input type="email" id="email" required
50
+ class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"
51
+ placeholder="your@email.com">
52
+ </div>
53
+ <div>
54
+ <label for="password" class="block text-sm font-medium text-gray-700 mb-1">Password</label>
55
+ <input type="password" id="password" required
56
+ class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"
57
+ placeholder="••••••••">
58
+ </div>
59
+ <div class="flex items-center justify-between">
60
+ <div class="flex items-center">
61
+ <input id="remember" type="checkbox"
62
+ class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded">
63
+ <label for="remember" class="ml-2 block text-sm text-gray-700">Remember me</label>
64
+ </div>
65
+ <a href="#" class="text-sm text-blue-600 hover:text-blue-800">Forgot password?</a>
66
+ </div>
67
+ <button type="submit"
68
+ class="w-full bg-blue-600 text-white py-2 px-4 rounded-lg hover:bg-blue-700 transition duration-300">
69
+ Sign in
70
+ </button>
71
+ </form>
72
+ <div class="mt-6 text-center">
73
+ <p class="text-sm text-gray-600">
74
+ Don't have an account?
75
+ <a href="#" class="text-blue-600 hover:text-blue-800 font-medium">Sign up</a>
76
+ </p>
77
+ </div>
78
+ </div>
79
+ </div>
80
+
81
+ <!-- Main Content (hidden initially) -->
82
+ <div id="mainContent" class="hidden">
83
+ <!-- Mobile Menu Button -->
84
+ <button id="mobileMenuButton" class="md:hidden fixed top-4 left-4 z-50 bg-white p-2 rounded-lg shadow-lg">
85
+ <i class="fas fa-bars text-blue-600 text-xl"></i>
86
+ </button>
87
+
88
+ <!-- Sidebar Navigation -->
89
+ <div class="sidebar bg-white w-64 fixed h-full shadow-lg">
90
+ <div class="p-4 border-b border-gray-200">
91
+ <h1 class="text-2xl font-bold text-blue-600 flex items-center">
92
+ <i class="fas fa-graduation-cap mr-2"></i> EduTrack
93
+ </h1>
94
+ <p class="text-gray-500 text-sm">Learning Management System</p>
95
+ </div>
96
+ <div class="p-4">
97
+ <div class="flex items-center mb-6">
98
+ <img src="https://randomuser.me/api/portraits/women/44.jpg" alt="User" class="w-10 h-10 rounded-full mr-3">
99
+ <div>
100
+ <p class="font-medium">Sarah Johnson</p>
101
+ <p class="text-gray-500 text-sm">Student</p>
102
+ </div>
103
+ </div>
104
+ <nav>
105
+ <ul>
106
+ <li class="mb-1">
107
+ <a href="#" class="flex items-center p-2 text-blue-600 bg-blue-50 rounded-lg">
108
+ <i class="fas fa-home mr-3"></i> Dashboard
109
+ </a>
110
+ </li>
111
+ <li class="mb-1">
112
+ <a href="#" class="flex items-center p-2 text-gray-600 hover:bg-blue-50 rounded-lg">
113
+ <i class="fas fa-book mr-3"></i> My Courses
114
+ </a>
115
+ </li>
116
+ <li class="mb-1">
117
+ <a href="#" class="flex items-center p-2 text-gray-600 hover:bg-blue-50 rounded-lg">
118
+ <i class="fas fa-calendar-alt mr-3"></i> Calendar
119
+ </a>
120
+ </li>
121
+ <li class="mb-1">
122
+ <a href="#" class="flex items-center p-2 text-gray-600 hover:bg-blue-50 rounded-lg">
123
+ <i class="fas fa-tasks mr-3"></i> Assignments
124
+ </a>
125
+ </li>
126
+ <li class="mb-1">
127
+ <a href="#" class="flex items-center p-2 text-gray-600 hover:bg-blue-50 rounded-lg">
128
+ <i class="fas fa-chart-line mr-3"></i> Progress
129
+ </a>
130
+ </li>
131
+ <li class="mb-1">
132
+ <a href="#" class="flex items-center p-2 text-gray-600 hover:bg-blue-50 rounded-lg">
133
+ <i class="fas fa-comments mr-3"></i> Discussions
134
+ </a>
135
+ </li>
136
+ <li class="mb-1">
137
+ <a href="#" class="flex items-center p-2 text-gray-600 hover:bg-blue-50 rounded-lg">
138
+ <i class="fas fa-cog mr-3"></i> Settings
139
+ </a>
140
+ </li>
141
+ </ul>
142
+ </nav>
143
+ </div>
144
+ <div class="absolute bottom-0 w-full p-4 border-t border-gray-200">
145
+ <button data-logout class="flex items-center text-gray-600 hover:text-blue-600 w-full p-2">
146
+ <i class="fas fa-sign-out-alt mr-3"></i> Logout
147
+ </button>
148
+ </div>
149
+ </div>
150
+
151
+ <!-- Main Content -->
152
+ <div id="mainContainer" class="ml-0 md:ml-64 transition-all duration-300">
153
+ <!-- Header -->
154
+ <header class="bg-white shadow-sm p-4">
155
+ <div class="flex justify-between items-center">
156
+ <h2 class="text-xl font-semibold text-gray-800">Dashboard</h2>
157
+ <div class="flex items-center space-x-4">
158
+ <div class="relative">
159
+ <i class="fas fa-search absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400"></i>
160
+ <input type="text" placeholder="Search..." class="pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500">
161
+ </div>
162
+ <div class="relative">
163
+ <i class="fas fa-bell text-gray-600 text-xl cursor-pointer"></i>
164
+ <span class="absolute top-0 right-0 h-2 w-2 rounded-full bg-red-500"></span>
165
+ </div>
166
+ </div>
167
+ </div>
168
+ </header>
169
+
170
+ <!-- Dashboard Content -->
171
+ <main class="p-4 md:p-6">
172
+ <!-- Welcome Banner -->
173
+ <div class="bg-gradient-to-r from-blue-500 to-blue-600 rounded-xl p-6 text-white mb-6">
174
+ <div class="flex flex-col md:flex-row justify-between items-start md:items-center">
175
+ <div>
176
+ <h3 class="text-2xl font-bold mb-2">Welcome back, Sarah!</h3>
177
+ <p class="mb-4">You have 3 active courses and 2 assignments due this week.</p>
178
+ <button class="bg-white text-blue-600 px-4 py-2 rounded-lg font-medium hover:bg-blue-50 transition">View Assignments</button>
179
+ </div>
180
+ <img src="https://cdn-icons-png.flaticon.com/512/3135/3135715.png" alt="Learning" class="w-32 hidden md:block">
181
+ </div>
182
+ </div>
183
+
184
+ <!-- Stats Cards -->
185
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6">
186
+ <div class="bg-white p-6 rounded-xl shadow-sm border-l-4 border-blue-500">
187
+ <div class="flex justify-between items-start">
188
+ <div>
189
+ <p class="text-gray-500">Active Courses</p>
190
+ <h3 class="text-2xl font-bold mt-2">3</h3>
191
+ </div>
192
+ <div class="bg-blue-100 p-3 rounded-lg">
193
+ <i class="fas fa-book text-blue-600 text-xl"></i>
194
+ </div>
195
+ </div>
196
+ </div>
197
+ <div class="bg-white p-6 rounded-xl shadow-sm border-l-4 border-green-500">
198
+ <div class="flex justify-between items-start">
199
+ <div>
200
+ <p class="text-gray-500">Completed</p>
201
+ <h3 class="text-2xl font-bold mt-2">5</h3>
202
+ </div>
203
+ <div class="bg-green-100 p-3 rounded-lg">
204
+ <i class="fas fa-check-circle text-green-600 text-xl"></i>
205
+ </div>
206
+ </div>
207
+ </div>
208
+ <div class="bg-white p-6 rounded-xl shadow-sm border-l-4 border-yellow-500">
209
+ <div class="flex justify-between items-start">
210
+ <div>
211
+ <p class="text-gray-500">Assignments Due</p>
212
+ <h3 class="text-2xl font-bold mt-2">2</h3>
213
+ </div>
214
+ <div class="bg-yellow-100 p-3 rounded-lg">
215
+ <i class="fas fa-tasks text-yellow-600 text-xl"></i>
216
+ </div>
217
+ </div>
218
+ </div>
219
+ <div class="bg-white p-6 rounded-xl shadow-sm border-l-4 border-purple-500">
220
+ <div class="flex justify-between items-start">
221
+ <div>
222
+ <p class="text-gray-500">Hours Learned</p>
223
+ <h3 class="text-2xl font-bold mt-2">42</h3>
224
+ </div>
225
+ <div class="bg-purple-100 p-3 rounded-lg">
226
+ <i class="fas fa-clock text-purple-600 text-xl"></i>
227
+ </div>
228
+ </div>
229
+ </div>
230
+ </div>
231
+
232
+ <!-- Courses Section -->
233
+ <div class="mb-6">
234
+ <div class="flex justify-between items-center mb-4">
235
+ <h3 class="text-xl font-semibold text-gray-800">My Courses</h3>
236
+ <button class="text-blue-600 hover:text-blue-800 font-medium">View All</button>
237
+ </div>
238
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
239
+ <!-- Course Card 1 -->
240
+ <div class="course-card bg-white rounded-xl shadow-sm overflow-hidden transition duration-300">
241
+ <div class="relative">
242
+ <img src="https://images.unsplash.com/photo-1551288049-bebda4e38f71?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60" alt="Course" class="w-full h-40 object-cover">
243
+ <div class="absolute top-2 right-2 bg-blue-600 text-white text-xs px-2 py-1 rounded">Active</div>
244
+ </div>
245
+ <div class="p-4">
246
+ <div class="flex justify-between items-start mb-2">
247
+ <h4 class="font-bold text-lg">Data Science Fundamentals</h4>
248
+ <div class="flex items-center text-yellow-400">
249
+ <i class="fas fa-star"></i>
250
+ <span class="ml-1 text-gray-600">4.8</span>
251
+ </div>
252
+ </div>
253
+ <p class="text-gray-600 text-sm mb-4">Learn the core concepts of data analysis and visualization.</p>
254
+ <div class="flex justify-between items-center">
255
+ <div class="flex items-center">
256
+ <div class="w-10 h-10 relative">
257
+ <svg class="w-10 h-10" viewBox="0 0 36 36">
258
+ <circle class="text-gray-200" stroke-width="4" stroke="currentColor" fill="none" cx="18" cy="18" r="16"></circle>
259
+ <circle class="text-blue-600" stroke-width="4" stroke-dasharray="80, 100" stroke-linecap="round" stroke="currentColor" fill="none" cx="18" cy="18" r="16"></circle>
260
+ </svg>
261
+ <div class="absolute inset-0 flex items-center justify-center text-xs font-semibold">80%</div>
262
+ </div>
263
+ <span class="ml-2 text-sm text-gray-500">Progress</span>
264
+ </div>
265
+ <button class="bg-blue-600 text-white px-3 py-1 rounded-lg text-sm hover:bg-blue-700">Continue</button>
266
+ </div>
267
+ </div>
268
+ </div>
269
+
270
+ <!-- Course Card 2 -->
271
+ <div class="course-card bg-white rounded-xl shadow-sm overflow-hidden transition duration-300">
272
+ <div class="relative">
273
+ <img src="https://images.unsplash.com/photo-1517694712202-14dd9538aa97?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60" alt="Course" class="w-full h-40 object-cover">
274
+ <div class="absolute top-2 right-2 bg-blue-600 text-white text-xs px-2 py-1 rounded">Active</div>
275
+ </div>
276
+ <div class="p-4">
277
+ <div class="flex justify-between items-start mb-2">
278
+ <h4 class="font-bold text-lg">Web Development Bootcamp</h4>
279
+ <div class="flex items-center text-yellow-400">
280
+ <i class="fas fa-star"></i>
281
+ <span class="ml-1 text-gray-600">4.7</span>
282
+ </div>
283
+ </div>
284
+ <p class="text-gray-600 text-sm mb-4">Master HTML, CSS, JavaScript and modern frameworks.</p>
285
+ <div class="flex justify-between items-center">
286
+ <div class="flex items-center">
287
+ <div class="w-10 h-10 relative">
288
+ <svg class="w-10 h-10" viewBox="0 0 36 36">
289
+ <circle class="text-gray-200" stroke-width="4" stroke="currentColor" fill="none" cx="18" cy="18" r="16"></circle>
290
+ <circle class="text-blue-600" stroke-width="4" stroke-dasharray="65, 100" stroke-linecap="round" stroke="currentColor" fill="none" cx="18" cy="18" r="16"></circle>
291
+ </svg>
292
+ <div class="absolute inset-0 flex items-center justify-center text-xs font-semibold">65%</div>
293
+ </div>
294
+ <span class="ml-2 text-sm text-gray-500">Progress</span>
295
+ </div>
296
+ <button class="bg-blue-600 text-white px-3 py-1 rounded-lg text-sm hover:bg-blue-700">Continue</button>
297
+ </div>
298
+ </div>
299
+ </div>
300
+
301
+ <!-- Course Card 3 -->
302
+ <div class="course-card bg-white rounded-xl shadow-sm overflow-hidden transition duration-300">
303
+ <div class="relative">
304
+ <img src="https://images.unsplash.com/photo-1551434678-e076c223a692?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60" alt="Course" class="w-full h-40 object-cover">
305
+ <div class="absolute top-2 right-2 bg-green-600 text-white text-xs px-2 py-1 rounded">New</div>
306
+ </div>
307
+ <div class="p-4">
308
+ <div class="flex justify-between items-start mb-2">
309
+ <h4 class="font-bold text-lg">Mobile App Development</h4>
310
+ <div class="flex items-center text-yellow-400">
311
+ <i class="fas fa-star"></i>
312
+ <span class="ml-1 text-gray-600">4.9</span>
313
+ </div>
314
+ </div>
315
+ <p class="text-gray-600 text-sm mb-4">Build cross-platform apps with React Native.</p>
316
+ <div class="flex justify-between items-center">
317
+ <div class="flex items-center">
318
+ <div class="w-10 h-10 relative">
319
+ <svg class="w-10 h-10" viewBox="0 0 36 36">
320
+ <circle class="text-gray-200" stroke-width="4" stroke="currentColor" fill="none" cx="18" cy="18" r="16"></circle>
321
+ <circle class="text-blue-600" stroke-width="4" stroke-dasharray="30, 100" stroke-linecap="round" stroke="currentColor" fill="none" cx="18" cy="18" r="16"></circle>
322
+ </svg>
323
+ <div class="absolute inset-0 flex items-center justify-center text-xs font-semibold">30%</div>
324
+ </div>
325
+ <span class="ml-2 text-sm text-gray-500">Progress</span>
326
+ </div>
327
+ <button class="bg-blue-600 text-white px-3 py-1 rounded-lg text-sm hover:bg-blue-700">Continue</button>
328
+ </div>
329
+ </div>
330
+ </div>
331
+ </div>
332
+ </div>
333
+
334
+ <!-- Assignments Section -->
335
+ <div class="mb-6">
336
+ <div class="flex justify-between items-center mb-4">
337
+ <h3 class="text-xl font-semibold text-gray-800">Upcoming Assignments</h3>
338
+ <button class="text-blue-600 hover:text-blue-800 font-medium">View All</button>
339
+ </div>
340
+ <div class="bg-white rounded-xl shadow-sm overflow-hidden">
341
+ <div class="overflow-x-auto">
342
+ <table class="min-w-full divide-y divide-gray-200">
343
+ <thead class="bg-gray-50">
344
+ <tr>
345
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Course</th>
346
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Assignment</th>
347
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Due Date</th>
348
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
349
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Action</th>
350
+ </tr>
351
+ </thead>
352
+ <tbody class="bg-white divide-y divide-gray-200">
353
+ <tr>
354
+ <td class="px-6 py-4 whitespace-nowrap">
355
+ <div class="flex items-center">
356
+ <div class="flex-shrink-0 h-10 w-10">
357
+ <img class="h-10 w-10 rounded-full" src="https://images.unsplash.com/photo-1551288049-bebda4e38f71?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60" alt="">
358
+ </div>
359
+ <div class="ml-4">
360
+ <div class="text-sm font-medium text-gray-900">Data Science</div>
361
+ </div>
362
+ </div>
363
+ </td>
364
+ <td class="px-6 py-4 whitespace-nowrap">
365
+ <div class="text-sm text-gray-900">Final Project Submission</div>
366
+ </td>
367
+ <td class="px-6 py-4 whitespace-nowrap">
368
+ <div class="text-sm text-gray-900">May 15, 2023</div>
369
+ <div class="text-sm text-gray-500">3 days left</div>
370
+ </td>
371
+ <td class="px-6 py-4 whitespace-nowrap">
372
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">
373
+ In Progress
374
+ </span>
375
+ </td>
376
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
377
+ <button class="text-blue-600 hover:text-blue-900">Submit</button>
378
+ </td>
379
+ </tr>
380
+ <tr>
381
+ <td class="px-6 py-4 whitespace-nowrap">
382
+ <div class="flex items-center">
383
+ <div class="flex-shrink-0 h-10 w-10">
384
+ <img class="h-10 w-10 rounded-full" src="https://images.unsplash.com/photo-1517694712202-14dd9538aa97?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60" alt="">
385
+ </div>
386
+ <div class="ml-4">
387
+ <div class="text-sm font-medium text-gray-900">Web Development</div>
388
+ </div>
389
+ </div>
390
+ </td>
391
+ <td class="px-6 py-4 whitespace-nowrap">
392
+ <div class="text-sm text-gray-900">React Component Library</div>
393
+ </td>
394
+ <td class="px-6 py-4 whitespace-nowrap">
395
+ <div class="text-sm text-gray-900">May 18, 2023</div>
396
+ <div class="text-sm text-gray-500">6 days left</div>
397
+ </td>
398
+ <td class="px-6 py-4 whitespace-nowrap">
399
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">
400
+ In Progress
401
+ </span>
402
+ </td>
403
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
404
+ <button class="text-blue-600 hover:text-blue-900">Submit</button>
405
+ </td>
406
+ </tr>
407
+ <tr>
408
+ <td class="px-6 py-4 whitespace-nowrap">
409
+ <div class="flex items-center">
410
+ <div class="flex-shrink-0 h-10 w-10">
411
+ <img class="h-10 w-10 rounded-full" src="https://images.unsplash.com/photo-1551434678-e076c223a692?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60" alt="">
412
+ </div>
413
+ <div class="ml-4">
414
+ <div class="text-sm font-medium text-gray-900">Mobile App Dev</div>
415
+ </div>
416
+ </div>
417
+ </td>
418
+ <td class="px-6 py-4 whitespace-nowrap">
419
+ <div class="text-sm text-gray-900">Navigation Implementation</div>
420
+ </td>
421
+ <td class="px-6 py-4 whitespace-nowrap">
422
+ <div class="text-sm text-gray-900">May 20, 2023</div>
423
+ <div class="text-sm text-gray-500">8 days left</div>
424
+ </td>
425
+ <td class="px-6 py-4 whitespace-nowrap">
426
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-blue-100 text-blue-800">
427
+ Not Started
428
+ </span>
429
+ </td>
430
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
431
+ <button class="text-blue-600 hover:text-blue-900">Start</button>
432
+ </td>
433
+ </tr>
434
+ </tbody>
435
+ </table>
436
+ </div>
437
+ </div>
438
+ </div>
439
+
440
+ <!-- Recent Activity -->
441
+ <div>
442
+ <div class="flex justify-between items-center mb-4">
443
+ <h3 class="text-xl font-semibold text-gray-800">Recent Activity</h3>
444
+ <button class="text-blue-600 hover:text-blue-800 font-medium">View All</button>
445
+ </div>
446
+ <div class="bg-white rounded-xl shadow-sm overflow-hidden p-4">
447
+ <div class="space-y-4">
448
+ <div class="flex items-start">
449
+ <div class="flex-shrink-0">
450
+ <div class="bg-blue-100 p-2 rounded-full">
451
+ <i class="fas fa-check-circle text-blue-600"></i>
452
+ </div>
453
+ </div>
454
+ <div class="ml-3">
455
+ <p class="text-sm font-medium text-gray-900">You completed "JavaScript Basics" lesson</p>
456
+ <p class="text-sm text-gray-500">2 hours ago</p>
457
+ </div>
458
+ </div>
459
+ <div class="flex items-start">
460
+ <div class="flex-shrink-0">
461
+ <div class="bg-green-100 p-2 rounded-full">
462
+ <i class="fas fa-comment text-green-600"></i>
463
+ </div>
464
+ </div>
465
+ <div class="ml-3">
466
+ <p class="text-sm font-medium text-gray-900">New comment on your assignment submission</p>
467
+ <p class="text-sm text-gray-500">5 hours ago</p>
468
+ </div>
469
+ </div>
470
+ <div class="flex items-start">
471
+ <div class="flex-shrink-0">
472
+ <div class="bg-purple-100 p-2 rounded-full">
473
+ <i class="fas fa-book text-purple-600"></i>
474
+ </div>
475
+ </div>
476
+ <div class="ml-3">
477
+ <p class="text-sm font-medium text-gray-900">New course material added to "Data Science"</p>
478
+ <p class="text-sm text-gray-500">1 day ago</p>
479
+ </div>
480
+ </div>
481
+ <div class="flex items-start">
482
+ <div class="flex-shrink-0">
483
+ <div class="bg-yellow-100 p-2 rounded-full">
484
+ <i class="fas fa-certificate text-yellow-600"></i>
485
+ </div>
486
+ </div>
487
+ <div class="ml-3">
488
+ <p class="text-sm font-medium text-gray-900">You earned a certificate for "Web Development"</p>
489
+ <p class="text-sm text-gray-500">2 days ago</p>
490
+ </div>
491
+ </div>
492
+ </div>
493
+ </div>
494
+ </div>
495
+ </main>
496
+ </div>
497
+
498
+ <script>
499
+ // Database connection (PHP would be used in a real implementation)
500
+ async function connectToDatabase() {
501
+ // In a real app, this would be a server-side API call
502
+ console.log("Connecting to database...");
503
+ return {
504
+ query: async (sql, params) => {
505
+ // Mock database response
506
+ if (sql.includes('SELECT * FROM users')) {
507
+ return [
508
+ { id: 1, email: 'test@example.com', password: '$2a$10$N9qo8uLOickgx2ZMRZoMy.MQDvShWRJCi2f6Qx3Fd7JwY7J8nZJdW' } // bcrypt hash of "password123"
509
+ ];
510
+ }
511
+ return [];
512
+ }
513
+ };
514
+ }
515
+
516
+ // Login functionality
517
+ const loginScreen = document.getElementById('loginScreen');
518
+ const mainContent = document.getElementById('mainContent');
519
+ const loginForm = document.getElementById('loginForm');
520
+
521
+ // Check if user is already logged in (from localStorage)
522
+ if(localStorage.getItem('isLoggedIn') === 'true') {
523
+ loginScreen.style.display = 'none';
524
+ mainContent.classList.remove('hidden');
525
+ }
526
+
527
+ loginForm.addEventListener('submit', async function(e) {
528
+ e.preventDefault();
529
+
530
+ const email = document.getElementById('email').value;
531
+ const password = document.getElementById('password').value;
532
+ const rememberMe = document.getElementById('remember').checked;
533
+
534
+ if(email && password) {
535
+ try {
536
+ const db = await connectToDatabase();
537
+ const users = await db.query(
538
+ 'SELECT * FROM users WHERE email = ?',
539
+ [email]
540
+ );
541
+
542
+ if(users.length > 0) {
543
+ // In a real app, use bcrypt.compare() to verify password
544
+ // This is a mock verification for demo purposes
545
+ const isValid = password === 'password123'; // Would be bcrypt.compare(password, user.password)
546
+
547
+ if(isValid) {
548
+ // Store login state
549
+ if(rememberMe) {
550
+ localStorage.setItem('isLoggedIn', 'true');
551
+ } else {
552
+ sessionStorage.setItem('isLoggedIn', 'true');
553
+ }
554
+
555
+ // Hide login and show main content
556
+ loginScreen.style.display = 'none';
557
+ mainContent.classList.remove('hidden');
558
+ return;
559
+ }
560
+ }
561
+
562
+ alert('Invalid email or password');
563
+ } catch (error) {
564
+ console.error('Login error:', error);
565
+ alert('Login failed. Please try again.');
566
+ }
567
+ } else {
568
+ alert('Please enter both email and password');
569
+ }
570
+ });
571
+
572
+ // Logout functionality
573
+ document.querySelector('.sidebar').addEventListener('click', function(e) {
574
+ if(e.target.closest('[data-logout]')) {
575
+ localStorage.removeItem('isLoggedIn');
576
+ sessionStorage.removeItem('isLoggedIn');
577
+ location.reload();
578
+ }
579
+ });
580
+
581
+ // Mobile menu toggle
582
+ document.getElementById('mobileMenuButton').addEventListener('click', function() {
583
+ document.querySelector('.sidebar').classList.toggle('active');
584
+ });
585
+
586
+ // Sample data for charts (would be replaced with real data in production)
587
+ const courseProgress = [
588
+ { name: 'Data Science', progress: 80 },
589
+ { name: 'Web Development', progress: 65 },
590
+ { name: 'Mobile App Dev', progress: 30 }
591
+ ];
592
+
593
+ // Simulate loading data
594
+ document.addEventListener('DOMContentLoaded', function() {
595
+ console.log('LMS system loaded');
596
+
597
+ // In a real app, you would fetch data from an API here
598
+ // fetch('/api/courses')
599
+ // .then(response => response.json())
600
+ // .then(data => {
601
+ // // Process and display data
602
+ // });
603
+ });
604
+ </script>
605
+ <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=TechMeOut100/edutrack100" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
606
+ </html>