Spaces:
Running

onlyoneritz commited on
Commit
2c2de05
·
verified ·
1 Parent(s): 9edfa56

Add 2 files

Browse files
Files changed (2) hide show
  1. README.md +7 -5
  2. index.html +754 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Learnpath
3
- emoji: 📚
4
- colorFrom: yellow
5
- colorTo: blue
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: learnpath
3
+ emoji: 🐳
4
+ colorFrom: purple
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,754 @@
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>LearnPath | Discover Your Ideal Learning Style & Career</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
+ .learning-card {
11
+ perspective: 1000px;
12
+ }
13
+ .card-inner {
14
+ transition: transform 0.8s;
15
+ transform-style: preserve-3d;
16
+ }
17
+ .card-flipped {
18
+ transform: rotateY(180deg);
19
+ }
20
+ .card-front, .card-back {
21
+ backface-visibility: hidden;
22
+ position: absolute;
23
+ width: 100%;
24
+ height: 100%;
25
+ }
26
+ .card-back {
27
+ transform: rotateY(180deg);
28
+ }
29
+ .progress-dot {
30
+ transition: all 0.3s ease;
31
+ }
32
+ .fade-in {
33
+ animation: fadeIn 0.5s ease-in;
34
+ }
35
+ @keyframes fadeIn {
36
+ from { opacity: 0; }
37
+ to { opacity: 1; }
38
+ }
39
+ .career-card:hover {
40
+ transform: translateY(-5px);
41
+ box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
42
+ }
43
+ </style>
44
+ </head>
45
+ <body class="bg-gradient-to-br from-blue-50 to-indigo-50 min-h-screen font-sans">
46
+ <div class="container mx-auto px-4 py-8 max-w-6xl">
47
+ <!-- Header -->
48
+ <header class="text-center mb-12">
49
+ <div class="w-20 h-20 mx-auto mb-4 bg-white rounded-full shadow-md flex items-center justify-center">
50
+ <i class="fas fa-graduation-cap text-3xl text-indigo-600"></i>
51
+ </div>
52
+ <h1 class="text-4xl font-bold text-indigo-800 mb-2">LearnPath</h1>
53
+ <p class="text-lg text-gray-600">Discover your learning style and find your perfect career match</p>
54
+ </header>
55
+
56
+ <!-- Main App Container -->
57
+ <div id="app" class="bg-white rounded-xl shadow-xl overflow-hidden">
58
+ <!-- Welcome Screen -->
59
+ <div id="welcome-screen" class="p-8 text-center fade-in">
60
+ <div class="max-w-md mx-auto">
61
+ <img src="https://illustrations.popsy.co/amber/graduate.svg" alt="Learning illustration" class="w-64 mx-auto mb-8">
62
+ <h2 class="text-2xl font-semibold text-gray-800 mb-4">Ready to Discover Your Learning Superpowers?</h2>
63
+ <p class="text-gray-600 mb-8">
64
+ This 12-question assessment will identify your dominant learning style and suggest careers that align with your natural strengths and interests.
65
+ </p>
66
+ <button id="start-btn" class="bg-gradient-to-r from-indigo-600 to-blue-600 hover:from-indigo-700 hover:to-blue-700 text-white font-medium py-3 px-8 rounded-full transition-all transform hover:scale-105 shadow-md">
67
+ Start Assessment
68
+ </button>
69
+ <div class="mt-6 text-sm text-gray-500">
70
+ <i class="fas fa-clock mr-1"></i> Takes about 5 minutes
71
+ </div>
72
+ </div>
73
+ </div>
74
+
75
+ <!-- Assessment Screen -->
76
+ <div id="assessment-screen" class="hidden">
77
+ <!-- Progress Dots -->
78
+ <div class="flex justify-center space-x-2 py-4 bg-gray-50">
79
+ <div class="progress-dot w-3 h-3 rounded-full bg-gray-300" data-question="0"></div>
80
+ <div class="progress-dot w-3 h-3 rounded-full bg-gray-300" data-question="1"></div>
81
+ <div class="progress-dot w-3 h-3 rounded-full bg-gray-300" data-question="2"></div>
82
+ <div class="progress-dot w-3 h-3 rounded-full bg-gray-300" data-question="3"></div>
83
+ <div class="progress-dot w-3 h-3 rounded-full bg-gray-300" data-question="4"></div>
84
+ <div class="progress-dot w-3 h-3 rounded-full bg-gray-300" data-question="5"></div>
85
+ <div class="progress-dot w-3 h-3 rounded-full bg-gray-300" data-question="6"></div>
86
+ <div class="progress-dot w-3 h-3 rounded-full bg-gray-300" data-question="7"></div>
87
+ <div class="progress-dot w-3 h-3 rounded-full bg-gray-300" data-question="8"></div>
88
+ <div class="progress-dot w-3 h-3 rounded-full bg-gray-300" data-question="9"></div>
89
+ <div class="progress-dot w-3 h-3 rounded-full bg-gray-300" data-question="10"></div>
90
+ <div class="progress-dot w-3 h-3 rounded-full bg-gray-300" data-question="11"></div>
91
+ </div>
92
+
93
+ <!-- Question Container -->
94
+ <div class="p-8">
95
+ <div class="learning-card relative h-96 mb-8">
96
+ <!-- Question Card -->
97
+ <div id="question-card" class="card-inner w-full h-full bg-white rounded-lg shadow-md p-6 relative">
98
+ <!-- Front of Card (Question) -->
99
+ <div class="card-front flex flex-col">
100
+ <div class="flex justify-between items-start mb-6">
101
+ <span id="question-number" class="text-sm font-medium text-indigo-600 bg-indigo-50 px-3 py-1 rounded-full">Question 1 of 12</span>
102
+ <button id="flip-btn" class="text-gray-400 hover:text-indigo-500">
103
+ <i class="fas fa-info-circle"></i>
104
+ </button>
105
+ </div>
106
+ <h3 id="question-text" class="text-xl font-medium text-gray-800 mb-6 flex-grow">When learning something new, I prefer to:</h3>
107
+ <div id="options-container" class="grid gap-4">
108
+ <!-- Options will be inserted here -->
109
+ </div>
110
+ </div>
111
+
112
+ <!-- Back of Card (Explanation) -->
113
+ <div class="card-back bg-indigo-50 p-6 rounded-lg">
114
+ <div class="flex justify-between items-start mb-4">
115
+ <span class="text-sm font-medium text-indigo-600 bg-white px-3 py-1 rounded-full">Did You Know?</span>
116
+ <button id="flip-back-btn" class="text-gray-400 hover:text-indigo-500">
117
+ <i class="fas fa-times"></i>
118
+ </button>
119
+ </div>
120
+ <p id="question-explanation" class="text-gray-700">
121
+ There are four main learning styles: Visual (learn by seeing), Auditory (learn by hearing), Reading/Writing (learn by processing text), and Kinesthetic (learn by doing). Most people have a dominant style but use a mix of all four.
122
+ </p>
123
+ </div>
124
+ </div>
125
+ </div>
126
+
127
+ <!-- Navigation -->
128
+ <div class="flex justify-between items-center">
129
+ <button id="prev-btn" class="text-gray-500 hover:text-indigo-600 font-medium py-2 px-4 rounded-lg disabled:opacity-50" disabled>
130
+ <i class="fas fa-arrow-left mr-2"></i> Back
131
+ </button>
132
+ <button id="next-btn" class="bg-indigo-600 hover:bg-indigo-700 text-white font-medium py-2 px-6 rounded-lg disabled:opacity-50" disabled>
133
+ Next <i class="fas fa-arrow-right ml-2"></i>
134
+ </button>
135
+ </div>
136
+ </div>
137
+ </div>
138
+
139
+ <!-- Results Screen -->
140
+ <div id="results-screen" class="hidden p-8">
141
+ <div class="text-center mb-12">
142
+ <div class="w-24 h-24 mx-auto mb-6 bg-green-100 rounded-full flex items-center justify-center">
143
+ <i class="fas fa-star text-4xl text-green-500"></i>
144
+ </div>
145
+ <h2 class="text-2xl font-semibold text-gray-800 mb-2">Your Learning Profile</h2>
146
+ <p class="text-gray-600 max-w-2xl mx-auto">Based on your answers, here's your learning style breakdown and career suggestions that match your strengths.</p>
147
+ </div>
148
+
149
+ <!-- Learning Style Results -->
150
+ <div class="mb-12">
151
+ <h3 class="text-xl font-medium text-gray-800 mb-6 text-center">Your Learning Style Composition</h3>
152
+ <div class="grid md:grid-cols-2 gap-8 items-center">
153
+ <div id="learning-chart" class="bg-white p-6 rounded-xl shadow-sm">
154
+ <!-- Chart will be rendered here -->
155
+ <div class="flex justify-center items-center h-64">
156
+ <div id="chart-placeholder" class="text-gray-400">
157
+ <i class="fas fa-chart-pie text-5xl mb-2"></i>
158
+ <p>Loading your learning style chart...</p>
159
+ </div>
160
+ </div>
161
+ </div>
162
+ <div id="learning-description" class="space-y-4">
163
+ <!-- Description will be inserted here -->
164
+ </div>
165
+ </div>
166
+ </div>
167
+
168
+ <!-- Career Recommendations -->
169
+ <div class="mb-12">
170
+ <h3 class="text-xl font-medium text-gray-800 mb-6 text-center">Recommended Career Paths</h3>
171
+ <div id="career-grid" class="grid md:grid-cols-3 gap-6">
172
+ <!-- Career cards will be inserted here -->
173
+ </div>
174
+ </div>
175
+
176
+ <!-- Action Buttons -->
177
+ <div class="text-center mt-10">
178
+ <button id="restart-btn" class="bg-indigo-600 hover:bg-indigo-700 text-white font-medium py-3 px-8 rounded-full transition-all transform hover:scale-105 shadow-md mr-4">
179
+ <i class="fas fa-redo mr-2"></i> Take Again
180
+ </button>
181
+ <button id="resources-btn" class="bg-white border border-indigo-200 hover:bg-indigo-50 text-indigo-600 font-medium py-3 px-8 rounded-full transition-all transform hover:scale-105 shadow-md">
182
+ <i class="fas fa-book mr-2"></i> Learning Resources
183
+ </button>
184
+ </div>
185
+ </div>
186
+ </div>
187
+
188
+ <!-- Footer -->
189
+ <footer class="mt-12 text-center text-sm text-gray-500">
190
+ <p>© 2023 LearnPath. Educational assessment tool.</p>
191
+ <p class="mt-1">Results are suggestions only - many factors contribute to career success.</p>
192
+ </footer>
193
+ </div>
194
+
195
+ <script>
196
+ document.addEventListener('DOMContentLoaded', function() {
197
+ // DOM Elements
198
+ const welcomeScreen = document.getElementById('welcome-screen');
199
+ const assessmentScreen = document.getElementById('assessment-screen');
200
+ const resultsScreen = document.getElementById('results-screen');
201
+ const startBtn = document.getElementById('start-btn');
202
+ const prevBtn = document.getElementById('prev-btn');
203
+ const nextBtn = document.getElementById('next-btn');
204
+ const flipBtn = document.getElementById('flip-btn');
205
+ const flipBackBtn = document.getElementById('flip-back-btn');
206
+ const questionCard = document.getElementById('question-card');
207
+ const questionText = document.getElementById('question-text');
208
+ const questionExplanation = document.getElementById('question-explanation');
209
+ const questionNumber = document.getElementById('question-number');
210
+ const progressDots = document.querySelectorAll('.progress-dot');
211
+ const optionsContainer = document.getElementById('options-container');
212
+ const learningDescription = document.getElementById('learning-description');
213
+ const careerGrid = document.getElementById('career-grid');
214
+ const restartBtn = document.getElementById('restart-btn');
215
+ const resourcesBtn = document.getElementById('resources-btn');
216
+
217
+ // Assessment Data
218
+ const questions = [
219
+ {
220
+ text: "When learning something new, I prefer to:",
221
+ explanation: "Your initial approach to learning reveals your natural preferences.",
222
+ options: [
223
+ { text: "See diagrams, charts, or demonstrations", value: "visual", icon: "fa-eye" },
224
+ { text: "Listen to explanations or discussions", value: "auditory", icon: "fa-assistive-listening-systems" },
225
+ { text: "Try it out hands-on or move around", value: "kinesthetic", icon: "fa-hands" },
226
+ { text: "Read detailed instructions or texts", value: "reading", icon: "fa-book-open" }
227
+ ]
228
+ },
229
+ {
230
+ text: "I remember information best when I:",
231
+ explanation: "Memory retention varies by learning style.",
232
+ options: [
233
+ { text: "See it written down or visualized", value: "visual", icon: "fa-eye" },
234
+ { text: "Hear it explained or discussed", value: "auditory", icon: "fa-assistive-listening-systems" },
235
+ { text: "Do something physical with it", value: "kinesthetic", icon: "fa-hands" },
236
+ { text: "Write it down or summarize it", value: "reading", icon: "fa-book-open" }
237
+ ]
238
+ },
239
+ {
240
+ text: "When giving directions to someone, I tend to:",
241
+ explanation: "How you communicate information often reflects your preferred learning style.",
242
+ options: [
243
+ { text: "Draw a map or diagram", value: "visual", icon: "fa-eye" },
244
+ { text: "Explain verbally with landmarks", value: "auditory", icon: "fa-assistive-listening-systems" },
245
+ { text: "Show them by walking them through it", value: "kinesthetic", icon: "fa-hands" },
246
+ { text: "Write down step-by-step instructions", value: "reading", icon: "fa-book-open" }
247
+ ]
248
+ },
249
+ {
250
+ text: "In my free time, I most enjoy:",
251
+ explanation: "Your leisure activities can indicate your natural learning preferences.",
252
+ options: [
253
+ { text: "Watching movies or looking at art", value: "visual", icon: "fa-eye" },
254
+ { text: "Listening to music or podcasts", value: "auditory", icon: "fa-assistive-listening-systems" },
255
+ { text: "Sports, crafts, or hands-on hobbies", value: "kinesthetic", icon: "fa-hands" },
256
+ { text: "Reading books or writing", value: "reading", icon: "fa-book-open" }
257
+ ]
258
+ },
259
+ {
260
+ text: "When solving a problem, I usually:",
261
+ explanation: "Problem-solving approaches often align with learning styles.",
262
+ options: [
263
+ { text: "Draw diagrams or visualize solutions", value: "visual", icon: "fa-eye" },
264
+ { text: "Talk it through with someone", value: "auditory", icon: "fa-assistive-listening-systems" },
265
+ { text: "Try different approaches physically", value: "kinesthetic", icon: "fa-hands" },
266
+ { text: "Make lists of possible solutions", value: "reading", icon: "fa-book-open" }
267
+ ]
268
+ },
269
+ {
270
+ text: "In a classroom setting, I learn best when the teacher:",
271
+ explanation: "Different teaching methods appeal to different learning styles.",
272
+ options: [
273
+ { text: "Uses visual aids and demonstrations", value: "visual", icon: "fa-eye" },
274
+ { text: "Gives clear verbal explanations", value: "auditory", icon: "fa-assistive-listening-systems" },
275
+ { text: "Includes hands-on activities", value: "kinesthetic", icon: "fa-hands" },
276
+ { text: "Provides detailed written materials", value: "reading", icon: "fa-book-open" }
277
+ ]
278
+ },
279
+ {
280
+ text: "When studying for a test, I find it most helpful to:",
281
+ explanation: "Study techniques that work best for you reveal your learning preferences.",
282
+ options: [
283
+ { text: "Use color-coded notes and diagrams", value: "visual", icon: "fa-eye" },
284
+ { text: "Record and listen to key points", value: "auditory", icon: "fa-assistive-listening-systems" },
285
+ { text: "Create flashcards or physical models", value: "kinesthetic", icon: "fa-hands" },
286
+ { text: "Rewrite and summarize notes", value: "reading", icon: "fa-book-open" }
287
+ ]
288
+ },
289
+ {
290
+ text: "I tend to get distracted by:",
291
+ explanation: "What distracts you can indicate what learning environment suits you best.",
292
+ options: [
293
+ { text: "Cluttered or disorganized visuals", value: "visual", icon: "fa-eye" },
294
+ { text: "Background noise or conversations", value: "auditory", icon: "fa-assistive-listening-systems" },
295
+ { text: "The need to move or fidget", value: "kinesthetic", icon: "fa-hands" },
296
+ { text: "Poorly written or unclear text", value: "reading", icon: "fa-book-open" }
297
+ ]
298
+ },
299
+ {
300
+ text: "When assembling furniture or a gadget, I typically:",
301
+ explanation: "Your approach to hands-on tasks shows your kinesthetic learning tendencies.",
302
+ options: [
303
+ { text: "Look at the pictures in the manual", value: "visual", icon: "fa-eye" },
304
+ { text: "Ask someone to explain the steps", value: "auditory", icon: "fa-assistive-listening-systems" },
305
+ { text: "Start putting it together immediately", value: "kinesthetic", icon: "fa-hands" },
306
+ { text: "Read the instructions carefully first", value: "reading", icon: "fa-book-open" }
307
+ ]
308
+ },
309
+ {
310
+ text: "When learning a new skill, I prefer to start by:",
311
+ explanation: "Your initial approach to new skills reflects your learning style.",
312
+ options: [
313
+ { text: "Watching someone demonstrate it", value: "visual", icon: "fa-eye" },
314
+ { text: "Listening to explanations about it", value: "auditory", icon: "fa-assistive-listening-systems" },
315
+ { text: "Jumping in and trying it out", value: "kinesthetic", icon: "fa-hands" },
316
+ { text: "Reading about how to do it", value: "reading", icon: "fa-book-open" }
317
+ ]
318
+ },
319
+ {
320
+ text: "In a meeting or lecture, I'm most likely to:",
321
+ explanation: "Your natural behavior in information-sharing settings indicates your learning preferences.",
322
+ options: [
323
+ { text: "Take visual notes with diagrams", value: "visual", icon: "fa-eye" },
324
+ { text: "Focus on listening carefully", value: "auditory", icon: "fa-assistive-listening-systems" },
325
+ { text: "Fidget or doodle to stay focused", value: "kinesthetic", icon: "fa-hands" },
326
+ { text: "Write detailed notes", value: "reading", icon: "fa-book-open" }
327
+ ]
328
+ },
329
+ {
330
+ text: "When choosing a book, I'm most attracted to:",
331
+ explanation: "Your reading preferences can reveal aspects of your learning style.",
332
+ options: [
333
+ { text: "Books with lots of pictures or diagrams", value: "visual", icon: "fa-eye" },
334
+ { text: "Audiobooks or books with dialogue", value: "auditory", icon: "fa-assistive-listening-systems" },
335
+ { text: "Interactive books with activities", value: "kinesthetic", icon: "fa-hands" },
336
+ { text: "Detailed, well-written texts", value: "reading", icon: "fa-book-open" }
337
+ ]
338
+ }
339
+ ];
340
+
341
+ // Career Recommendations by Learning Style
342
+ const careerRecommendations = {
343
+ visual: [
344
+ { title: "Graphic Designer", icon: "fa-paint-brush", description: "Create visual concepts to communicate ideas that inspire, inform, and captivate consumers." },
345
+ { title: "Architect", icon: "fa-building", description: "Plan and design buildings, creating both functional and artistic structures." },
346
+ { title: "Photographer", icon: "fa-camera", description: "Use technical expertise and creativity to capture images that tell a story." },
347
+ { title: "Surgeon", icon: "fa-heartbeat", description: "Perform operations requiring precise visual-spatial skills and hand-eye coordination." },
348
+ { title: "Pilot", icon: "fa-plane", description: "Navigate aircraft using visual references and instrument readings." }
349
+ ],
350
+ auditory: [
351
+ { title: "Musician", icon: "fa-music", description: "Perform, compose, or teach music, relying on auditory skills and rhythm." },
352
+ { title: "Psychologist", icon: "fa-comments", description: "Help people through listening and verbal communication." },
353
+ { title: "Broadcast Journalist", icon: "fa-microphone", description: "Research and present news stories through spoken word." },
354
+ { title: "Language Interpreter", icon: "fa-language", description: "Convert information from one language to another in real-time." },
355
+ { title: "Customer Service Rep", icon: "fa-headset", description: "Assist customers primarily through phone conversations." }
356
+ ],
357
+ kinesthetic: [
358
+ { title: "Athlete", icon: "fa-running", description: "Compete in sports requiring physical coordination and movement." },
359
+ { title: "Chef", icon: "fa-utensils", description: "Prepare food using hands-on techniques and creative presentation." },
360
+ { title: "Physical Therapist", icon: "fa-hands-helping", description: "Help patients improve movement through hands-on techniques." },
361
+ { title: "Mechanic", icon: "fa-car", description: "Repair vehicles using tools and physical problem-solving." },
362
+ { title: "Dancer", icon: "fa-child", description: "Express ideas through movement and physical performance." }
363
+ ],
364
+ reading: [
365
+ { title: "Writer", icon: "fa-pen-fancy", description: "Create written content across various genres and formats." },
366
+ { title: "Lawyer", icon: "fa-gavel", description: "Analyze complex documents and argue cases based on written law." },
367
+ { title: "Librarian", icon: "fa-book", description: "Organize and manage information resources in written form." },
368
+ { title: "Researcher", icon: "fa-microscope", description: "Conduct studies and document findings in written reports." },
369
+ { title: "Editor", icon: "fa-edit", description: "Review and improve written materials for publication." }
370
+ ]
371
+ };
372
+
373
+ // Learning Style Descriptions
374
+ const styleDescriptions = {
375
+ visual: {
376
+ title: "Visual Learner",
377
+ icon: "fa-eye",
378
+ color: "text-blue-500",
379
+ bgColor: "bg-blue-50",
380
+ description: "You learn best when information is presented visually through pictures, diagrams, charts, and demonstrations. You likely think in images and benefit from visual representations of information.",
381
+ strengths: [
382
+ "Strong visual memory",
383
+ "Good at reading maps and charts",
384
+ "Notice visual details others miss",
385
+ "Artistic and creative"
386
+ ],
387
+ tips: [
388
+ "Use color coding in your notes",
389
+ "Create mind maps and diagrams",
390
+ "Watch instructional videos",
391
+ "Sit where you can see clearly in classrooms"
392
+ ]
393
+ },
394
+ auditory: {
395
+ title: "Auditory Learner",
396
+ icon: "fa-assistive-listening-systems",
397
+ color: "text-green-500",
398
+ bgColor: "bg-green-50",
399
+ description: "You learn best through listening. Lectures, discussions, and verbal explanations help you understand concepts. You likely remember what you hear and benefit from talking through ideas.",
400
+ strengths: [
401
+ "Good at remembering names and conversations",
402
+ "Strong verbal communication skills",
403
+ "Musical ability",
404
+ "Talented at oral presentations"
405
+ ],
406
+ tips: [
407
+ "Record lectures to listen again later",
408
+ "Participate in study groups",
409
+ "Read aloud or explain concepts to others",
410
+ "Use rhymes or songs to remember information"
411
+ ]
412
+ },
413
+ kinesthetic: {
414
+ title: "Kinesthetic Learner",
415
+ icon: "fa-hands",
416
+ color: "text-yellow-500",
417
+ bgColor: "bg-yellow-50",
418
+ description: "You learn best by doing and through physical activity. Hands-on experiences and movement help you understand and retain information. You likely think best while moving and benefit from active learning.",
419
+ strengths: [
420
+ "Excellent hand-eye coordination",
421
+ "Good at sports and physical activities",
422
+ "Quick reflexes",
423
+ "Strong muscle memory"
424
+ ],
425
+ tips: [
426
+ "Take frequent study breaks to move around",
427
+ "Use physical objects to learn concepts",
428
+ "Study while exercising (like on a treadmill)",
429
+ "Act out or physically demonstrate ideas"
430
+ ]
431
+ },
432
+ reading: {
433
+ title: "Reading/Writing Learner",
434
+ icon: "fa-book-open",
435
+ color: "text-purple-500",
436
+ bgColor: "bg-purple-50",
437
+ description: "You learn best through written words. Reading and writing activities help you process information most effectively. You likely enjoy lists, notes, and textbooks as learning tools.",
438
+ strengths: [
439
+ "Strong reading comprehension",
440
+ "Excellent writing skills",
441
+ "Good at taking notes",
442
+ "Talented at research and documentation"
443
+ ],
444
+ tips: [
445
+ "Rewrite notes in your own words",
446
+ "Create detailed outlines",
447
+ "Read supplementary materials",
448
+ "Write summaries of what you learn"
449
+ ]
450
+ }
451
+ };
452
+
453
+ // App State
454
+ let currentQuestion = 0;
455
+ let answers = Array(questions.length).fill(null);
456
+ let styleScores = {
457
+ visual: 0,
458
+ auditory: 0,
459
+ kinesthetic: 0,
460
+ reading: 0
461
+ };
462
+ let dominantStyle = '';
463
+
464
+ // Event Listeners
465
+ startBtn.addEventListener('click', startAssessment);
466
+ prevBtn.addEventListener('click', showPreviousQuestion);
467
+ nextBtn.addEventListener('click', showNextQuestion);
468
+ flipBtn.addEventListener('click', flipCard);
469
+ flipBackBtn.addEventListener('click', flipCard);
470
+ restartBtn.addEventListener('click', restartAssessment);
471
+ resourcesBtn.addEventListener('click', showResources);
472
+
473
+ // Functions
474
+ function startAssessment() {
475
+ welcomeScreen.classList.add('hidden');
476
+ assessmentScreen.classList.remove('hidden');
477
+ updateQuestion();
478
+ }
479
+
480
+ function updateQuestion() {
481
+ const question = questions[currentQuestion];
482
+ questionText.textContent = question.text;
483
+ questionExplanation.textContent = question.explanation;
484
+ questionNumber.textContent = `Question ${currentQuestion + 1} of ${questions.length}`;
485
+
486
+ // Clear previous options
487
+ optionsContainer.innerHTML = '';
488
+
489
+ // Add new options
490
+ question.options.forEach(option => {
491
+ const optionBtn = document.createElement('button');
492
+ optionBtn.className = 'option-btn bg-indigo-50 hover:bg-indigo-100 text-indigo-700 font-medium py-3 px-4 rounded-lg transition-all text-left';
493
+ optionBtn.dataset.value = option.value;
494
+
495
+ // Highlight if this option was previously selected
496
+ if (answers[currentQuestion] === option.value) {
497
+ optionBtn.classList.add('bg-indigo-200', 'text-indigo-800');
498
+ optionBtn.classList.remove('bg-indigo-50');
499
+ }
500
+
501
+ optionBtn.innerHTML = `
502
+ <i class="fas ${option.icon} mr-2 text-indigo-500"></i> ${option.text}
503
+ `;
504
+
505
+ optionBtn.addEventListener('click', function() {
506
+ selectOption(this);
507
+ });
508
+
509
+ optionsContainer.appendChild(optionBtn);
510
+ });
511
+
512
+ // Update progress dots
513
+ progressDots.forEach(dot => {
514
+ const dotQuestion = parseInt(dot.dataset.question);
515
+ if (dotQuestion < currentQuestion) {
516
+ dot.classList.remove('bg-gray-300');
517
+ dot.classList.add('bg-indigo-500');
518
+ } else if (dotQuestion === currentQuestion) {
519
+ dot.classList.remove('bg-gray-300', 'bg-indigo-500');
520
+ dot.classList.add('bg-indigo-300');
521
+ } else {
522
+ dot.classList.remove('bg-indigo-500', 'bg-indigo-300');
523
+ dot.classList.add('bg-gray-300');
524
+ }
525
+ });
526
+
527
+ // Update navigation buttons
528
+ prevBtn.disabled = currentQuestion === 0;
529
+ nextBtn.disabled = answers[currentQuestion] === null;
530
+ }
531
+
532
+ function showPreviousQuestion() {
533
+ if (currentQuestion > 0) {
534
+ currentQuestion--;
535
+ updateQuestion();
536
+ }
537
+ }
538
+
539
+ function showNextQuestion() {
540
+ if (answers[currentQuestion] !== null) {
541
+ if (currentQuestion < questions.length - 1) {
542
+ currentQuestion++;
543
+ updateQuestion();
544
+ } else {
545
+ calculateResults();
546
+ showResults();
547
+ }
548
+ }
549
+ }
550
+
551
+ function selectOption(selectedBtn) {
552
+ const selectedValue = selectedBtn.dataset.value;
553
+ answers[currentQuestion] = selectedValue;
554
+
555
+ // Update UI for selected option
556
+ const optionBtns = document.querySelectorAll('.option-btn');
557
+ optionBtns.forEach(btn => {
558
+ if (btn.dataset.value === selectedValue) {
559
+ btn.classList.add('bg-indigo-200', 'text-indigo-800');
560
+ btn.classList.remove('bg-indigo-50');
561
+ } else {
562
+ btn.classList.remove('bg-indigo-200', 'text-indigo-800');
563
+ btn.classList.add('bg-indigo-50');
564
+ }
565
+ });
566
+
567
+ nextBtn.disabled = false;
568
+ }
569
+
570
+ function flipCard() {
571
+ questionCard.classList.toggle('card-flipped');
572
+ }
573
+
574
+ function calculateResults() {
575
+ // Reset scores
576
+ Object.keys(styleScores).forEach(style => {
577
+ styleScores[style] = 0;
578
+ });
579
+
580
+ // Calculate scores for each style
581
+ answers.forEach(answer => {
582
+ if (answer) {
583
+ styleScores[answer]++;
584
+ }
585
+ });
586
+
587
+ // Find dominant style
588
+ let maxScore = 0;
589
+ Object.entries(styleScores).forEach(([style, score]) => {
590
+ if (score > maxScore) {
591
+ maxScore = score;
592
+ dominantStyle = style;
593
+ }
594
+ });
595
+ }
596
+
597
+ function showResults() {
598
+ assessmentScreen.classList.add('hidden');
599
+ resultsScreen.classList.remove('hidden');
600
+
601
+ // Display learning style description
602
+ const dominantStyleData = styleDescriptions[dominantStyle];
603
+
604
+ learningDescription.innerHTML = `
605
+ <div class="flex items-center mb-4">
606
+ <div class="w-12 h-12 rounded-full ${dominantStyleData.bgColor} flex items-center justify-center mr-4">
607
+ <i class="fas ${dominantStyleData.icon} text-xl ${dominantStyleData.color}"></i>
608
+ </div>
609
+ <h3 class="text-xl font-semibold text-gray-800">Your Dominant Style: ${dominantStyleData.title}</h3>
610
+ </div>
611
+ <p class="text-gray-700 mb-4">${dominantStyleData.description}</p>
612
+
613
+ <div class="grid md:grid-cols-2 gap-6">
614
+ <div>
615
+ <h4 class="font-medium text-gray-800 mb-2">Your Strengths:</h4>
616
+ <ul class="list-disc list-inside text-gray-700 space-y-1">
617
+ ${dominantStyleData.strengths.map(strength => `<li>${strength}</li>`).join('')}
618
+ </ul>
619
+ </div>
620
+ <div>
621
+ <h4 class="font-medium text-gray-800 mb-2">Learning Tips:</h4>
622
+ <ul class="list-disc list-inside text-gray-700 space-y-1">
623
+ ${dominantStyleData.tips.map(tip => `<li>${tip}</li>`).join('')}
624
+ </ul>
625
+ </div>
626
+ </div>
627
+ `;
628
+
629
+ // Display career recommendations
630
+ careerGrid.innerHTML = '';
631
+
632
+ // Get top 3 styles (including ties)
633
+ const sortedStyles = Object.entries(styleScores)
634
+ .sort((a, b) => b[1] - a[1])
635
+ .map(item => item[0]);
636
+
637
+ // Combine career recommendations from top styles
638
+ const recommendedCareers = [];
639
+
640
+ sortedStyles.slice(0, 2).forEach(style => {
641
+ careerRecommendations[style].slice(0, 2).forEach(career => {
642
+ if (!recommendedCareers.some(c => c.title === career.title)) {
643
+ recommendedCareers.push(career);
644
+ }
645
+ });
646
+ });
647
+
648
+ // Fill with additional careers from dominant style if needed
649
+ if (recommendedCareers.length < 6) {
650
+ careerRecommendations[dominantStyle].forEach(career => {
651
+ if (recommendedCareers.length < 6 && !recommendedCareers.some(c => c.title === career.title)) {
652
+ recommendedCareers.push(career);
653
+ }
654
+ });
655
+ }
656
+
657
+ // Display career cards
658
+ recommendedCareers.forEach(career => {
659
+ const careerCard = document.createElement('div');
660
+ careerCard.className = 'career-card bg-white rounded-lg shadow-md p-6 border-t-4 border-indigo-200 transition-all';
661
+ careerCard.innerHTML = `
662
+ <div class="flex items-center mb-4">
663
+ <div class="w-10 h-10 rounded-full bg-indigo-50 flex items-center justify-center mr-3">
664
+ <i class="fas ${career.icon} text-indigo-500"></i>
665
+ </div>
666
+ <h3 class="font-medium text-gray-800">${career.title}</h3>
667
+ </div>
668
+ <p class="text-gray-600 text-sm">${career.description}</p>
669
+ `;
670
+ careerGrid.appendChild(careerCard);
671
+ });
672
+
673
+ // Create pie chart visualization
674
+ createLearningChart();
675
+ }
676
+
677
+ function createLearningChart() {
678
+ // In a real app, you would use a charting library like Chart.js
679
+ // This is a simplified visualization for demonstration
680
+ const chartPlaceholder = document.getElementById('chart-placeholder');
681
+ chartPlaceholder.innerHTML = `
682
+ <div class="relative w-48 h-48 mx-auto">
683
+ <!-- Visual -->
684
+ <div class="absolute inset-0 rounded-full bg-blue-100 flex items-center justify-center"
685
+ style="clip-path: polygon(50% 50%, 50% 0%, ${50 + 40 * (styleScores.visual / 12) * Math.cos(Math.PI/4)}% ${50 - 40 * (styleScores.visual / 12) * Math.sin(Math.PI/4)}%)">
686
+ <div class="w-16 h-16 rounded-full bg-blue-200 flex items-center justify-center">
687
+ <i class="fas fa-eye text-blue-600"></i>
688
+ </div>
689
+ </div>
690
+ <!-- Auditory -->
691
+ <div class="absolute inset-0 rounded-full bg-green-100 flex items-center justify-center"
692
+ style="clip-path: polygon(50% 50%, 50% 0%, ${50 + 40 * (styleScores.auditory / 12) * Math.cos(3*Math.PI/4)}% ${50 + 40 * (styleScores.auditory / 12) * Math.sin(3*Math.PI/4)}%)">
693
+ <div class="w-16 h-16 rounded-full bg-green-200 flex items-center justify-center">
694
+ <i class="fas fa-assistive-listening-systems text-green-600"></i>
695
+ </div>
696
+ </div>
697
+ <!-- Kinesthetic -->
698
+ <div class="absolute inset-0 rounded-full bg-yellow-100 flex items-center justify-center"
699
+ style="clip-path: polygon(50% 50%, 50% 0%, ${50 + 40 * (styleScores.kinesthetic / 12) * Math.cos(5*Math.PI/4)}% ${50 + 40 * (styleScores.kinesthetic / 12) * Math.sin(5*Math.PI/4)}%)">
700
+ <div class="w-16 h-16 rounded-full bg-yellow-200 flex items-center justify-center">
701
+ <i class="fas fa-hands text-yellow-600"></i>
702
+ </div>
703
+ </div>
704
+ <!-- Reading -->
705
+ <div class="absolute inset-0 rounded-full bg-purple-100 flex items-center justify-center"
706
+ style="clip-path: polygon(50% 50%, 50% 0%, ${50 + 40 * (styleScores.reading / 12) * Math.cos(7*Math.PI/4)}% ${50 - 40 * (styleScores.reading / 12) * Math.sin(7*Math.PI/4)}%)">
707
+ <div class="w-16 h-16 rounded-full bg-purple-200 flex items-center justify-center">
708
+ <i class="fas fa-book-open text-purple-600"></i>
709
+ </div>
710
+ </div>
711
+ </div>
712
+ <div class="mt-6 flex justify-center space-x-6">
713
+ <div class="flex items-center">
714
+ <div class="w-3 h-3 rounded-full bg-blue-500 mr-2"></div>
715
+ <span class="text-sm">Visual (${styleScores.visual})</span>
716
+ </div>
717
+ <div class="flex items-center">
718
+ <div class="w-3 h-3 rounded-full bg-green-500 mr-2"></div>
719
+ <span class="text-sm">Auditory (${styleScores.auditory})</span>
720
+ </div>
721
+ <div class="flex items-center">
722
+ <div class="w-3 h-3 rounded-full bg-yellow-500 mr-2"></div>
723
+ <span class="text-sm">Kinesthetic (${styleScores.kinesthetic})</span>
724
+ </div>
725
+ <div class="flex items-center">
726
+ <div class="w-3 h-3 rounded-full bg-purple-500 mr-2"></div>
727
+ <span class="text-sm">Reading (${styleScores.reading})</span>
728
+ </div>
729
+ </div>
730
+ `;
731
+ }
732
+
733
+ function restartAssessment() {
734
+ currentQuestion = 0;
735
+ answers = Array(questions.length).fill(null);
736
+ styleScores = {
737
+ visual: 0,
738
+ auditory: 0,
739
+ kinesthetic: 0,
740
+ reading: 0
741
+ };
742
+ dominantStyle = '';
743
+
744
+ resultsScreen.classList.add('hidden');
745
+ welcomeScreen.classList.remove('hidden');
746
+ }
747
+
748
+ function showResources() {
749
+ alert("In a complete application, this would show recommended books, courses, and learning strategies tailored to your dominant learning style.");
750
+ }
751
+ });
752
+ </script>
753
+ <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=onlyoneritz/learnpath" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
754
+ </html>