rahuln99 commited on
Commit
1856ca6
·
verified ·
1 Parent(s): 7abef21

Add 3 files

Browse files
Files changed (3) hide show
  1. README.md +6 -4
  2. index.html +590 -19
  3. prompts.txt +1 -0
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Learning
3
- emoji: 🐠
4
  colorFrom: green
5
- colorTo: green
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: learning
3
+ emoji: 🐳
4
  colorFrom: green
5
+ colorTo: pink
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,590 @@
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>Academic Content Assistant</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
+ .content-card:hover {
14
+ transform: translateY(-5px);
15
+ box-shadow: 0 10px 20px rgba(0,0,0,0.1);
16
+ }
17
+ .chat-message {
18
+ max-width: 80%;
19
+ }
20
+ .typing-indicator::after {
21
+ content: '...';
22
+ animation: typing 1.5s infinite;
23
+ display: inline-block;
24
+ width: 0;
25
+ }
26
+ @keyframes typing {
27
+ 0% { width: 0; }
28
+ 50% { width: 0.5em; }
29
+ 100% { width: 0; }
30
+ }
31
+ .progress-ring__circle {
32
+ transition: stroke-dashoffset 0.35s;
33
+ transform: rotate(-90deg);
34
+ transform-origin: 50% 50%;
35
+ }
36
+ </style>
37
+ </head>
38
+ <body class="bg-gray-50 font-sans">
39
+ <div class="flex h-screen overflow-hidden">
40
+ <!-- Sidebar -->
41
+ <div class="sidebar bg-indigo-800 text-white w-64 flex-shrink-0 flex flex-col">
42
+ <div class="p-4 border-b border-indigo-700 flex items-center">
43
+ <i class="fas fa-graduation-cap text-2xl mr-3"></i>
44
+ <h1 class="text-xl font-bold">Academic Assistant</h1>
45
+ </div>
46
+ <div class="p-4 border-b border-indigo-700">
47
+ <div class="flex items-center mb-4">
48
+ <div class="w-10 h-10 rounded-full bg-indigo-600 flex items-center justify-center mr-3">
49
+ <i class="fas fa-user"></i>
50
+ </div>
51
+ <div>
52
+ <p class="font-medium">Student</p>
53
+ <p class="text-xs text-indigo-300">University of Example</p>
54
+ </div>
55
+ </div>
56
+ <button class="w-full bg-indigo-600 hover:bg-indigo-500 text-white py-2 px-4 rounded-md text-sm flex items-center justify-center">
57
+ <i class="fas fa-sync-alt mr-2"></i> Sync Content
58
+ </button>
59
+ </div>
60
+ <div class="flex-1 overflow-y-auto">
61
+ <div class="p-4">
62
+ <h2 class="text-sm uppercase font-bold text-indigo-300 mb-3">My Modules</h2>
63
+ <ul>
64
+ <li class="mb-2">
65
+ <a href="#" class="flex items-center p-2 rounded-md hover:bg-indigo-700 bg-indigo-700">
66
+ <i class="fas fa-book mr-3"></i>
67
+ <span>Computer Science 101</span>
68
+ </a>
69
+ </li>
70
+ <li class="mb-2">
71
+ <a href="#" class="flex items-center p-2 rounded-md hover:bg-indigo-700">
72
+ <i class="fas fa-flask mr-3"></i>
73
+ <span>Data Structures</span>
74
+ </a>
75
+ </li>
76
+ <li class="mb-2">
77
+ <a href="#" class="flex items-center p-2 rounded-md hover:bg-indigo-700">
78
+ <i class="fas fa-code mr-3"></i>
79
+ <span>Algorithms</span>
80
+ </a>
81
+ </li>
82
+ <li class="mb-2">
83
+ <a href="#" class="flex items-center p-2 rounded-md hover:bg-indigo-700">
84
+ <i class="fas fa-database mr-3"></i>
85
+ <span>Database Systems</span>
86
+ </a>
87
+ </li>
88
+ </ul>
89
+ </div>
90
+ <div class="p-4 border-t border-indigo-700">
91
+ <h2 class="text-sm uppercase font-bold text-indigo-300 mb-3">Quick Actions</h2>
92
+ <ul>
93
+ <li class="mb-2">
94
+ <a href="#" class="flex items-center p-2 rounded-md hover:bg-indigo-700">
95
+ <i class="fas fa-sticky-note mr-3"></i>
96
+ <span>Create Revision Notes</span>
97
+ </a>
98
+ </li>
99
+ <li class="mb-2">
100
+ <a href="#" class="flex items-center p-2 rounded-md hover:bg-indigo-700">
101
+ <i class="fas fa-question-circle mr-3"></i>
102
+ <span>Generate Practice Questions</span>
103
+ </a>
104
+ </li>
105
+ <li class="mb-2">
106
+ <a href="#" class="flex items-center p-2 rounded-md hover:bg-indigo-700">
107
+ <i class="fas fa-calendar-alt mr-3"></i>
108
+ <span>Upcoming Deadlines</span>
109
+ </a>
110
+ </li>
111
+ </ul>
112
+ </div>
113
+ </div>
114
+ <div class="p-4 border-t border-indigo-700">
115
+ <div class="flex items-center">
116
+ <div class="w-8 h-8 rounded-full bg-indigo-600 flex items-center justify-center mr-2">
117
+ <i class="fas fa-cog"></i>
118
+ </div>
119
+ <span>Settings</span>
120
+ </div>
121
+ </div>
122
+ </div>
123
+
124
+ <!-- Main Content -->
125
+ <div class="flex-1 flex flex-col overflow-hidden">
126
+ <!-- Top Navigation -->
127
+ <div class="bg-white border-b border-gray-200 p-4 flex items-center justify-between">
128
+ <div class="flex items-center">
129
+ <h2 class="text-xl font-semibold">Computer Science 101</h2>
130
+ <span class="ml-4 bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded-full">Week 5</span>
131
+ </div>
132
+ <div class="flex items-center space-x-4">
133
+ <div class="relative">
134
+ <input type="text" placeholder="Search module content..." class="pl-10 pr-4 py-2 border rounded-md w-64 focus:outline-none focus:ring-2 focus:ring-blue-500">
135
+ <i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
136
+ </div>
137
+ <button class="p-2 rounded-full hover:bg-gray-100">
138
+ <i class="fas fa-bell text-gray-600"></i>
139
+ </button>
140
+ </div>
141
+ </div>
142
+
143
+ <!-- Content Area -->
144
+ <div class="flex-1 overflow-hidden flex">
145
+ <!-- Module Content -->
146
+ <div class="w-1/2 border-r border-gray-200 overflow-y-auto p-6">
147
+ <div class="mb-6">
148
+ <div class="flex items-center justify-between mb-4">
149
+ <h3 class="text-lg font-semibold">Module Content</h3>
150
+ <div class="flex space-x-2">
151
+ <button class="px-3 py-1 bg-gray-100 rounded-md text-sm flex items-center">
152
+ <i class="fas fa-filter mr-1"></i> Filter
153
+ </button>
154
+ <button class="px-3 py-1 bg-gray-100 rounded-md text-sm flex items-center">
155
+ <i class="fas fa-sort mr-1"></i> Sort
156
+ </button>
157
+ </div>
158
+ </div>
159
+
160
+ <div class="grid grid-cols-1 gap-4">
161
+ <!-- Lecture Slides -->
162
+ <div class="content-card bg-white rounded-lg shadow p-4 border border-gray-100 cursor-pointer transition-all duration-300">
163
+ <div class="flex items-start">
164
+ <div class="bg-blue-100 p-3 rounded-lg mr-4">
165
+ <i class="fas fa-file-powerpoint text-blue-600 text-xl"></i>
166
+ </div>
167
+ <div class="flex-1">
168
+ <h4 class="font-medium">Lecture 5: Object-Oriented Programming</h4>
169
+ <p class="text-sm text-gray-500 mt-1">Uploaded: 2 days ago</p>
170
+ <div class="flex mt-3 space-x-2">
171
+ <button class="text-xs bg-blue-50 text-blue-600 px-2 py-1 rounded flex items-center">
172
+ <i class="fas fa-eye mr-1"></i> View
173
+ </button>
174
+ <button class="text-xs bg-green-50 text-green-600 px-2 py-1 rounded flex items-center">
175
+ <i class="fas fa-question mr-1"></i> Quiz Me
176
+ </button>
177
+ <button class="text-xs bg-purple-50 text-purple-600 px-2 py-1 rounded flex items-center">
178
+ <i class="fas fa-sticky-note mr-1"></i> Notes
179
+ </button>
180
+ </div>
181
+ </div>
182
+ </div>
183
+ </div>
184
+
185
+ <!-- Reading Material -->
186
+ <div class="content-card bg-white rounded-lg shadow p-4 border border-gray-100 cursor-pointer transition-all duration-300">
187
+ <div class="flex items-start">
188
+ <div class="bg-purple-100 p-3 rounded-lg mr-4">
189
+ <i class="fas fa-book text-purple-600 text-xl"></i>
190
+ </div>
191
+ <div class="flex-1">
192
+ <h4 class="font-medium">Reading: Design Patterns</h4>
193
+ <p class="text-sm text-gray-500 mt-1">From Talis | 15 pages</p>
194
+ <div class="flex mt-3 space-x-2">
195
+ <button class="text-xs bg-blue-50 text-blue-600 px-2 py-1 rounded flex items-center">
196
+ <i class="fas fa-eye mr-1"></i> View
197
+ </button>
198
+ <button class="text-xs bg-yellow-50 text-yellow-600 px-2 py-1 rounded flex items-center">
199
+ <i class="fas fa-highlighter mr-1"></i> Highlight
200
+ </button>
201
+ </div>
202
+ </div>
203
+ </div>
204
+ </div>
205
+
206
+ <!-- Lecture Video -->
207
+ <div class="content-card bg-white rounded-lg shadow p-4 border border-gray-100 cursor-pointer transition-all duration-300">
208
+ <div class="flex items-start">
209
+ <div class="bg-red-100 p-3 rounded-lg mr-4">
210
+ <i class="fas fa-video text-red-600 text-xl"></i>
211
+ </div>
212
+ <div class="flex-1">
213
+ <h4 class="font-medium">Lecture Capture: Week 5</h4>
214
+ <p class="text-sm text-gray-500 mt-1">1h 22m | Viewed 65%</p>
215
+ <div class="mt-3">
216
+ <div class="w-full bg-gray-200 rounded-full h-2">
217
+ <div class="bg-red-500 h-2 rounded-full" style="width: 65%"></div>
218
+ </div>
219
+ <div class="flex justify-between text-xs text-gray-500 mt-1">
220
+ <span>43:12 watched</span>
221
+ <span>39:00 remaining</span>
222
+ </div>
223
+ </div>
224
+ <div class="flex mt-3 space-x-2">
225
+ <button class="text-xs bg-blue-50 text-blue-600 px-2 py-1 rounded flex items-center">
226
+ <i class="fas fa-play mr-1"></i> Continue
227
+ </button>
228
+ <button class="text-xs bg-gray-50 text-gray-600 px-2 py-1 rounded flex items-center">
229
+ <i class="fas fa-clipboard mr-1"></i> Transcript
230
+ </button>
231
+ </div>
232
+ </div>
233
+ </div>
234
+ </div>
235
+
236
+ <!-- Assignment -->
237
+ <div class="content-card bg-white rounded-lg shadow p-4 border border-gray-100 cursor-pointer transition-all duration-300">
238
+ <div class="flex items-start">
239
+ <div class="bg-green-100 p-3 rounded-lg mr-4">
240
+ <i class="fas fa-tasks text-green-600 text-xl"></i>
241
+ </div>
242
+ <div class="flex-1">
243
+ <h4 class="font-medium">Assignment 2: OOP Implementation</h4>
244
+ <p class="text-sm text-gray-500 mt-1">Due in 5 days | 30% of grade</p>
245
+ <div class="flex items-center mt-2">
246
+ <div class="w-6 h-6 mr-2">
247
+ <svg viewBox="0 0 36 36" class="circular-chart">
248
+ <path class="progress-ring__circle"
249
+ stroke-dasharray="75, 100"
250
+ d="M18 2.0845
251
+ a 15.9155 15.9155 0 0 1 0 31.831
252
+ a 15.9155 15.9155 0 0 1 0 -31.831"
253
+ stroke="#3B82F6"
254
+ stroke-width="3"
255
+ fill="none"/>
256
+ </svg>
257
+ </div>
258
+ <span class="text-xs text-gray-600">75% completed</span>
259
+ </div>
260
+ <div class="flex mt-3 space-x-2">
261
+ <button class="text-xs bg-blue-50 text-blue-600 px-2 py-1 rounded flex items-center">
262
+ <i class="fas fa-edit mr-1"></i> Continue
263
+ </button>
264
+ <button class="text-xs bg-gray-50 text-gray-600 px-2 py-1 rounded flex items-center">
265
+ <i class="fas fa-info-circle mr-1"></i> Requirements
266
+ </button>
267
+ </div>
268
+ </div>
269
+ </div>
270
+ </div>
271
+ </div>
272
+ </div>
273
+
274
+ <div>
275
+ <h3 class="text-lg font-semibold mb-4">Generated Resources</h3>
276
+ <div class="grid grid-cols-2 gap-4">
277
+ <div class="bg-white rounded-lg shadow p-4 border border-gray-100">
278
+ <div class="bg-indigo-50 p-3 rounded-lg mb-3">
279
+ <i class="fas fa-sticky-note text-indigo-600 text-xl"></i>
280
+ </div>
281
+ <h4 class="font-medium text-sm mb-1">OOP Summary Notes</h4>
282
+ <p class="text-xs text-gray-500">Generated from Lecture 5</p>
283
+ <button class="w-full mt-3 text-xs bg-indigo-50 text-indigo-600 px-2 py-1 rounded flex items-center justify-center">
284
+ <i class="fas fa-download mr-1"></i> Download
285
+ </button>
286
+ </div>
287
+ <div class="bg-white rounded-lg shadow p-4 border border-gray-100">
288
+ <div class="bg-yellow-50 p-3 rounded-lg mb-3">
289
+ <i class="fas fa-question-circle text-yellow-600 text-xl"></i>
290
+ </div>
291
+ <h4 class="font-medium text-sm mb-1">Practice Questions</h4>
292
+ <p class="text-xs text-gray-500">10 questions on Inheritance</p>
293
+ <button class="w-full mt-3 text-xs bg-yellow-50 text-yellow-600 px-2 py-1 rounded flex items-center justify-center">
294
+ <i class="fas fa-play mr-1"></i> Start Quiz
295
+ </button>
296
+ </div>
297
+ <div class="bg-white rounded-lg shadow p-4 border border-gray-100">
298
+ <div class="bg-green-50 p-3 rounded-lg mb-3">
299
+ <i class="fas fa-brain text-green-600 text-xl"></i>
300
+ </div>
301
+ <h4 class="font-medium text-sm mb-1">Flashcards</h4>
302
+ <p class="text-xs text-gray-500">15 key terms</p>
303
+ <button class="w-full mt-3 text-xs bg-green-50 text-green-600 px-2 py-1 rounded flex items-center justify-center">
304
+ <i class="fas fa-layer-group mr-1"></i> Review
305
+ </button>
306
+ </div>
307
+ <div class="bg-white rounded-lg shadow p-4 border border-gray-100">
308
+ <div class="bg-red-50 p-3 rounded-lg mb-3">
309
+ <i class="fas fa-chart-line text-red-600 text-xl"></i>
310
+ </div>
311
+ <h4 class="font-medium text-sm mb-1">Knowledge Graph</h4>
312
+ <p class="text-xs text-gray-500">Module concepts visualized</p>
313
+ <button class="w-full mt-3 text-xs bg-red-50 text-red-600 px-2 py-1 rounded flex items-center justify-center">
314
+ <i class="fas fa-expand mr-1"></i> View
315
+ </button>
316
+ </div>
317
+ </div>
318
+ </div>
319
+ </div>
320
+
321
+ <!-- Chat Assistant -->
322
+ <div class="w-1/2 flex flex-col">
323
+ <div class="p-4 border-b border-gray-200 flex items-center justify-between bg-white">
324
+ <div class="flex items-center">
325
+ <div class="w-10 h-10 rounded-full bg-indigo-100 flex items-center justify-center mr-3">
326
+ <i class="fas fa-robot text-indigo-600"></i>
327
+ </div>
328
+ <div>
329
+ <h3 class="font-medium">Study Assistant</h3>
330
+ <p class="text-xs text-gray-500">Ask me anything about the module</p>
331
+ </div>
332
+ </div>
333
+ <div class="flex space-x-2">
334
+ <button class="p-2 rounded-full hover:bg-gray-100">
335
+ <i class="fas fa-ellipsis-v text-gray-500"></i>
336
+ </button>
337
+ </div>
338
+ </div>
339
+
340
+ <div class="flex-1 overflow-y-auto p-4 bg-gray-50" id="chat-container">
341
+ <!-- Chat messages will appear here -->
342
+ <div class="chat-message mb-4">
343
+ <div class="flex items-start">
344
+ <div class="w-8 h-8 rounded-full bg-indigo-100 flex items-center justify-center mr-3">
345
+ <i class="fas fa-robot text-indigo-600"></i>
346
+ </div>
347
+ <div class="bg-white p-3 rounded-lg shadow-sm max-w-xs">
348
+ <p>Hello! I'm your study assistant. I've analyzed your Computer Science 101 module content. How can I help you today?</p>
349
+ <p class="text-xs text-gray-500 mt-2">Here are some things I can do:</p>
350
+ <ul class="text-xs list-disc pl-5 mt-1 space-y-1">
351
+ <li>Explain concepts from your lectures</li>
352
+ <li>Create revision notes from your materials</li>
353
+ <li>Generate practice questions</li>
354
+ <li>Help with assignments</li>
355
+ </ul>
356
+ </div>
357
+ </div>
358
+ </div>
359
+
360
+ <div class="chat-message mb-4 flex justify-end">
361
+ <div class="bg-indigo-100 p-3 rounded-lg shadow-sm max-w-xs">
362
+ <p>Can you explain polymorphism from Lecture 5?</p>
363
+ </div>
364
+ </div>
365
+
366
+ <div class="chat-message mb-4">
367
+ <div class="flex items-start">
368
+ <div class="w-8 h-8 rounded-full bg-indigo-100 flex items-center justify-center mr-3">
369
+ <i class="fas fa-robot text-indigo-600"></i>
370
+ </div>
371
+ <div class="bg-white p-3 rounded-lg shadow-sm">
372
+ <p>Certainly! Based on Lecture 5 (slides 12-15) and the recorded lecture at 23:45, polymorphism is a fundamental concept in object-oriented programming where:</p>
373
+ <ol class="list-decimal pl-5 mt-2 space-y-1 text-sm">
374
+ <li><strong>Definition:</strong> A single interface can represent different underlying forms (data types).</li>
375
+ <li><strong>Types:</strong>
376
+ <ul class="list-disc pl-5 mt-1">
377
+ <li><strong>Compile-time:</strong> Method overloading</li>
378
+ <li><strong>Run-time:</strong> Method overriding</li>
379
+ </ul>
380
+ </li>
381
+ <li><strong>Example:</strong> An <code>Animal</code> class with a <code>makeSound()</code> method that behaves differently for <code>Dog</code> and <code>Cat</code> subclasses.</li>
382
+ </ol>
383
+ <div class="mt-3 p-2 bg-blue-50 rounded border border-blue-100 text-sm">
384
+ <p class="font-medium text-blue-800"><i class="fas fa-lightbulb mr-1"></i> Key Insight</p>
385
+ <p>Polymorphism allows you to write more flexible and reusable code by treating objects of different classes the same way.</p>
386
+ </div>
387
+ <div class="mt-3 flex space-x-2">
388
+ <button class="text-xs bg-blue-50 text-blue-600 px-2 py-1 rounded flex items-center">
389
+ <i class="fas fa-code mr-1"></i> Show Example
390
+ </button>
391
+ <button class="text-xs bg-purple-50 text-purple-600 px-2 py-1 rounded flex items-center">
392
+ <i class="fas fa-question mr-1"></i> Quiz Me
393
+ </button>
394
+ <button class="text-xs bg-gray-50 text-gray-600 px-2 py-1 rounded flex items-center">
395
+ <i class="fas fa-bookmark mr-1"></i> Save
396
+ </button>
397
+ </div>
398
+ </div>
399
+ </div>
400
+ </div>
401
+
402
+ <div class="chat-message mb-4 flex justify-end">
403
+ <div class="bg-indigo-100 p-3 rounded-lg shadow-sm max-w-xs">
404
+ <p>Can you create a summary of inheritance vs composition?</p>
405
+ </div>
406
+ </div>
407
+
408
+ <div class="chat-message mb-4">
409
+ <div class="flex items-start">
410
+ <div class="w-8 h-8 rounded-full bg-indigo-100 flex items-center justify-center mr-3">
411
+ <i class="fas fa-robot text-indigo-600"></i>
412
+ </div>
413
+ <div class="bg-white p-3 rounded-lg shadow-sm">
414
+ <div class="flex items-center justify-between mb-2">
415
+ <p class="font-medium">Inheritance vs Composition</p>
416
+ <button class="text-xs bg-gray-100 px-2 py-1 rounded flex items-center">
417
+ <i class="fas fa-download mr-1"></i> PDF
418
+ </button>
419
+ </div>
420
+ <div class="overflow-x-auto">
421
+ <table class="min-w-full text-sm border">
422
+ <thead class="bg-gray-50">
423
+ <tr>
424
+ <th class="px-3 py-2 text-left border-b">Aspect</th>
425
+ <th class="px-3 py-2 text-left border-b">Inheritance</th>
426
+ <th class="px-3 py-2 text-left border-b">Composition</th>
427
+ </tr>
428
+ </thead>
429
+ <tbody>
430
+ <tr>
431
+ <td class="px-3 py-2 border-b">Relationship</td>
432
+ <td class="px-3 py-2 border-b">"is-a"</td>
433
+ <td class="px-3 py-2 border-b">"has-a"</td>
434
+ </tr>
435
+ <tr class="bg-gray-50">
436
+ <td class="px-3 py-2 border-b">Flexibility</td>
437
+ <td class="px-3 py-2 border-b">Less flexible (compile-time)</td>
438
+ <td class="px-3 py-2 border-b">More flexible (run-time)</td>
439
+ </tr>
440
+ <tr>
441
+ <td class="px-3 py-2 border-b">Code Reuse</td>
442
+ <td class="px-3 py-2 border-b">White-box reuse</td>
443
+ <td class="px-3 py-2 border-b">Black-box reuse</td>
444
+ </tr>
445
+ <tr class="bg-gray-50">
446
+ <td class="px-3 py-2 border-b">When to Use</td>
447
+ <td class="px-3 py-2 border-b">True hierarchical relationships</td>
448
+ <td class="px-3 py-2 border-b">Sharing functionality without hierarchy</td>
449
+ </tr>
450
+ </tbody>
451
+ </table>
452
+ </div>
453
+ <div class="mt-3 p-2 bg-yellow-50 rounded border border-yellow-100 text-sm">
454
+ <p class="font-medium text-yellow-800"><i class="fas fa-exclamation-triangle mr-1"></i> Common Mistake</p>
455
+ <p>Students often overuse inheritance when composition would be more appropriate, leading to fragile class hierarchies.</p>
456
+ </div>
457
+ </div>
458
+ </div>
459
+ </div>
460
+ </div>
461
+
462
+ <div class="p-4 border-t border-gray-200 bg-white">
463
+ <div class="flex items-center">
464
+ <button class="p-2 rounded-full hover:bg-gray-100 mr-2">
465
+ <i class="fas fa-paperclip text-gray-500"></i>
466
+ </button>
467
+ <div class="flex-1 relative">
468
+ <input type="text" placeholder="Ask about the module content..." class="w-full pl-4 pr-10 py-3 border rounded-full focus:outline-none focus:ring-2 focus:ring-blue-500">
469
+ <button class="absolute right-3 top-3 text-blue-500">
470
+ <i class="fas fa-paper-plane"></i>
471
+ </button>
472
+ </div>
473
+ <button class="p-2 rounded-full hover:bg-gray-100 ml-2">
474
+ <i class="fas fa-microphone text-gray-500"></i>
475
+ </button>
476
+ </div>
477
+ <div class="flex justify-between mt-2 text-xs text-gray-500">
478
+ <div class="flex space-x-2">
479
+ <button class="px-2 py-1 bg-gray-100 rounded-full flex items-center">
480
+ <i class="fas fa-magic mr-1"></i> Summarize
481
+ </button>
482
+ <button class="px-2 py-1 bg-gray-100 rounded-full flex items-center">
483
+ <i class="fas fa-question mr-1"></i> Quiz Me
484
+ </button>
485
+ </div>
486
+ <div>
487
+ <span>Powered by AI</span>
488
+ </div>
489
+ </div>
490
+ </div>
491
+ </div>
492
+ </div>
493
+ </div>
494
+ </div>
495
+
496
+ <script>
497
+ // Simulate chat functionality
498
+ document.querySelector('.fa-paper-plane').addEventListener('click', function() {
499
+ const input = document.querySelector('input[type="text"]');
500
+ const message = input.value.trim();
501
+
502
+ if (message) {
503
+ // Add user message
504
+ const chatContainer = document.getElementById('chat-container');
505
+ const userMessage = document.createElement('div');
506
+ userMessage.className = 'chat-message mb-4 flex justify-end';
507
+ userMessage.innerHTML = `
508
+ <div class="bg-indigo-100 p-3 rounded-lg shadow-sm max-w-xs">
509
+ <p>${message}</p>
510
+ </div>
511
+ `;
512
+ chatContainer.appendChild(userMessage);
513
+
514
+ // Clear input
515
+ input.value = '';
516
+
517
+ // Add typing indicator
518
+ const typingIndicator = document.createElement('div');
519
+ typingIndicator.className = 'chat-message mb-4';
520
+ typingIndicator.innerHTML = `
521
+ <div class="flex items-start">
522
+ <div class="w-8 h-8 rounded-full bg-indigo-100 flex items-center justify-center mr-3">
523
+ <i class="fas fa-robot text-indigo-600"></i>
524
+ </div>
525
+ <div class="bg-white p-3 rounded-lg shadow-sm max-w-xs">
526
+ <p class="typing-indicator">Assistant is typing</p>
527
+ </div>
528
+ </div>
529
+ `;
530
+ chatContainer.appendChild(typingIndicator);
531
+
532
+ // Scroll to bottom
533
+ chatContainer.scrollTop = chatContainer.scrollHeight;
534
+
535
+ // Simulate response after delay
536
+ setTimeout(() => {
537
+ // Remove typing indicator
538
+ chatContainer.removeChild(typingIndicator);
539
+
540
+ // Add response
541
+ const response = document.createElement('div');
542
+ response.className = 'chat-message mb-4';
543
+ response.innerHTML = `
544
+ <div class="flex items-start">
545
+ <div class="w-8 h-8 rounded-full bg-indigo-100 flex items-center justify-center mr-3">
546
+ <i class="fas fa-robot text-indigo-600"></i>
547
+ </div>
548
+ <div class="bg-white p-3 rounded-lg shadow-sm">
549
+ <p>I've analyzed your question about "${message}". Here's what I found in your module materials:</p>
550
+ <ul class="list-disc pl-5 mt-2 text-sm">
551
+ <li>Relevant content in Lecture 5, slides 8-12</li>
552
+ <li>Mentioned in the Week 5 reading materials</li>
553
+ <li>Covered in lecture video at 15:30</li>
554
+ </ul>
555
+ <div class="mt-3 flex space-x-2">
556
+ <button class="text-xs bg-blue-50 text-blue-600 px-2 py-1 rounded flex items-center">
557
+ <i class="fas fa-book-open mr-1"></i> Show Details
558
+ </button>
559
+ <button class="text-xs bg-purple-50 text-purple-600 px-2 py-1 rounded flex items-center">
560
+ <i class="fas fa-sticky-note mr-1"></i> Make Notes
561
+ </button>
562
+ </div>
563
+ </div>
564
+ </div>
565
+ `;
566
+ chatContainer.appendChild(response);
567
+
568
+ // Scroll to bottom
569
+ chatContainer.scrollTop = chatContainer.scrollHeight;
570
+ }, 1500);
571
+ }
572
+ });
573
+
574
+ // Allow pressing Enter to send message
575
+ document.querySelector('input[type="text"]').addEventListener('keypress', function(e) {
576
+ if (e.key === 'Enter') {
577
+ document.querySelector('.fa-paper-plane').click();
578
+ }
579
+ });
580
+
581
+ // Make content cards clickable
582
+ document.querySelectorAll('.content-card').forEach(card => {
583
+ card.addEventListener('click', function() {
584
+ // In a real app, this would open the content
585
+ alert('Opening content: ' + this.querySelector('h4').textContent);
586
+ });
587
+ });
588
+ </script>
589
+ <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=rahuln99/learning" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
590
+ </html>
prompts.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ build an agent that scrapes my module content (lecture slides, files, readings, lecture videos etc) from my moodle, talis and lecture capture and enables me to interact with my modules, ask it to explain certain material to me or maker revision notes or practice questions and answers