File size: 33,587 Bytes
aaf18e7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>DeepMind - Master Any Topic</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        .gradient-bg {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        .card-hover {
            transition: all 0.3s ease;
        }
        .card-hover:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        .progress-ring__circle {
            transition: stroke-dashoffset 0.35s;
            transform: rotate(-90deg);
            transform-origin: 50% 50%;
        }
        .flip-card {
            perspective: 1000px;
        }
        .flip-card-inner {
            transition: transform 0.6s;
            transform-style: preserve-3d;
        }
        .flip-card.flipped .flip-card-inner {
            transform: rotateY(180deg);
        }
        .flip-card-front, .flip-card-back {
            backface-visibility: hidden;
            position: absolute;
            width: 100%;
            height: 100%;
        }
        .flip-card-back {
            transform: rotateY(180deg);
        }
        .concept-map {
            min-height: 400px;
            background-color: #f8fafc;
            border-radius: 0.5rem;
        }
        .node {
            position: absolute;
            padding: 0.5rem 1rem;
            background-color: white;
            border-radius: 0.5rem;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            cursor: move;
            user-select: none;
            max-width: 200px;
            word-wrap: break-word;
        }
        .connector {
            position: absolute;
            pointer-events: none;
        }
    </style>
</head>
<body class="bg-gray-50 font-sans">
    <div class="min-h-screen">
        <!-- Header -->
        <header class="gradient-bg text-white shadow-lg">
            <div class="container mx-auto px-4 py-6">
                <div class="flex justify-between items-center">
                    <div class="flex items-center space-x-2">
                        <i class="fas fa-brain text-3xl"></i>
                        <h1 class="text-2xl font-bold">DeepMind</h1>
                    </div>
                    <nav>
                        <ul class="flex space-x-6">
                            <li><a href="#" class="hover:text-gray-200 transition">Dashboard</a></li>
                            <li><a href="#" class="hover:text-gray-200 transition">Topics</a></li>
                            <li><a href="#" class="hover:text-gray-200 transition">Progress</a></li>
                            <li><a href="#" class="hover:text-gray-200 transition">Resources</a></li>
                        </ul>
                    </nav>
                    <div class="flex items-center space-x-4">
                        <button class="bg-white text-indigo-700 px-4 py-2 rounded-full font-medium hover:bg-gray-100 transition">
                            <i class="fas fa-user mr-2"></i>Profile
                        </button>
                    </div>
                </div>
            </div>
        </header>

        <!-- Main Content -->
        <main class="container mx-auto px-4 py-8">
            <!-- Welcome Section -->
            <section class="mb-12">
                <div class="bg-white rounded-xl shadow-md p-6">
                    <div class="flex flex-col md:flex-row items-center">
                        <div class="md:w-2/3 mb-6 md:mb-0">
                            <h2 class="text-3xl font-bold text-gray-800 mb-4">Master any topic with science-backed techniques</h2>
                            <p class="text-gray-600 mb-6">DeepMind combines spaced repetition, active recall, and concept mapping to help you achieve deep understanding and long-term retention of any subject.</p>
                            <div class="flex flex-wrap gap-4">
                                <button id="newTopicBtn" class="bg-indigo-600 text-white px-6 py-3 rounded-lg font-medium hover:bg-indigo-700 transition flex items-center">
                                    <i class="fas fa-plus mr-2"></i> New Topic
                                </button>
                                <button class="border border-indigo-600 text-indigo-600 px-6 py-3 rounded-lg font-medium hover:bg-indigo-50 transition flex items-center">
                                    <i class="fas fa-book-open mr-2"></i> Browse Topics
                                </button>
                            </div>
                        </div>
                        <div class="md:w-1/3 flex justify-center">
                            <div class="relative w-64 h-64">
                                <svg class="w-full h-full" viewBox="0 0 100 100">
                                    <circle cx="50" cy="50" r="45" fill="none" stroke="#e2e8f0" stroke-width="8"/>
                                    <circle id="progress-ring" class="progress-ring__circle" cx="50" cy="50" r="45" fill="none" stroke="#4f46e5" stroke-width="8" stroke-dasharray="283" stroke-dashoffset="70.75"/>
                                    <text x="50" y="50" text-anchor="middle" dominant-baseline="middle" font-size="12" fill="#4f46e5" font-weight="bold">75% Mastery</text>
                                </svg>
                            </div>
                        </div>
                    </div>
                </div>
            </section>

            <!-- New Topic Modal -->
            <div id="topicModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
                <div class="bg-white rounded-xl shadow-2xl p-6 w-full max-w-2xl">
                    <div class="flex justify-between items-center mb-6">
                        <h3 class="text-2xl font-bold text-gray-800">Create New Learning Topic</h3>
                        <button id="closeModalBtn" class="text-gray-500 hover:text-gray-700">
                            <i class="fas fa-times text-xl"></i>
                        </button>
                    </div>
                    <form id="topicForm">
                        <div class="mb-6">
                            <label for="topicName" class="block text-gray-700 font-medium mb-2">Topic Name</label>
                            <input type="text" id="topicName" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500" placeholder="e.g. Quantum Mechanics, French Revolution, Machine Learning">
                        </div>
                        <div class="mb-6">
                            <label for="topicDescription" class="block text-gray-700 font-medium mb-2">Description</label>
                            <textarea id="topicDescription" rows="3" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500" placeholder="Brief description of what you want to learn"></textarea>
                        </div>
                        <div class="mb-6">
                            <label class="block text-gray-700 font-medium mb-2">Learning Method</label>
                            <div class="grid grid-cols-1 md:grid-cols-3 gap-4">
                                <div class="flex items-center">
                                    <input id="method-spaced" name="learningMethod" type="radio" value="spaced" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500" checked>
                                    <label for="method-spaced" class="ml-2 block text-gray-700">
                                        <span class="font-medium">Spaced Repetition</span>
                                        <span class="block text-sm text-gray-500">Optimize review timing</span>
                                    </label>
                                </div>
                                <div class="flex items-center">
                                    <input id="method-active" name="learningMethod" type="radio" value="active" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500">
                                    <label for="method-active" class="ml-2 block text-gray-700">
                                        <span class="font-medium">Active Recall</span>
                                        <span class="block text-sm text-gray-500">Test your memory</span>
                                    </label>
                                </div>
                                <div class="flex items-center">
                                    <input id="method-concept" name="learningMethod" type="radio" value="concept" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500">
                                    <label for="method-concept" class="ml-2 block text-gray-700">
                                        <span class="font-medium">Concept Mapping</span>
                                        <span class="block text-sm text-gray-500">Visualize relationships</span>
                                    </label>
                                </div>
                            </div>
                        </div>
                        <div class="flex justify-end space-x-4">
                            <button type="button" id="cancelTopicBtn" class="px-4 py-2 border border-gray-300 rounded-lg font-medium text-gray-700 hover:bg-gray-50">Cancel</button>
                            <button type="submit" class="bg-indigo-600 text-white px-6 py-2 rounded-lg font-medium hover:bg-indigo-700">Create Topic</button>
                        </div>
                    </form>
                </div>
            </div>

            <!-- Learning Techniques Section -->
            <section class="mb-12">
                <h2 class="text-2xl font-bold text-gray-800 mb-6">Learning Techniques</h2>
                <div class="grid grid-cols-1 md:grid-cols-3 gap-6">
                    <!-- Spaced Repetition Card -->
                    <div class="bg-white rounded-xl shadow-md overflow-hidden card-hover">
                        <div class="gradient-bg p-4 text-white">
                            <div class="flex items-center">
                                <i class="fas fa-calendar-alt text-2xl mr-3"></i>
                                <h3 class="text-xl font-bold">Spaced Repetition</h3>
                            </div>
                        </div>
                        <div class="p-6">
                            <p class="text-gray-600 mb-4">Review material at increasing intervals to combat the forgetting curve and improve long-term retention.</p>
                            <div class="flex justify-between items-center">
                                <span class="text-sm text-gray-500">Next review in: 2 days</span>
                                <button class="text-indigo-600 hover:text-indigo-800 font-medium flex items-center">
                                    Practice <i class="fas fa-arrow-right ml-2"></i>
                                </button>
                            </div>
                        </div>
                    </div>

                    <!-- Active Recall Card -->
                    <div class="bg-white rounded-xl shadow-md overflow-hidden card-hover">
                        <div class="gradient-bg p-4 text-white">
                            <div class="flex items-center">
                                <i class="fas fa-lightbulb text-2xl mr-3"></i>
                                <h3 class="text-xl font-bold">Active Recall</h3>
                            </div>
                        </div>
                        <div class="p-6">
                            <p class="text-gray-600 mb-4">Test yourself without looking at the material to strengthen memory pathways and identify knowledge gaps.</p>
                            <div class="flex justify-between items-center">
                                <span class="text-sm text-gray-500">15 cards due</span>
                                <button class="text-indigo-600 hover:text-indigo-800 font-medium flex items-center">
                                    Practice <i class="fas fa-arrow-right ml-2"></i>
                                </button>
                            </div>
                        </div>
                    </div>

                    <!-- Concept Mapping Card -->
                    <div class="bg-white rounded-xl shadow-md overflow-hidden card-hover">
                        <div class="gradient-bg p-4 text-white">
                            <div class="flex items-center">
                                <i class="fas fa-project-diagram text-2xl mr-3"></i>
                                <h3 class="text-xl font-bold">Concept Mapping</h3>
                            </div>
                        </div>
                        <div class="p-6">
                            <p class="text-gray-600 mb-4">Visualize relationships between concepts to build a deeper understanding of how ideas connect.</p>
                            <div class="flex justify-between items-center">
                                <span class="text-sm text-gray-500">3 maps created</span>
                                <button class="text-indigo-600 hover:text-indigo-800 font-medium flex items-center">
                                    Practice <i class="fas fa-arrow-right ml-2"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </section>

            <!-- Flashcard Practice Section -->
            <section class="mb-12">
                <h2 class="text-2xl font-bold text-gray-800 mb-6">Today's Practice</h2>
                <div class="flex justify-center">
                    <div class="w-full max-w-2xl">
                        <div id="flashcard" class="flip-card h-64 w-full cursor-pointer">
                            <div class="flip-card-inner h-full w-full relative">
                                <div class="flip-card-front bg-white rounded-xl shadow-lg p-8 flex flex-col justify-center items-center border-2 border-indigo-100">
                                    <div class="text-center">
                                        <span class="text-sm text-indigo-600 font-medium mb-2">Question</span>
                                        <h3 class="text-xl font-bold text-gray-800 mb-4">What is the difference between classical conditioning and operant conditioning?</h3>
                                        <p class="text-gray-500">Click to reveal answer</p>
                                    </div>
                                </div>
                                <div class="flip-card-back bg-indigo-50 rounded-xl shadow-lg p-8 flex flex-col justify-center items-center border-2 border-indigo-200">
                                    <div class="text-center">
                                        <span class="text-sm text-indigo-600 font-medium mb-2">Answer</span>
                                        <p class="text-gray-800 mb-4">Classical conditioning involves associating an involuntary response with a stimulus, while operant conditioning is about associating a voluntary behavior with a consequence.</p>
                                        <div class="flex justify-center space-x-4 mt-6">
                                            <button class="difficulty-btn bg-red-100 text-red-600 px-4 py-2 rounded-lg font-medium hover:bg-red-200" data-difficulty="hard">
                                                <i class="fas fa-times-circle mr-1"></i> Hard
                                            </button>
                                            <button class="difficulty-btn bg-yellow-100 text-yellow-600 px-4 py-2 rounded-lg font-medium hover:bg-yellow-200" data-difficulty="medium">
                                                <i class="fas fa-check-circle mr-1"></i> Medium
                                            </button>
                                            <button class="difficulty-btn bg-green-100 text-green-600 px-4 py-2 rounded-lg font-medium hover:bg-green-200" data-difficulty="easy">
                                                <i class="fas fa-thumbs-up mr-1"></i> Easy
                                            </button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="flex justify-between items-center mt-6">
                            <button id="prevCardBtn" class="text-gray-500 hover:text-gray-700">
                                <i class="fas fa-chevron-left mr-2"></i> Previous
                            </button>
                            <span class="text-gray-600">Card 3 of 15</span>
                            <button id="nextCardBtn" class="text-gray-500 hover:text-gray-700">
                                Next <i class="fas fa-chevron-right ml-2"></i>
                            </button>
                        </div>
                    </div>
                </div>
            </section>

            <!-- Concept Mapping Section -->
            <section class="mb-12">
                <h2 class="text-2xl font-bold text-gray-800 mb-6">Concept Mapping</h2>
                <div class="bg-white rounded-xl shadow-md p-6">
                    <div class="flex justify-between items-center mb-6">
                        <h3 class="text-lg font-medium text-gray-800">Cognitive Psychology Concepts</h3>
                        <div class="flex space-x-3">
                            <button class="bg-indigo-100 text-indigo-700 px-3 py-1 rounded-lg text-sm font-medium hover:bg-indigo-200">
                                <i class="fas fa-plus mr-1"></i> Add Node
                            </button>
                            <button class="bg-white border border-gray-300 text-gray-700 px-3 py-1 rounded-lg text-sm font-medium hover:bg-gray-50">
                                <i class="fas fa-save mr-1"></i> Save
                            </button>
                        </div>
                    </div>
                    <div class="concept-map relative" id="conceptMap">
                        <!-- Nodes will be added here dynamically -->
                        <div class="node" style="top: 50px; left: 100px;" data-id="1">Memory</div>
                        <div class="node" style="top: 50px; left: 300px;" data-id="2">Attention</div>
                        <div class="node" style="top: 150px; left: 200px;" data-id="3">Learning</div>
                        <div class="node" style="top: 250px; left: 100px;" data-id="4">Recall</div>
                        <div class="node" style="top: 250px; left: 300px;" data-id="5">Perception</div>
                        
                        <!-- Connectors will be added here dynamically -->
                        <svg class="connector" width="100%" height="100%" style="position: absolute; top: 0; left: 0; z-index: 0;">
                            <line x1="170" y1="70" x2="230" y2="70" stroke="#4f46e5" stroke-width="2" marker-end="url(#arrowhead)"/>
                            <line x1="200" y1="100" x2="200" y2="130" stroke="#4f46e5" stroke-width="2" marker-end="url(#arrowhead)"/>
                            <line x1="120" y1="170" x2="180" y2="130" stroke="#4f46e5" stroke-width="2" marker-end="url(#arrowhead)"/>
                            <line x1="220" y1="130" x2="280" y2="170" stroke="#4f46e5" stroke-width="2" marker-end="url(#arrowhead)"/>
                        </svg>
                        <defs>
                            <marker id="arrowhead" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto">
                                <polygon points="0 0, 10 3.5, 0 7" fill="#4f46e5"/>
                            </marker>
                        </defs>
                    </div>
                </div>
            </section>

            <!-- Progress Tracking Section -->
            <section>
                <h2 class="text-2xl font-bold text-gray-800 mb-6">Your Learning Progress</h2>
                <div class="bg-white rounded-xl shadow-md p-6">
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-8">
                        <div>
                            <h3 class="text-lg font-medium text-gray-800 mb-4">Mastery Over Time</h3>
                            <div class="h-64">
                                <canvas id="masteryChart"></canvas>
                            </div>
                        </div>
                        <div>
                            <h3 class="text-lg font-medium text-gray-800 mb-4">Recent Activity</h3>
                            <div class="space-y-4">
                                <div class="flex items-start">
                                    <div class="bg-indigo-100 p-2 rounded-full mr-4">
                                        <i class="fas fa-check-circle text-indigo-600"></i>
                                    </div>
                                    <div>
                                        <p class="text-gray-800 font-medium">Completed 15 flashcards</p>
                                        <p class="text-sm text-gray-500">Psychology - 2 hours ago</p>
                                    </div>
                                </div>
                                <div class="flex items-start">
                                    <div class="bg-blue-100 p-2 rounded-full mr-4">
                                        <i class="fas fa-book text-blue-600"></i>
                                    </div>
                                    <div>
                                        <p class="text-gray-800 font-medium">Added new resources</p>
                                        <p class="text-sm text-gray-500">Machine Learning - 1 day ago</p>
                                    </div>
                                </div>
                                <div class="flex items-start">
                                    <div class="bg-green-100 p-2 rounded-full mr-4">
                                        <i class="fas fa-chart-line text-green-600"></i>
                                    </div>
                                    <div>
                                        <p class="text-gray-800 font-medium">Mastery increased to 75%</p>
                                        <p class="text-sm text-gray-500">Cognitive Science - 2 days ago</p>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </section>
        </main>

        <!-- Footer -->
        <footer class="bg-gray-100 border-t border-gray-200 mt-12">
            <div class="container mx-auto px-4 py-8">
                <div class="grid grid-cols-1 md:grid-cols-4 gap-8">
                    <div>
                        <h3 class="text-lg font-bold text-gray-800 mb-4">DeepMind</h3>
                        <p class="text-gray-600">Master any topic with science-backed learning techniques for deep understanding and long-term retention.</p>
                    </div>
                    <div>
                        <h4 class="text-gray-800 font-medium mb-4">Features</h4>
                        <ul class="space-y-2">
                            <li><a href="#" class="text-gray-600 hover:text-indigo-600">Spaced Repetition</a></li>
                            <li><a href="#" class="text-gray-600 hover:text-indigo-600">Active Recall</a></li>
                            <li><a href="#" class="text-gray-600 hover:text-indigo-600">Concept Mapping</a></li>
                            <li><a href="#" class="text-gray-600 hover:text-indigo-600">Progress Tracking</a></li>
                        </ul>
                    </div>
                    <div>
                        <h4 class="text-gray-800 font-medium mb-4">Resources</h4>
                        <ul class="space-y-2">
                            <li><a href="#" class="text-gray-600 hover:text-indigo-600">Blog</a></li>
                            <li><a href="#" class="text-gray-600 hover:text-indigo-600">Research</a></li>
                            <li><a href="#" class="text-gray-600 hover:text-indigo-600">Learning Guides</a></li>
                            <li><a href="#" class="text-gray-600 hover:text-indigo-600">FAQ</a></li>
                        </ul>
                    </div>
                    <div>
                        <h4 class="text-gray-800 font-medium mb-4">Connect</h4>
                        <div class="flex space-x-4">
                            <a href="#" class="text-gray-600 hover:text-indigo-600"><i class="fab fa-twitter text-xl"></i></a>
                            <a href="#" class="text-gray-600 hover:text-indigo-600"><i class="fab fa-facebook text-xl"></i></a>
                            <a href="#" class="text-gray-600 hover:text-indigo-600"><i class="fab fa-instagram text-xl"></i></a>
                            <a href="#" class="text-gray-600 hover:text-indigo-600"><i class="fab fa-linkedin text-xl"></i></a>
                        </div>
                    </div>
                </div>
                <div class="border-t border-gray-200 mt-8 pt-8 text-center text-gray-500">
                    <p>&copy; 2023 DeepMind. All rights reserved.</p>
                </div>
            </div>
        </footer>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
    <script>
        // DOM Elements
        const newTopicBtn = document.getElementById('newTopicBtn');
        const topicModal = document.getElementById('topicModal');
        const closeModalBtn = document.getElementById('closeModalBtn');
        const cancelTopicBtn = document.getElementById('cancelTopicBtn');
        const topicForm = document.getElementById('topicForm');
        const flashcard = document.getElementById('flashcard');
        const prevCardBtn = document.getElementById('prevCardBtn');
        const nextCardBtn = document.getElementById('nextCardBtn');
        const difficultyBtns = document.querySelectorAll('.difficulty-btn');
        const conceptMap = document.getElementById('conceptMap');

        // Modal Handling
        newTopicBtn.addEventListener('click', () => {
            topicModal.classList.remove('hidden');
        });

        closeModalBtn.addEventListener('click', () => {
            topicModal.classList.add('hidden');
        });

        cancelTopicBtn.addEventListener('click', () => {
            topicModal.classList.add('hidden');
        });

        topicForm.addEventListener('submit', (e) => {
            e.preventDefault();
            const topicName = document.getElementById('topicName').value;
            const topicDescription = document.getElementById('topicDescription').value;
            const learningMethod = document.querySelector('input[name="learningMethod"]:checked').value;
            
            // Here you would typically send this data to a server
            console.log('New Topic Created:', {
                name: topicName,
                description: topicDescription,
                method: learningMethod
            });
            
            topicModal.classList.add('hidden');
            topicForm.reset();
            
            // Show success message
            alert(`Topic "${topicName}" created successfully!`);
        });

        // Flashcard Interaction
        flashcard.addEventListener('click', () => {
            flashcard.classList.toggle('flipped');
        });

        prevCardBtn.addEventListener('click', () => {
            flashcard.classList.remove('flipped');
            // In a real app, this would load the previous card
            console.log('Previous card loaded');
        });

        nextCardBtn.addEventListener('click', () => {
            flashcard.classList.remove('flipped');
            // In a real app, this would load the next card
            console.log('Next card loaded');
        });

        difficultyBtns.forEach(btn => {
            btn.addEventListener('click', (e) => {
                e.stopPropagation();
                const difficulty = btn.dataset.difficulty;
                console.log(`Card marked as ${difficulty}`);
                // In a real app, this would update the card's difficulty and schedule next review
                
                // Visual feedback
                difficultyBtns.forEach(b => b.classList.remove('ring-2', 'ring-offset-2'));
                btn.classList.add('ring-2', 'ring-offset-2');
                
                // Auto-advance after delay
                setTimeout(() => {
                    flashcard.classList.remove('flipped');
                    // Load next card
                }, 800);
            });
        });

        // Concept Map Interaction
        let isDragging = false;
        let currentX;
        let currentY;
        let initialX;
        let initialY;
        let xOffset = 0;
        let yOffset = 0;
        let activeNode = null;

        const nodes = document.querySelectorAll('.node');
        
        nodes.forEach(node => {
            node.addEventListener('mousedown', dragStart);
            node.addEventListener('mouseup', dragEnd);
            node.addEventListener('mouseleave', dragEnd);
            node.addEventListener('mousemove', drag);
        });

        function dragStart(e) {
            initialX = e.clientX - xOffset;
            initialY = e.clientY - yOffset;
            
            if (e.target.classList.contains('node')) {
                activeNode = e.target;
                isDragging = true;
            }
        }

        function dragEnd() {
            initialX = currentX;
            initialY = currentY;
            isDragging = false;
            activeNode = null;
        }

        function drag(e) {
            if (isDragging && activeNode) {
                e.preventDefault();
                currentX = e.clientX - initialX;
                currentY = e.clientY - initialY;
                
                xOffset = currentX;
                yOffset = currentY;
                
                setTranslate(currentX, currentY, activeNode);
            }
        }

        function setTranslate(xPos, yPos, el) {
            const rect = conceptMap.getBoundingClientRect();
            const maxX = rect.width - el.offsetWidth;
            const maxY = rect.height - el.offsetHeight;
            
            // Constrain to concept map boundaries
            xPos = Math.max(0, Math.min(xPos, maxX));
            yPos = Math.max(0, Math.min(yPos, maxY));
            
            el.style.transform = `translate3d(${xPos}px, ${yPos}px, 0)`;
            
            // Update position for connectors
            updateConnectors();
        }

        function updateConnectors() {
            // In a full implementation, this would update the SVG connectors between nodes
        }

        // Progress Chart
        const ctx = document.getElementById('masteryChart').getContext('2d');
        const masteryChart = new Chart(ctx, {
            type: 'line',
            data: {
                labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul'],
                datasets: [{
                    label: 'Mastery Level',
                    data: [20, 35, 45, 50, 60, 65, 75],
                    backgroundColor: 'rgba(79, 70, 229, 0.1)',
                    borderColor: 'rgba(79, 70, 229, 1)',
                    borderWidth: 2,
                    tension: 0.4,
                    fill: true
                }]
            },
            options: {
                responsive: true,
                maintainAspectRatio: false,
                plugins: {
                    legend: {
                        display: false
                    }
                },
                scales: {
                    y: {
                        beginAtZero: true,
                        max: 100,
                        ticks: {
                            callback: function(value) {
                                return value + '%';
                            }
                        }
                    }
                }
            }
        });
    </script>
<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=onedoganimation/deeplearn" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>