onedoganimation commited on
Commit
aaf18e7
·
verified ·
1 Parent(s): 874b1fd

Add 2 files

Browse files
Files changed (2) hide show
  1. README.md +7 -5
  2. index.html +605 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Deeplearn
3
- emoji: 😻
4
- colorFrom: indigo
5
- colorTo: red
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: deeplearn
3
+ emoji: 🐳
4
+ colorFrom: blue
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,605 @@
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>DeepMind - Master Any Topic</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
+ .gradient-bg {
11
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
12
+ }
13
+ .card-hover {
14
+ transition: all 0.3s ease;
15
+ }
16
+ .card-hover:hover {
17
+ transform: translateY(-5px);
18
+ box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
19
+ }
20
+ .progress-ring__circle {
21
+ transition: stroke-dashoffset 0.35s;
22
+ transform: rotate(-90deg);
23
+ transform-origin: 50% 50%;
24
+ }
25
+ .flip-card {
26
+ perspective: 1000px;
27
+ }
28
+ .flip-card-inner {
29
+ transition: transform 0.6s;
30
+ transform-style: preserve-3d;
31
+ }
32
+ .flip-card.flipped .flip-card-inner {
33
+ transform: rotateY(180deg);
34
+ }
35
+ .flip-card-front, .flip-card-back {
36
+ backface-visibility: hidden;
37
+ position: absolute;
38
+ width: 100%;
39
+ height: 100%;
40
+ }
41
+ .flip-card-back {
42
+ transform: rotateY(180deg);
43
+ }
44
+ .concept-map {
45
+ min-height: 400px;
46
+ background-color: #f8fafc;
47
+ border-radius: 0.5rem;
48
+ }
49
+ .node {
50
+ position: absolute;
51
+ padding: 0.5rem 1rem;
52
+ background-color: white;
53
+ border-radius: 0.5rem;
54
+ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
55
+ cursor: move;
56
+ user-select: none;
57
+ max-width: 200px;
58
+ word-wrap: break-word;
59
+ }
60
+ .connector {
61
+ position: absolute;
62
+ pointer-events: none;
63
+ }
64
+ </style>
65
+ </head>
66
+ <body class="bg-gray-50 font-sans">
67
+ <div class="min-h-screen">
68
+ <!-- Header -->
69
+ <header class="gradient-bg text-white shadow-lg">
70
+ <div class="container mx-auto px-4 py-6">
71
+ <div class="flex justify-between items-center">
72
+ <div class="flex items-center space-x-2">
73
+ <i class="fas fa-brain text-3xl"></i>
74
+ <h1 class="text-2xl font-bold">DeepMind</h1>
75
+ </div>
76
+ <nav>
77
+ <ul class="flex space-x-6">
78
+ <li><a href="#" class="hover:text-gray-200 transition">Dashboard</a></li>
79
+ <li><a href="#" class="hover:text-gray-200 transition">Topics</a></li>
80
+ <li><a href="#" class="hover:text-gray-200 transition">Progress</a></li>
81
+ <li><a href="#" class="hover:text-gray-200 transition">Resources</a></li>
82
+ </ul>
83
+ </nav>
84
+ <div class="flex items-center space-x-4">
85
+ <button class="bg-white text-indigo-700 px-4 py-2 rounded-full font-medium hover:bg-gray-100 transition">
86
+ <i class="fas fa-user mr-2"></i>Profile
87
+ </button>
88
+ </div>
89
+ </div>
90
+ </div>
91
+ </header>
92
+
93
+ <!-- Main Content -->
94
+ <main class="container mx-auto px-4 py-8">
95
+ <!-- Welcome Section -->
96
+ <section class="mb-12">
97
+ <div class="bg-white rounded-xl shadow-md p-6">
98
+ <div class="flex flex-col md:flex-row items-center">
99
+ <div class="md:w-2/3 mb-6 md:mb-0">
100
+ <h2 class="text-3xl font-bold text-gray-800 mb-4">Master any topic with science-backed techniques</h2>
101
+ <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>
102
+ <div class="flex flex-wrap gap-4">
103
+ <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">
104
+ <i class="fas fa-plus mr-2"></i> New Topic
105
+ </button>
106
+ <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">
107
+ <i class="fas fa-book-open mr-2"></i> Browse Topics
108
+ </button>
109
+ </div>
110
+ </div>
111
+ <div class="md:w-1/3 flex justify-center">
112
+ <div class="relative w-64 h-64">
113
+ <svg class="w-full h-full" viewBox="0 0 100 100">
114
+ <circle cx="50" cy="50" r="45" fill="none" stroke="#e2e8f0" stroke-width="8"/>
115
+ <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"/>
116
+ <text x="50" y="50" text-anchor="middle" dominant-baseline="middle" font-size="12" fill="#4f46e5" font-weight="bold">75% Mastery</text>
117
+ </svg>
118
+ </div>
119
+ </div>
120
+ </div>
121
+ </div>
122
+ </section>
123
+
124
+ <!-- New Topic Modal -->
125
+ <div id="topicModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
126
+ <div class="bg-white rounded-xl shadow-2xl p-6 w-full max-w-2xl">
127
+ <div class="flex justify-between items-center mb-6">
128
+ <h3 class="text-2xl font-bold text-gray-800">Create New Learning Topic</h3>
129
+ <button id="closeModalBtn" class="text-gray-500 hover:text-gray-700">
130
+ <i class="fas fa-times text-xl"></i>
131
+ </button>
132
+ </div>
133
+ <form id="topicForm">
134
+ <div class="mb-6">
135
+ <label for="topicName" class="block text-gray-700 font-medium mb-2">Topic Name</label>
136
+ <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">
137
+ </div>
138
+ <div class="mb-6">
139
+ <label for="topicDescription" class="block text-gray-700 font-medium mb-2">Description</label>
140
+ <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>
141
+ </div>
142
+ <div class="mb-6">
143
+ <label class="block text-gray-700 font-medium mb-2">Learning Method</label>
144
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-4">
145
+ <div class="flex items-center">
146
+ <input id="method-spaced" name="learningMethod" type="radio" value="spaced" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500" checked>
147
+ <label for="method-spaced" class="ml-2 block text-gray-700">
148
+ <span class="font-medium">Spaced Repetition</span>
149
+ <span class="block text-sm text-gray-500">Optimize review timing</span>
150
+ </label>
151
+ </div>
152
+ <div class="flex items-center">
153
+ <input id="method-active" name="learningMethod" type="radio" value="active" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500">
154
+ <label for="method-active" class="ml-2 block text-gray-700">
155
+ <span class="font-medium">Active Recall</span>
156
+ <span class="block text-sm text-gray-500">Test your memory</span>
157
+ </label>
158
+ </div>
159
+ <div class="flex items-center">
160
+ <input id="method-concept" name="learningMethod" type="radio" value="concept" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500">
161
+ <label for="method-concept" class="ml-2 block text-gray-700">
162
+ <span class="font-medium">Concept Mapping</span>
163
+ <span class="block text-sm text-gray-500">Visualize relationships</span>
164
+ </label>
165
+ </div>
166
+ </div>
167
+ </div>
168
+ <div class="flex justify-end space-x-4">
169
+ <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>
170
+ <button type="submit" class="bg-indigo-600 text-white px-6 py-2 rounded-lg font-medium hover:bg-indigo-700">Create Topic</button>
171
+ </div>
172
+ </form>
173
+ </div>
174
+ </div>
175
+
176
+ <!-- Learning Techniques Section -->
177
+ <section class="mb-12">
178
+ <h2 class="text-2xl font-bold text-gray-800 mb-6">Learning Techniques</h2>
179
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-6">
180
+ <!-- Spaced Repetition Card -->
181
+ <div class="bg-white rounded-xl shadow-md overflow-hidden card-hover">
182
+ <div class="gradient-bg p-4 text-white">
183
+ <div class="flex items-center">
184
+ <i class="fas fa-calendar-alt text-2xl mr-3"></i>
185
+ <h3 class="text-xl font-bold">Spaced Repetition</h3>
186
+ </div>
187
+ </div>
188
+ <div class="p-6">
189
+ <p class="text-gray-600 mb-4">Review material at increasing intervals to combat the forgetting curve and improve long-term retention.</p>
190
+ <div class="flex justify-between items-center">
191
+ <span class="text-sm text-gray-500">Next review in: 2 days</span>
192
+ <button class="text-indigo-600 hover:text-indigo-800 font-medium flex items-center">
193
+ Practice <i class="fas fa-arrow-right ml-2"></i>
194
+ </button>
195
+ </div>
196
+ </div>
197
+ </div>
198
+
199
+ <!-- Active Recall Card -->
200
+ <div class="bg-white rounded-xl shadow-md overflow-hidden card-hover">
201
+ <div class="gradient-bg p-4 text-white">
202
+ <div class="flex items-center">
203
+ <i class="fas fa-lightbulb text-2xl mr-3"></i>
204
+ <h3 class="text-xl font-bold">Active Recall</h3>
205
+ </div>
206
+ </div>
207
+ <div class="p-6">
208
+ <p class="text-gray-600 mb-4">Test yourself without looking at the material to strengthen memory pathways and identify knowledge gaps.</p>
209
+ <div class="flex justify-between items-center">
210
+ <span class="text-sm text-gray-500">15 cards due</span>
211
+ <button class="text-indigo-600 hover:text-indigo-800 font-medium flex items-center">
212
+ Practice <i class="fas fa-arrow-right ml-2"></i>
213
+ </button>
214
+ </div>
215
+ </div>
216
+ </div>
217
+
218
+ <!-- Concept Mapping Card -->
219
+ <div class="bg-white rounded-xl shadow-md overflow-hidden card-hover">
220
+ <div class="gradient-bg p-4 text-white">
221
+ <div class="flex items-center">
222
+ <i class="fas fa-project-diagram text-2xl mr-3"></i>
223
+ <h3 class="text-xl font-bold">Concept Mapping</h3>
224
+ </div>
225
+ </div>
226
+ <div class="p-6">
227
+ <p class="text-gray-600 mb-4">Visualize relationships between concepts to build a deeper understanding of how ideas connect.</p>
228
+ <div class="flex justify-between items-center">
229
+ <span class="text-sm text-gray-500">3 maps created</span>
230
+ <button class="text-indigo-600 hover:text-indigo-800 font-medium flex items-center">
231
+ Practice <i class="fas fa-arrow-right ml-2"></i>
232
+ </button>
233
+ </div>
234
+ </div>
235
+ </div>
236
+ </div>
237
+ </section>
238
+
239
+ <!-- Flashcard Practice Section -->
240
+ <section class="mb-12">
241
+ <h2 class="text-2xl font-bold text-gray-800 mb-6">Today's Practice</h2>
242
+ <div class="flex justify-center">
243
+ <div class="w-full max-w-2xl">
244
+ <div id="flashcard" class="flip-card h-64 w-full cursor-pointer">
245
+ <div class="flip-card-inner h-full w-full relative">
246
+ <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">
247
+ <div class="text-center">
248
+ <span class="text-sm text-indigo-600 font-medium mb-2">Question</span>
249
+ <h3 class="text-xl font-bold text-gray-800 mb-4">What is the difference between classical conditioning and operant conditioning?</h3>
250
+ <p class="text-gray-500">Click to reveal answer</p>
251
+ </div>
252
+ </div>
253
+ <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">
254
+ <div class="text-center">
255
+ <span class="text-sm text-indigo-600 font-medium mb-2">Answer</span>
256
+ <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>
257
+ <div class="flex justify-center space-x-4 mt-6">
258
+ <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">
259
+ <i class="fas fa-times-circle mr-1"></i> Hard
260
+ </button>
261
+ <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">
262
+ <i class="fas fa-check-circle mr-1"></i> Medium
263
+ </button>
264
+ <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">
265
+ <i class="fas fa-thumbs-up mr-1"></i> Easy
266
+ </button>
267
+ </div>
268
+ </div>
269
+ </div>
270
+ </div>
271
+ </div>
272
+ <div class="flex justify-between items-center mt-6">
273
+ <button id="prevCardBtn" class="text-gray-500 hover:text-gray-700">
274
+ <i class="fas fa-chevron-left mr-2"></i> Previous
275
+ </button>
276
+ <span class="text-gray-600">Card 3 of 15</span>
277
+ <button id="nextCardBtn" class="text-gray-500 hover:text-gray-700">
278
+ Next <i class="fas fa-chevron-right ml-2"></i>
279
+ </button>
280
+ </div>
281
+ </div>
282
+ </div>
283
+ </section>
284
+
285
+ <!-- Concept Mapping Section -->
286
+ <section class="mb-12">
287
+ <h2 class="text-2xl font-bold text-gray-800 mb-6">Concept Mapping</h2>
288
+ <div class="bg-white rounded-xl shadow-md p-6">
289
+ <div class="flex justify-between items-center mb-6">
290
+ <h3 class="text-lg font-medium text-gray-800">Cognitive Psychology Concepts</h3>
291
+ <div class="flex space-x-3">
292
+ <button class="bg-indigo-100 text-indigo-700 px-3 py-1 rounded-lg text-sm font-medium hover:bg-indigo-200">
293
+ <i class="fas fa-plus mr-1"></i> Add Node
294
+ </button>
295
+ <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">
296
+ <i class="fas fa-save mr-1"></i> Save
297
+ </button>
298
+ </div>
299
+ </div>
300
+ <div class="concept-map relative" id="conceptMap">
301
+ <!-- Nodes will be added here dynamically -->
302
+ <div class="node" style="top: 50px; left: 100px;" data-id="1">Memory</div>
303
+ <div class="node" style="top: 50px; left: 300px;" data-id="2">Attention</div>
304
+ <div class="node" style="top: 150px; left: 200px;" data-id="3">Learning</div>
305
+ <div class="node" style="top: 250px; left: 100px;" data-id="4">Recall</div>
306
+ <div class="node" style="top: 250px; left: 300px;" data-id="5">Perception</div>
307
+
308
+ <!-- Connectors will be added here dynamically -->
309
+ <svg class="connector" width="100%" height="100%" style="position: absolute; top: 0; left: 0; z-index: 0;">
310
+ <line x1="170" y1="70" x2="230" y2="70" stroke="#4f46e5" stroke-width="2" marker-end="url(#arrowhead)"/>
311
+ <line x1="200" y1="100" x2="200" y2="130" stroke="#4f46e5" stroke-width="2" marker-end="url(#arrowhead)"/>
312
+ <line x1="120" y1="170" x2="180" y2="130" stroke="#4f46e5" stroke-width="2" marker-end="url(#arrowhead)"/>
313
+ <line x1="220" y1="130" x2="280" y2="170" stroke="#4f46e5" stroke-width="2" marker-end="url(#arrowhead)"/>
314
+ </svg>
315
+ <defs>
316
+ <marker id="arrowhead" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto">
317
+ <polygon points="0 0, 10 3.5, 0 7" fill="#4f46e5"/>
318
+ </marker>
319
+ </defs>
320
+ </div>
321
+ </div>
322
+ </section>
323
+
324
+ <!-- Progress Tracking Section -->
325
+ <section>
326
+ <h2 class="text-2xl font-bold text-gray-800 mb-6">Your Learning Progress</h2>
327
+ <div class="bg-white rounded-xl shadow-md p-6">
328
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-8">
329
+ <div>
330
+ <h3 class="text-lg font-medium text-gray-800 mb-4">Mastery Over Time</h3>
331
+ <div class="h-64">
332
+ <canvas id="masteryChart"></canvas>
333
+ </div>
334
+ </div>
335
+ <div>
336
+ <h3 class="text-lg font-medium text-gray-800 mb-4">Recent Activity</h3>
337
+ <div class="space-y-4">
338
+ <div class="flex items-start">
339
+ <div class="bg-indigo-100 p-2 rounded-full mr-4">
340
+ <i class="fas fa-check-circle text-indigo-600"></i>
341
+ </div>
342
+ <div>
343
+ <p class="text-gray-800 font-medium">Completed 15 flashcards</p>
344
+ <p class="text-sm text-gray-500">Psychology - 2 hours ago</p>
345
+ </div>
346
+ </div>
347
+ <div class="flex items-start">
348
+ <div class="bg-blue-100 p-2 rounded-full mr-4">
349
+ <i class="fas fa-book text-blue-600"></i>
350
+ </div>
351
+ <div>
352
+ <p class="text-gray-800 font-medium">Added new resources</p>
353
+ <p class="text-sm text-gray-500">Machine Learning - 1 day ago</p>
354
+ </div>
355
+ </div>
356
+ <div class="flex items-start">
357
+ <div class="bg-green-100 p-2 rounded-full mr-4">
358
+ <i class="fas fa-chart-line text-green-600"></i>
359
+ </div>
360
+ <div>
361
+ <p class="text-gray-800 font-medium">Mastery increased to 75%</p>
362
+ <p class="text-sm text-gray-500">Cognitive Science - 2 days ago</p>
363
+ </div>
364
+ </div>
365
+ </div>
366
+ </div>
367
+ </div>
368
+ </div>
369
+ </section>
370
+ </main>
371
+
372
+ <!-- Footer -->
373
+ <footer class="bg-gray-100 border-t border-gray-200 mt-12">
374
+ <div class="container mx-auto px-4 py-8">
375
+ <div class="grid grid-cols-1 md:grid-cols-4 gap-8">
376
+ <div>
377
+ <h3 class="text-lg font-bold text-gray-800 mb-4">DeepMind</h3>
378
+ <p class="text-gray-600">Master any topic with science-backed learning techniques for deep understanding and long-term retention.</p>
379
+ </div>
380
+ <div>
381
+ <h4 class="text-gray-800 font-medium mb-4">Features</h4>
382
+ <ul class="space-y-2">
383
+ <li><a href="#" class="text-gray-600 hover:text-indigo-600">Spaced Repetition</a></li>
384
+ <li><a href="#" class="text-gray-600 hover:text-indigo-600">Active Recall</a></li>
385
+ <li><a href="#" class="text-gray-600 hover:text-indigo-600">Concept Mapping</a></li>
386
+ <li><a href="#" class="text-gray-600 hover:text-indigo-600">Progress Tracking</a></li>
387
+ </ul>
388
+ </div>
389
+ <div>
390
+ <h4 class="text-gray-800 font-medium mb-4">Resources</h4>
391
+ <ul class="space-y-2">
392
+ <li><a href="#" class="text-gray-600 hover:text-indigo-600">Blog</a></li>
393
+ <li><a href="#" class="text-gray-600 hover:text-indigo-600">Research</a></li>
394
+ <li><a href="#" class="text-gray-600 hover:text-indigo-600">Learning Guides</a></li>
395
+ <li><a href="#" class="text-gray-600 hover:text-indigo-600">FAQ</a></li>
396
+ </ul>
397
+ </div>
398
+ <div>
399
+ <h4 class="text-gray-800 font-medium mb-4">Connect</h4>
400
+ <div class="flex space-x-4">
401
+ <a href="#" class="text-gray-600 hover:text-indigo-600"><i class="fab fa-twitter text-xl"></i></a>
402
+ <a href="#" class="text-gray-600 hover:text-indigo-600"><i class="fab fa-facebook text-xl"></i></a>
403
+ <a href="#" class="text-gray-600 hover:text-indigo-600"><i class="fab fa-instagram text-xl"></i></a>
404
+ <a href="#" class="text-gray-600 hover:text-indigo-600"><i class="fab fa-linkedin text-xl"></i></a>
405
+ </div>
406
+ </div>
407
+ </div>
408
+ <div class="border-t border-gray-200 mt-8 pt-8 text-center text-gray-500">
409
+ <p>&copy; 2023 DeepMind. All rights reserved.</p>
410
+ </div>
411
+ </div>
412
+ </footer>
413
+ </div>
414
+
415
+ <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
416
+ <script>
417
+ // DOM Elements
418
+ const newTopicBtn = document.getElementById('newTopicBtn');
419
+ const topicModal = document.getElementById('topicModal');
420
+ const closeModalBtn = document.getElementById('closeModalBtn');
421
+ const cancelTopicBtn = document.getElementById('cancelTopicBtn');
422
+ const topicForm = document.getElementById('topicForm');
423
+ const flashcard = document.getElementById('flashcard');
424
+ const prevCardBtn = document.getElementById('prevCardBtn');
425
+ const nextCardBtn = document.getElementById('nextCardBtn');
426
+ const difficultyBtns = document.querySelectorAll('.difficulty-btn');
427
+ const conceptMap = document.getElementById('conceptMap');
428
+
429
+ // Modal Handling
430
+ newTopicBtn.addEventListener('click', () => {
431
+ topicModal.classList.remove('hidden');
432
+ });
433
+
434
+ closeModalBtn.addEventListener('click', () => {
435
+ topicModal.classList.add('hidden');
436
+ });
437
+
438
+ cancelTopicBtn.addEventListener('click', () => {
439
+ topicModal.classList.add('hidden');
440
+ });
441
+
442
+ topicForm.addEventListener('submit', (e) => {
443
+ e.preventDefault();
444
+ const topicName = document.getElementById('topicName').value;
445
+ const topicDescription = document.getElementById('topicDescription').value;
446
+ const learningMethod = document.querySelector('input[name="learningMethod"]:checked').value;
447
+
448
+ // Here you would typically send this data to a server
449
+ console.log('New Topic Created:', {
450
+ name: topicName,
451
+ description: topicDescription,
452
+ method: learningMethod
453
+ });
454
+
455
+ topicModal.classList.add('hidden');
456
+ topicForm.reset();
457
+
458
+ // Show success message
459
+ alert(`Topic "${topicName}" created successfully!`);
460
+ });
461
+
462
+ // Flashcard Interaction
463
+ flashcard.addEventListener('click', () => {
464
+ flashcard.classList.toggle('flipped');
465
+ });
466
+
467
+ prevCardBtn.addEventListener('click', () => {
468
+ flashcard.classList.remove('flipped');
469
+ // In a real app, this would load the previous card
470
+ console.log('Previous card loaded');
471
+ });
472
+
473
+ nextCardBtn.addEventListener('click', () => {
474
+ flashcard.classList.remove('flipped');
475
+ // In a real app, this would load the next card
476
+ console.log('Next card loaded');
477
+ });
478
+
479
+ difficultyBtns.forEach(btn => {
480
+ btn.addEventListener('click', (e) => {
481
+ e.stopPropagation();
482
+ const difficulty = btn.dataset.difficulty;
483
+ console.log(`Card marked as ${difficulty}`);
484
+ // In a real app, this would update the card's difficulty and schedule next review
485
+
486
+ // Visual feedback
487
+ difficultyBtns.forEach(b => b.classList.remove('ring-2', 'ring-offset-2'));
488
+ btn.classList.add('ring-2', 'ring-offset-2');
489
+
490
+ // Auto-advance after delay
491
+ setTimeout(() => {
492
+ flashcard.classList.remove('flipped');
493
+ // Load next card
494
+ }, 800);
495
+ });
496
+ });
497
+
498
+ // Concept Map Interaction
499
+ let isDragging = false;
500
+ let currentX;
501
+ let currentY;
502
+ let initialX;
503
+ let initialY;
504
+ let xOffset = 0;
505
+ let yOffset = 0;
506
+ let activeNode = null;
507
+
508
+ const nodes = document.querySelectorAll('.node');
509
+
510
+ nodes.forEach(node => {
511
+ node.addEventListener('mousedown', dragStart);
512
+ node.addEventListener('mouseup', dragEnd);
513
+ node.addEventListener('mouseleave', dragEnd);
514
+ node.addEventListener('mousemove', drag);
515
+ });
516
+
517
+ function dragStart(e) {
518
+ initialX = e.clientX - xOffset;
519
+ initialY = e.clientY - yOffset;
520
+
521
+ if (e.target.classList.contains('node')) {
522
+ activeNode = e.target;
523
+ isDragging = true;
524
+ }
525
+ }
526
+
527
+ function dragEnd() {
528
+ initialX = currentX;
529
+ initialY = currentY;
530
+ isDragging = false;
531
+ activeNode = null;
532
+ }
533
+
534
+ function drag(e) {
535
+ if (isDragging && activeNode) {
536
+ e.preventDefault();
537
+ currentX = e.clientX - initialX;
538
+ currentY = e.clientY - initialY;
539
+
540
+ xOffset = currentX;
541
+ yOffset = currentY;
542
+
543
+ setTranslate(currentX, currentY, activeNode);
544
+ }
545
+ }
546
+
547
+ function setTranslate(xPos, yPos, el) {
548
+ const rect = conceptMap.getBoundingClientRect();
549
+ const maxX = rect.width - el.offsetWidth;
550
+ const maxY = rect.height - el.offsetHeight;
551
+
552
+ // Constrain to concept map boundaries
553
+ xPos = Math.max(0, Math.min(xPos, maxX));
554
+ yPos = Math.max(0, Math.min(yPos, maxY));
555
+
556
+ el.style.transform = `translate3d(${xPos}px, ${yPos}px, 0)`;
557
+
558
+ // Update position for connectors
559
+ updateConnectors();
560
+ }
561
+
562
+ function updateConnectors() {
563
+ // In a full implementation, this would update the SVG connectors between nodes
564
+ }
565
+
566
+ // Progress Chart
567
+ const ctx = document.getElementById('masteryChart').getContext('2d');
568
+ const masteryChart = new Chart(ctx, {
569
+ type: 'line',
570
+ data: {
571
+ labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul'],
572
+ datasets: [{
573
+ label: 'Mastery Level',
574
+ data: [20, 35, 45, 50, 60, 65, 75],
575
+ backgroundColor: 'rgba(79, 70, 229, 0.1)',
576
+ borderColor: 'rgba(79, 70, 229, 1)',
577
+ borderWidth: 2,
578
+ tension: 0.4,
579
+ fill: true
580
+ }]
581
+ },
582
+ options: {
583
+ responsive: true,
584
+ maintainAspectRatio: false,
585
+ plugins: {
586
+ legend: {
587
+ display: false
588
+ }
589
+ },
590
+ scales: {
591
+ y: {
592
+ beginAtZero: true,
593
+ max: 100,
594
+ ticks: {
595
+ callback: function(value) {
596
+ return value + '%';
597
+ }
598
+ }
599
+ }
600
+ }
601
+ }
602
+ });
603
+ </script>
604
+ <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>
605
+ </html>