karaltan commited on
Commit
2b07af8
·
verified ·
1 Parent(s): 7bdcd71

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +528 -18
index.html CHANGED
@@ -1,19 +1,529 @@
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>Learn Python</title>
7
+ <script src="https://cdn.tailwindcss.com/3.4.16"></script>
8
+ <script>tailwind.config={theme:{extend:{colors:{primary:'#306998',secondary:'#FFD43B'},borderRadius:{'none':'0px','sm':'4px',DEFAULT:'8px','md':'12px','lg':'16px','xl':'20px','2xl':'24px','3xl':'32px','full':'9999px','button':'8px'}}}}</script>
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=Pacifico&display=swap" rel="stylesheet">
12
+ <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
13
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/remixicon/4.6.0/remixicon.min.css">
14
+ <style>
15
+ :where([class^="ri-"])::before { content: "\f3c2"; }
16
+ body {
17
+ font-family: 'Inter', sans-serif;
18
+ width: 375px;
19
+ min-height: 762px;
20
+ margin: 0 auto;
21
+ position: relative;
22
+ background-color: #f9fafb;
23
+ }
24
+ .progress-bar {
25
+ height: 6px;
26
+ border-radius: 3px;
27
+ background-color: #e5e7eb;
28
+ overflow: hidden;
29
+ }
30
+ .progress-bar-fill {
31
+ height: 100%;
32
+ background-color: #306998;
33
+ }
34
+ .search-container {
35
+ position: relative;
36
+ }
37
+ .search-container input {
38
+ padding-left: 40px;
39
+ }
40
+ .search-icon {
41
+ position: absolute;
42
+ left: 12px;
43
+ top: 50%;
44
+ transform: translateY(-50%);
45
+ }
46
+ .filter-chip {
47
+ transition: all 0.2s;
48
+ }
49
+ .filter-chip.active {
50
+ background-color: #306998;
51
+ color: white;
52
+ }
53
+ .topic-card {
54
+ transition: transform 0.2s;
55
+ }
56
+ .topic-card:active {
57
+ transform: scale(0.98);
58
+ }
59
+ .difficulty-badge {
60
+ font-size: 10px;
61
+ padding: 2px 8px;
62
+ border-radius: 10px;
63
+ }
64
+ .difficulty-beginner {
65
+ background-color: #dcfce7;
66
+ color: #166534;
67
+ }
68
+ .difficulty-intermediate {
69
+ background-color: #ffedd5;
70
+ color: #9a3412;
71
+ }
72
+ .difficulty-advanced {
73
+ background-color: #fee2e2;
74
+ color: #991b1b;
75
+ }
76
+ .code-snippet {
77
+ font-family: 'Courier New', monospace;
78
+ font-size: 12px;
79
+ white-space: pre;
80
+ overflow-x: auto;
81
+ }
82
+ .streak-counter {
83
+ position: relative;
84
+ }
85
+ .streak-counter::after {
86
+ content: '';
87
+ position: absolute;
88
+ top: -2px;
89
+ right: -2px;
90
+ width: 8px;
91
+ height: 8px;
92
+ background-color: #ef4444;
93
+ border-radius: 50%;
94
+ }
95
+ .tab-indicator {
96
+ position: absolute;
97
+ bottom: 0;
98
+ height: 3px;
99
+ background-color: #306998;
100
+ transition: all 0.3s;
101
+ }
102
+ .modal {
103
+ display: none;
104
+ position: fixed;
105
+ top: 0;
106
+ left: 0;
107
+ width: 100%;
108
+ height: 100%;
109
+ background-color: rgba(0, 0, 0, 0.5);
110
+ z-index: 50;
111
+ justify-content: center;
112
+ align-items: center;
113
+ }
114
+ .modal-content {
115
+ background-color: white;
116
+ border-radius: 8px;
117
+ width: 90%;
118
+ max-width: 340px;
119
+ max-height: 80%;
120
+ overflow-y: auto;
121
+ }
122
+ </style>
123
+ </head>
124
+ <body>
125
+ <!-- Navbar -->
126
+ <nav class="bg-white shadow-sm fixed top-0 w-full z-10">
127
+ <div class="flex items-center justify-between p-4">
128
+ <div class="flex items-center">
129
+ <div class="w-8 h-8 flex items-center justify-center bg-primary rounded-full mr-2">
130
+ <i class="ri-code-s-slash-line text-white ri-lg"></i>
131
+ </div>
132
+ <h1 class="text-lg font-semibold">Learn Python</h1>
133
+ </div>
134
+ <div class="flex items-center space-x-3">
135
+ <div class="streak-counter w-8 h-8 flex items-center justify-center bg-gray-100 rounded-full cursor-pointer">
136
+ <span class="text-xs font-medium">5</span>
137
+ </div>
138
+ <div class="w-8 h-8 flex items-center justify-center bg-gray-100 rounded-full cursor-pointer" id="menuButton">
139
+ <i class="ri-menu-line"></i>
140
+ </div>
141
+ </div>
142
+ </div>
143
+ <div class="px-4 pb-2">
144
+ <div class="flex items-center justify-between mb-2">
145
+ <span class="text-xs text-gray-500">Course Progress</span>
146
+ <span class="text-xs font-medium">42%</span>
147
+ </div>
148
+ <div class="progress-bar">
149
+ <div class="progress-bar-fill" style="width: 42%"></div>
150
+ </div>
151
+ </div>
152
+ </nav>
153
+
154
+ <!-- Main Content -->
155
+ <main class="pt-24 pb-20 px-4">
156
+ <!-- Search Bar -->
157
+ <div class="search-container mb-5">
158
+ <i class="ri-search-line search-icon text-gray-400"></i>
159
+ <input type="text" placeholder="Search for topics, concepts..." class="w-full py-3 px-4 rounded-lg bg-white border border-gray-200 focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent">
160
+ </div>
161
+
162
+ <!-- Filters -->
163
+ <div class="mb-6 overflow-x-auto">
164
+ <div class="flex space-x-2 pb-1">
165
+ <button class="filter-chip active whitespace-nowrap px-3 py-1.5 rounded-full text-sm font-medium !rounded-button cursor-pointer">All Topics</button>
166
+ <button class="filter-chip whitespace-nowrap px-3 py-1.5 bg-white rounded-full text-sm font-medium !rounded-button cursor-pointer">Beginner</button>
167
+ <button class="filter-chip whitespace-nowrap px-3 py-1.5 bg-white rounded-full text-sm font-medium !rounded-button cursor-pointer">Intermediate</button>
168
+ <button class="filter-chip whitespace-nowrap px-3 py-1.5 bg-white rounded-full text-sm font-medium !rounded-button cursor-pointer">Advanced</button>
169
+ <button class="filter-chip whitespace-nowrap px-3 py-1.5 bg-white rounded-full text-sm font-medium !rounded-button cursor-pointer">Popular</button>
170
+ </div>
171
+ </div>
172
+
173
+ <!-- Continue Learning -->
174
+ <div class="mb-6">
175
+ <h2 class="text-lg font-semibold mb-3">Continue Learning</h2>
176
+ <div class="bg-white p-4 rounded-lg shadow-sm border border-gray-100">
177
+ <div class="flex items-start">
178
+ <div class="w-10 h-10 flex items-center justify-center bg-primary/10 rounded-lg mr-3">
179
+ <i class="ri-loop-line text-primary"></i>
180
+ </div>
181
+ <div class="flex-1">
182
+ <div class="flex items-center justify-between mb-1">
183
+ <h3 class="font-medium">Python Loops</h3>
184
+ <span class="text-xs text-gray-500">65% completed</span>
185
+ </div>
186
+ <div class="progress-bar mb-3">
187
+ <div class="progress-bar-fill" style="width: 65%"></div>
188
+ </div>
189
+ <div class="bg-gray-50 p-2 rounded mb-3 code-snippet">
190
+ <code>for i in range(5):
191
+ print(i) # Outputs: 0, 1, 2, 3, 4</code>
192
+ </div>
193
+ <button class="bg-primary text-white py-2 px-4 rounded-lg text-sm font-medium !rounded-button cursor-pointer">Continue Learning</button>
194
+ </div>
195
+ </div>
196
+ </div>
197
+ </div>
198
+
199
+ <!-- Popular Topics -->
200
+ <div class="mb-6">
201
+ <div class="flex items-center justify-between mb-3">
202
+ <h2 class="text-lg font-semibold">Popular Topics</h2>
203
+ <a href="#" class="text-primary text-sm font-medium cursor-pointer">View All</a>
204
+ </div>
205
+
206
+ <div class="grid grid-cols-2 gap-3">
207
+ <!-- Topic Card 1 -->
208
+ <div class="topic-card bg-white p-3 rounded-lg shadow-sm border border-gray-100 cursor-pointer">
209
+ <div class="flex items-center justify-between mb-2">
210
+ <div class="w-8 h-8 flex items-center justify-center bg-blue-100 rounded-lg">
211
+ <i class="ri-code-box-line text-primary"></i>
212
+ </div>
213
+ <span class="difficulty-badge difficulty-beginner">Beginner</span>
214
+ </div>
215
+ <h3 class="font-medium mb-1">Variables & Data Types</h3>
216
+ <p class="text-xs text-gray-500 mb-2">Learn about Python's basic data types and how to use variables.</p>
217
+ <div class="flex items-center justify-between">
218
+ <span class="text-xs text-gray-500">15 min</span>
219
+ <div class="w-6 h-6 flex items-center justify-center rounded-full bg-gray-100">
220
+ <i class="ri-bookmark-line text-gray-500 ri-sm"></i>
221
+ </div>
222
+ </div>
223
+ </div>
224
+
225
+ <!-- Topic Card 2 -->
226
+ <div class="topic-card bg-white p-3 rounded-lg shadow-sm border border-gray-100 cursor-pointer">
227
+ <div class="flex items-center justify-between mb-2">
228
+ <div class="w-8 h-8 flex items-center justify-center bg-blue-100 rounded-lg">
229
+ <i class="ri-function-line text-primary"></i>
230
+ </div>
231
+ <span class="difficulty-badge difficulty-intermediate">Intermediate</span>
232
+ </div>
233
+ <h3 class="font-medium mb-1">Functions</h3>
234
+ <p class="text-xs text-gray-500 mb-2">Create reusable code blocks with Python functions.</p>
235
+ <div class="flex items-center justify-between">
236
+ <span class="text-xs text-gray-500">25 min</span>
237
+ <div class="w-6 h-6 flex items-center justify-center rounded-full bg-gray-100">
238
+ <i class="ri-bookmark-line text-gray-500 ri-sm"></i>
239
+ </div>
240
+ </div>
241
+ </div>
242
+ </div>
243
+ </div>
244
+
245
+ <!-- Learning Paths -->
246
+ <div class="mb-6">
247
+ <h2 class="text-lg font-semibold mb-3">Learning Paths</h2>
248
+
249
+ <!-- Path Card 1 -->
250
+ <div class="bg-white p-4 rounded-lg shadow-sm border border-gray-100 mb-3 cursor-pointer">
251
+ <div class="flex items-center mb-2">
252
+ <div class="w-10 h-10 flex items-center justify-center bg-primary/10 rounded-lg mr-3">
253
+ <i class="ri-terminal-box-line text-primary"></i>
254
+ </div>
255
+ <div>
256
+ <h3 class="font-medium">Python Fundamentals</h3>
257
+ <span class="text-xs text-gray-500">8 topics • 2.5 hours</span>
258
+ </div>
259
+ </div>
260
+ <p class="text-sm text-gray-600 mb-3">Master the core concepts of Python programming from variables to functions.</p>
261
+ <div class="flex items-center">
262
+ <div class="w-6 h-6 flex items-center justify-center bg-green-100 rounded-full mr-2">
263
+ <i class="ri-user-line text-green-600 ri-sm"></i>
264
+ </div>
265
+ <span class="text-xs text-gray-500">2,458 students enrolled</span>
266
+ </div>
267
+ </div>
268
+
269
+ <!-- Path Card 2 -->
270
+ <div class="bg-white p-4 rounded-lg shadow-sm border border-gray-100 cursor-pointer">
271
+ <div class="flex items-center mb-2">
272
+ <div class="w-10 h-10 flex items-center justify-center bg-primary/10 rounded-lg mr-3">
273
+ <i class="ri-database-2-line text-primary"></i>
274
+ </div>
275
+ <div>
276
+ <h3 class="font-medium">Data Science with Python</h3>
277
+ <span class="text-xs text-gray-500">12 topics • 4 hours</span>
278
+ </div>
279
+ </div>
280
+ <p class="text-sm text-gray-600 mb-3">Learn how to analyze and visualize data using Python libraries like Pandas and Matplotlib.</p>
281
+ <div class="flex items-center">
282
+ <div class="w-6 h-6 flex items-center justify-center bg-green-100 rounded-full mr-2">
283
+ <i class="ri-user-line text-green-600 ri-sm"></i>
284
+ </div>
285
+ <span class="text-xs text-gray-500">1,892 students enrolled</span>
286
+ </div>
287
+ </div>
288
+ </div>
289
+
290
+ <!-- Daily Challenge -->
291
+ <div class="mb-6">
292
+ <h2 class="text-lg font-semibold mb-3">Daily Challenge</h2>
293
+ <div class="bg-gradient-to-r from-primary/10 to-secondary/10 p-4 rounded-lg border border-gray-100">
294
+ <div class="flex items-center justify-between mb-3">
295
+ <h3 class="font-medium">List Comprehension Challenge</h3>
296
+ <span class="text-xs font-medium px-2 py-1 bg-white rounded-full">April 18</span>
297
+ </div>
298
+ <p class="text-sm text-gray-600 mb-3">Create a list of squares for numbers from 1 to 10 using list comprehension.</p>
299
+ <div class="bg-white p-2 rounded mb-3 code-snippet">
300
+ <code># Your solution here
301
+ squares = [x**2 for x in range(1, 11)]
302
+ print(squares)</code>
303
+ </div>
304
+ <button class="bg-primary text-white py-2 px-4 rounded-lg text-sm font-medium !rounded-button cursor-pointer">Solve Challenge</button>
305
+ </div>
306
+ </div>
307
+
308
+ <!-- Community Highlights -->
309
+ <div class="mb-6">
310
+ <h2 class="text-lg font-semibold mb-3">Community Highlights</h2>
311
+
312
+ <div class="bg-white p-4 rounded-lg shadow-sm border border-gray-100 mb-3">
313
+ <div class="flex items-start">
314
+ <img src="https://readdy.ai/api/search-image?query=professional%20headshot%20of%20a%20young%20male%20college%20student%20with%20glasses%2C%20smiling%2C%20clean%20background&width=40&height=40&seq=1&orientation=squarish" alt="Profile" class="w-10 h-10 rounded-full object-cover mr-3">
315
+ <div>
316
+ <div class="flex items-center">
317
+ <h3 class="font-medium mr-2">Michael Chen</h3>
318
+ <span class="text-xs text-gray-500">2 hours ago</span>
319
+ </div>
320
+ <p class="text-sm text-gray-600 mt-1 mb-2">Just completed my first machine learning project using Python! The scikit-learn library is amazing for beginners.</p>
321
+ <div class="flex items-center space-x-4">
322
+ <div class="flex items-center cursor-pointer">
323
+ <i class="ri-heart-line text-gray-400 mr-1"></i>
324
+ <span class="text-xs text-gray-500">42</span>
325
+ </div>
326
+ <div class="flex items-center cursor-pointer">
327
+ <i class="ri-chat-1-line text-gray-400 mr-1"></i>
328
+ <span class="text-xs text-gray-500">8</span>
329
+ </div>
330
+ </div>
331
+ </div>
332
+ </div>
333
+ </div>
334
+
335
+ <div class="bg-white p-4 rounded-lg shadow-sm border border-gray-100">
336
+ <div class="flex items-start">
337
+ <img src="https://readdy.ai/api/search-image?query=professional%20headshot%20of%20a%20young%20female%20college%20student%20with%20long%20hair%2C%20smiling%2C%20clean%20background&width=40&height=40&seq=2&orientation=squarish" alt="Profile" class="w-10 h-10 rounded-full object-cover mr-3">
338
+ <div>
339
+ <div class="flex items-center">
340
+ <h3 class="font-medium mr-2">Sophia Rodriguez</h3>
341
+ <span class="text-xs text-gray-500">Yesterday</span>
342
+ </div>
343
+ <p class="text-sm text-gray-600 mt-1 mb-2">Created a simple web scraper with BeautifulSoup. Python makes it so easy to extract data from websites!</p>
344
+ <div class="flex items-center space-x-4">
345
+ <div class="flex items-center cursor-pointer">
346
+ <i class="ri-heart-line text-gray-400 mr-1"></i>
347
+ <span class="text-xs text-gray-500">36</span>
348
+ </div>
349
+ <div class="flex items-center cursor-pointer">
350
+ <i class="ri-chat-1-line text-gray-400 mr-1"></i>
351
+ <span class="text-xs text-gray-500">5</span>
352
+ </div>
353
+ </div>
354
+ </div>
355
+ </div>
356
+ </div>
357
+ </div>
358
+ </main>
359
+
360
+ <!-- Floating Action Button -->
361
+ <div class="fixed bottom-20 right-4 z-10">
362
+ <button class="w-12 h-12 bg-primary rounded-full shadow-lg flex items-center justify-center cursor-pointer" id="codeEditorBtn">
363
+ <i class="ri-code-s-slash-fill text-white ri-lg"></i>
364
+ </button>
365
+ </div>
366
+
367
+ <!-- Tab Bar -->
368
+ <div class="fixed bottom-0 w-full bg-white border-t border-gray-200 z-10">
369
+ <div class="grid grid-cols-4 h-16">
370
+ <div class="flex flex-col items-center justify-center cursor-pointer tab-item active">
371
+ <div class="w-6 h-6 flex items-center justify-center">
372
+ <i class="ri-home-5-fill text-primary"></i>
373
+ </div>
374
+ <span class="text-xs mt-1 text-primary font-medium">Home</span>
375
+ </div>
376
+ <div class="flex flex-col items-center justify-center cursor-pointer tab-item">
377
+ <div class="w-6 h-6 flex items-center justify-center">
378
+ <i class="ri-file-list-3-line text-gray-500"></i>
379
+ </div>
380
+ <span class="text-xs mt-1 text-gray-500">Practice</span>
381
+ </div>
382
+ <div class="flex flex-col items-center justify-center cursor-pointer tab-item">
383
+ <div class="w-6 h-6 flex items-center justify-center">
384
+ <i class="ri-bookmark-line text-gray-500"></i>
385
+ </div>
386
+ <span class="text-xs mt-1 text-gray-500">Saved</span>
387
+ </div>
388
+ <div class="flex flex-col items-center justify-center cursor-pointer tab-item">
389
+ <div class="w-6 h-6 flex items-center justify-center">
390
+ <i class="ri-user-line text-gray-500"></i>
391
+ </div>
392
+ <span class="text-xs mt-1 text-gray-500">Profile</span>
393
+ </div>
394
+ </div>
395
+ </div>
396
+
397
+ <!-- Menu Modal -->
398
+ <div class="modal" id="menuModal">
399
+ <div class="modal-content p-4">
400
+ <div class="flex items-center justify-between mb-4">
401
+ <h3 class="text-lg font-semibold">Menu</h3>
402
+ <div class="w-8 h-8 flex items-center justify-center rounded-full bg-gray-100 cursor-pointer" id="closeMenuBtn">
403
+ <i class="ri-close-line"></i>
404
+ </div>
405
+ </div>
406
+ <ul class="space-y-3">
407
+ <li class="flex items-center p-2 rounded-lg hover:bg-gray-100 cursor-pointer">
408
+ <div class="w-8 h-8 flex items-center justify-center mr-3">
409
+ <i class="ri-settings-3-line text-gray-600"></i>
410
+ </div>
411
+ <span>Settings</span>
412
+ </li>
413
+ <li class="flex items-center p-2 rounded-lg hover:bg-gray-100 cursor-pointer">
414
+ <div class="w-8 h-8 flex items-center justify-center mr-3">
415
+ <i class="ri-notification-3-line text-gray-600"></i>
416
+ </div>
417
+ <span>Notifications</span>
418
+ </li>
419
+ <li class="flex items-center p-2 rounded-lg hover:bg-gray-100 cursor-pointer">
420
+ <div class="w-8 h-8 flex items-center justify-center mr-3">
421
+ <i class="ri-question-line text-gray-600"></i>
422
+ </div>
423
+ <span>Help & Support</span>
424
+ </li>
425
+ <li class="flex items-center p-2 rounded-lg hover:bg-gray-100 cursor-pointer">
426
+ <div class="w-8 h-8 flex items-center justify-center mr-3">
427
+ <i class="ri-feedback-line text-gray-600"></i>
428
+ </div>
429
+ <span>Send Feedback</span>
430
+ </li>
431
+ <li class="flex items-center p-2 rounded-lg hover:bg-gray-100 cursor-pointer">
432
+ <div class="w-8 h-8 flex items-center justify-center mr-3">
433
+ <i class="ri-information-line text-gray-600"></i>
434
+ </div>
435
+ <span>About</span>
436
+ </li>
437
+ </ul>
438
+ </div>
439
+ </div>
440
+ <!-- Code Editor Modal -->
441
+ <div class="modal" id="codeEditorModal">
442
+ <div class="modal-content p-4">
443
+ <div class="flex items-center justify-between mb-4">
444
+ <h3 class="text-lg font-semibold">Python Code Editor</h3>
445
+ <div class="w-8 h-8 flex items-center justify-center rounded-full bg-gray-100 cursor-pointer" id="closeEditorBtn">
446
+ <i class="ri-close-line"></i>
447
+ </div>
448
+ </div>
449
+ <div class="bg-gray-900 p-3 rounded-lg mb-3">
450
+ <textarea class="w-full h-40 bg-gray-900 text-green-400 font-mono text-sm resize-none focus:outline-none" placeholder="# Write your Python code here
451
+ print('Hello, World!')"></textarea>
452
+ </div>
453
+ <div class="flex space-x-2">
454
+ <button class="flex-1 bg-primary text-white py-2 px-4 rounded-lg text-sm font-medium !rounded-button cursor-pointer">Run Code</button>
455
+ <button class="flex-1 bg-white border border-gray-300 py-2 px-4 rounded-lg text-sm font-medium !rounded-button cursor-pointer">Save</button>
456
+ </div>
457
+ </div>
458
+ </div>
459
+
460
+ <script>
461
+ document.addEventListener('DOMContentLoaded', function() {
462
+ // Filter chips
463
+ const filterChips = document.querySelectorAll('.filter-chip');
464
+ filterChips.forEach(chip => {
465
+ chip.addEventListener('click', function() {
466
+ filterChips.forEach(c => c.classList.remove('active'));
467
+ this.classList.add('active');
468
+ });
469
+ });
470
+
471
+ // Menu Modal
472
+ const menuButton = document.getElementById('menuButton');
473
+ const menuModal = document.getElementById('menuModal');
474
+ const closeMenuBtn = document.getElementById('closeMenuBtn');
475
+
476
+ menuButton.addEventListener('click', function() {
477
+ menuModal.style.display = 'flex';
478
+ });
479
+
480
+ closeMenuBtn.addEventListener('click', function() {
481
+ menuModal.style.display = 'none';
482
+ });
483
+
484
+ // Code Editor Modal
485
+ const codeEditorBtn = document.getElementById('codeEditorBtn');
486
+ const codeEditorModal = document.getElementById('codeEditorModal');
487
+ const closeEditorBtn = document.getElementById('closeEditorBtn');
488
+ codeEditorBtn.addEventListener('click', function() {
489
+ codeEditorModal.style.display = 'flex';
490
+ });
491
+ closeEditorBtn.addEventListener('click', function() {
492
+ codeEditorModal.style.display = 'none';
493
+ });
494
+ // Close modals when clicking outside
495
+ window.addEventListener('click', function(event) {
496
+ if (event.target === menuModal) {
497
+ menuModal.style.display = 'none';
498
+ }
499
+ if (event.target === codeEditorModal) {
500
+ codeEditorModal.style.display = 'none';
501
+ }
502
+ });
503
+
504
+ // Tab navigation
505
+ const tabItems = document.querySelectorAll('.tab-item');
506
+ tabItems.forEach(tab => {
507
+ tab.addEventListener('click', function() {
508
+ tabItems.forEach(t => {
509
+ const icon = t.querySelector('i');
510
+ const text = t.querySelector('span');
511
+
512
+ if (t === this) {
513
+ icon.classList.remove('text-gray-500');
514
+ icon.classList.add('text-primary');
515
+ text.classList.remove('text-gray-500');
516
+ text.classList.add('text-primary', 'font-medium');
517
+ } else {
518
+ icon.classList.remove('text-primary');
519
+ icon.classList.add('text-gray-500');
520
+ text.classList.remove('text-primary', 'font-medium');
521
+ text.classList.add('text-gray-500');
522
+ }
523
+ });
524
+ });
525
+ });
526
+ });
527
+ </script>
528
+ </body>
529
  </html>