Spaces:
Running

fwvegre commited on
Commit
2aa4a7e
·
verified ·
1 Parent(s): a06b583

Add 3 files

Browse files
Files changed (3) hide show
  1. README.md +7 -5
  2. index.html +938 -19
  3. prompts.txt +6 -0
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Bilal
3
- emoji: 👁
4
- colorFrom: gray
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: bilal
3
+ emoji: 🐳
4
+ colorFrom: blue
5
+ colorTo: yellow
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,938 @@
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" dir="ltr">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>LinguaLearn - English for Beginners</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
+ @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
11
+
12
+ :root {
13
+ --primary: #4f46e5;
14
+ --secondary: #10b981;
15
+ --accent: #f59e0b;
16
+ }
17
+
18
+ body {
19
+ font-family: 'Poppins', sans-serif;
20
+ max-width: 500px;
21
+ margin: 0 auto;
22
+ background-color: #f8fafc;
23
+ height: 100vh;
24
+ position: relative;
25
+ overflow-x: hidden;
26
+ }
27
+
28
+ .tab-content {
29
+ display: none;
30
+ }
31
+
32
+ .tab-content.active {
33
+ display: block;
34
+ animation: fadeIn 0.5s;
35
+ }
36
+
37
+ @keyframes fadeIn {
38
+ from { opacity: 0; transform: translateY(10px); }
39
+ to { opacity: 1; transform: translateY(0); }
40
+ }
41
+
42
+ .progress-ring__circle {
43
+ transition: stroke-dashoffset 0.5s;
44
+ transform: rotate(-90deg);
45
+ transform-origin: 50% 50%;
46
+ }
47
+
48
+ .word-card {
49
+ transition: all 0.3s ease;
50
+ perspective: 1000px;
51
+ }
52
+
53
+ .word-card:hover {
54
+ transform: translateY(-5px) scale(1.02);
55
+ box-shadow: 0 10px 25px rgba(0,0,0,0.1);
56
+ }
57
+
58
+ .speech-bubble {
59
+ position: relative;
60
+ background: #e3f2fd;
61
+ border-radius: 12px;
62
+ }
63
+
64
+ .speech-bubble:after {
65
+ content: '';
66
+ position: absolute;
67
+ bottom: -10px;
68
+ left: 20px;
69
+ border-width: 10px 10px 0;
70
+ border-style: solid;
71
+ border-color: #e3f2fd transparent;
72
+ }
73
+
74
+ .option-btn.correct {
75
+ background-color: #10b981 !important;
76
+ color: white !important;
77
+ animation: pulse 0.5s;
78
+ }
79
+
80
+ .option-btn.wrong {
81
+ background-color: #ef4444 !important;
82
+ color: white !important;
83
+ animation: shake 0.5s;
84
+ }
85
+
86
+ .xp-bar {
87
+ transition: width 0.5s ease;
88
+ }
89
+
90
+ .floating-btn {
91
+ animation: float 3s ease-in-out infinite;
92
+ box-shadow: 0 5px 15px rgba(79, 70, 229, 0.4);
93
+ }
94
+
95
+ @keyframes float {
96
+ 0% { transform: translateY(0px); }
97
+ 50% { transform: translateY(-10px); }
98
+ 100% { transform: translateY(0px); }
99
+ }
100
+
101
+ @keyframes pulse {
102
+ 0% { transform: scale(1); }
103
+ 50% { transform: scale(1.05); }
104
+ 100% { transform: scale(1); }
105
+ }
106
+
107
+ @keyframes shake {
108
+ 0%, 100% { transform: translateX(0); }
109
+ 20%, 60% { transform: translateX(-5px); }
110
+ 40%, 80% { transform: translateX(5px); }
111
+ }
112
+
113
+ .rtl {
114
+ direction: rtl;
115
+ text-align: right;
116
+ }
117
+
118
+ .streak-flame {
119
+ animation: flame 1.5s infinite alternate;
120
+ }
121
+
122
+ @keyframes flame {
123
+ from { transform: scale(1); opacity: 1; }
124
+ to { transform: scale(1.1); opacity: 0.8; }
125
+ }
126
+
127
+ .card-flip {
128
+ transform-style: preserve-3d;
129
+ transition: transform 0.6s;
130
+ }
131
+
132
+ .card-flip.flipped {
133
+ transform: rotateY(180deg);
134
+ }
135
+
136
+ .card-front, .card-back {
137
+ backface-visibility: hidden;
138
+ position: absolute;
139
+ top: 0;
140
+ left: 0;
141
+ width: 100%;
142
+ height: 100%;
143
+ }
144
+
145
+ .card-back {
146
+ transform: rotateY(180deg);
147
+ }
148
+
149
+ .progress-dots .dot {
150
+ width: 8px;
151
+ height: 8px;
152
+ border-radius: 50%;
153
+ background-color: #cbd5e1;
154
+ }
155
+
156
+ .progress-dots .dot.active {
157
+ background-color: var(--primary);
158
+ transform: scale(1.2);
159
+ }
160
+
161
+ .progress-dots .dot.completed {
162
+ background-color: var(--secondary);
163
+ }
164
+
165
+ .heart-beat {
166
+ animation: heartBeat 1.5s infinite;
167
+ }
168
+
169
+ @keyframes heartBeat {
170
+ 0% { transform: scale(1); }
171
+ 14% { transform: scale(1.3); }
172
+ 28% { transform: scale(1); }
173
+ 42% { transform: scale(1.3); }
174
+ 70% { transform: scale(1); }
175
+ }
176
+
177
+ .lesson-complete {
178
+ background: linear-gradient(135deg, #4f46e5, #8b5cf6);
179
+ color: white;
180
+ }
181
+
182
+ .confetti {
183
+ position: absolute;
184
+ width: 10px;
185
+ height: 10px;
186
+ background-color: #f59e0b;
187
+ opacity: 0;
188
+ }
189
+
190
+ .typing-input {
191
+ border-bottom: 2px solid #4f46e5;
192
+ transition: all 0.3s;
193
+ }
194
+
195
+ .typing-input:focus {
196
+ border-bottom: 2px solid #8b5cf6;
197
+ }
198
+
199
+ .avatar-ring {
200
+ box-shadow: 0 0 0 3px #4f46e5, 0 0 0 6px #a5b4fc;
201
+ }
202
+ </style>
203
+ </head>
204
+ <body class="bg-gray-50">
205
+ <!-- Header -->
206
+ <header class="bg-white shadow-sm sticky top-0 z-10">
207
+ <div class="container mx-auto px-4 py-3 flex justify-between items-center">
208
+ <div class="flex items-center space-x-2">
209
+ <div class="w-10 h-10 rounded-full bg-indigo-500 flex items-center justify-center text-white font-bold text-xl shadow-md">LL</div>
210
+ <h1 class="text-xl font-bold text-indigo-600">LinguaLearn</h1>
211
+ </div>
212
+ <div class="flex items-center space-x-3">
213
+ <div class="relative">
214
+ <div class="w-10 h-10 rounded-full bg-indigo-100 flex items-center justify-center text-indigo-600 shadow-sm">
215
+ <i class="fas fa-coins"></i>
216
+ <span class="absolute -top-1 -right-1 bg-yellow-400 text-xs rounded-full w-5 h-5 flex items-center justify-center shadow">100</span>
217
+ </div>
218
+ </div>
219
+ <div class="w-10 h-10 rounded-full bg-gray-100 flex items-center justify-center shadow-sm cursor-pointer" id="userAvatar">
220
+ <i class="fas fa-user text-gray-600"></i>
221
+ </div>
222
+ </div>
223
+ </div>
224
+ </header>
225
+
226
+ <!-- XP Progress Bar -->
227
+ <div class="bg-indigo-50 py-2 px-4">
228
+ <div class="flex items-center justify-between mb-1">
229
+ <span class="text-sm font-medium text-indigo-700">Level 1</span>
230
+ <span class="text-sm font-medium text-indigo-700">50/100 XP</span>
231
+ </div>
232
+ <div class="w-full bg-gray-200 rounded-full h-2.5">
233
+ <div class="bg-indigo-600 h-2.5 rounded-full xp-bar" style="width: 50%"></div>
234
+ </div>
235
+ </div>
236
+
237
+ <!-- Language Switch -->
238
+ <div class="bg-white py-2 px-4 flex justify-end">
239
+ <button id="languageSwitch" class="text-xs bg-gray-100 rounded-full px-3 py-1 flex items-center shadow-sm hover:bg-gray-200 transition">
240
+ <span class="mr-1">English</span>
241
+ <i class="fas fa-globe"></i>
242
+ </button>
243
+ </div>
244
+
245
+ <!-- Main Content -->
246
+ <main class="container mx-auto px-4 py-4 pb-20">
247
+ <!-- Tabs Navigation -->
248
+ <div class="flex justify-around bg-white rounded-xl shadow-md mb-6 overflow-hidden">
249
+ <button class="tab-btn active py-3 px-6 font-medium text-indigo-600 border-b-2 border-indigo-600 flex flex-col items-center transition" data-tab="learn">
250
+ <i class="fas fa-book-open mb-1"></i>
251
+ <span class="text-xs">Learn</span>
252
+ </button>
253
+ <button class="tab-btn py-3 px-6 font-medium text-gray-500 flex flex-col items-center transition" data-tab="practice">
254
+ <i class="fas fa-dumbbell mb-1"></i>
255
+ <span class="text-xs">Practice</span>
256
+ </button>
257
+ <button class="tab-btn py-3 px-6 font-medium text-gray-500 flex flex-col items-center transition" data-tab="daily">
258
+ <i class="fas fa-calendar-day mb-1"></i>
259
+ <span class="text-xs">Daily</span>
260
+ </button>
261
+ </div>
262
+
263
+ <!-- Tab Contents -->
264
+ <div class="tab-content active" id="learn-tab">
265
+ <div class="flex justify-between items-center mb-4">
266
+ <h2 class="text-xl font-bold text-gray-800">Beginner Lessons</h2>
267
+ <div class="flex items-center text-sm text-gray-500">
268
+ <i class="fas fa-fire streak-flame text-orange-500 mr-1"></i>
269
+ <span>3 day streak</span>
270
+ </div>
271
+ </div>
272
+
273
+ <div class="grid grid-cols-2 gap-4 mb-6">
274
+ <div class="bg-white rounded-xl shadow-md p-4 word-card cursor-pointer hover:shadow-lg transition lesson-complete">
275
+ <div class="flex justify-between items-start">
276
+ <div>
277
+ <h3 class="font-bold text-lg text-white">Greetings</h3>
278
+ <p class="text-indigo-100 text-sm">5 words</p>
279
+ </div>
280
+ <div class="w-8 h-8 bg-white bg-opacity-20 rounded-full flex items-center justify-center text-white">
281
+ <i class="fas fa-check"></i>
282
+ </div>
283
+ </div>
284
+ <div class="mt-3 flex justify-center">
285
+ <div class="w-16 h-16 bg-white bg-opacity-20 rounded-full flex items-center justify-center text-white">
286
+ <i class="fas fa-handshake text-2xl"></i>
287
+ </div>
288
+ </div>
289
+ </div>
290
+
291
+ <div class="bg-white rounded-xl shadow-md p-4 word-card cursor-pointer hover:shadow-lg transition">
292
+ <div class="flex justify-between items-start">
293
+ <div>
294
+ <h3 class="font-bold text-lg">Food</h3>
295
+ <p class="text-gray-500 text-sm">8 words</p>
296
+ </div>
297
+ <div class="w-8 h-8 bg-yellow-100 rounded-full flex items-center justify-center text-yellow-600">
298
+ <i class="fas fa-lock text-xs"></i>
299
+ </div>
300
+ </div>
301
+ <div class="mt-3 flex justify-center">
302
+ <div class="w-16 h-16 bg-orange-100 rounded-full flex items-center justify-center text-orange-600">
303
+ <i class="fas fa-utensils text-2xl"></i>
304
+ </div>
305
+ </div>
306
+ </div>
307
+
308
+ <div class="bg-white rounded-xl shadow-md p-4 word-card cursor-pointer hover:shadow-lg transition">
309
+ <div class="flex justify-between items-start">
310
+ <div>
311
+ <h3 class="font-bold text-lg">Family</h3>
312
+ <p class="text-gray-500 text-sm">6 words</p>
313
+ </div>
314
+ <div class="w-8 h-8 bg-yellow-100 rounded-full flex items-center justify-center text-yellow-600">
315
+ <i class="fas fa-lock text-xs"></i>
316
+ </div>
317
+ </div>
318
+ <div class="mt-3 flex justify-center">
319
+ <div class="w-16 h-16 bg-purple-100 rounded-full flex items-center justify-center text-purple-600">
320
+ <i class="fas fa-users text-2xl"></i>
321
+ </div>
322
+ </div>
323
+ </div>
324
+
325
+ <div class="bg-white rounded-xl shadow-md p-4 word-card cursor-pointer hover:shadow-lg transition">
326
+ <div class="flex justify-between items-start">
327
+ <div>
328
+ <h3 class="font-bold text-lg">Numbers</h3>
329
+ <p class="text-gray-500 text-sm">10 words</p>
330
+ </div>
331
+ <div class="w-8 h-8 bg-yellow-100 rounded-full flex items-center justify-center text-yellow-600">
332
+ <i class="fas fa-lock text-xs"></i>
333
+ </div>
334
+ </div>
335
+ <div class="mt-3 flex justify-center">
336
+ <div class="w-16 h-16 bg-red-100 rounded-full flex items-center justify-center text-red-600">
337
+ <i class="fas fa-sort-numeric-up-alt text-2xl"></i>
338
+ </div>
339
+ </div>
340
+ </div>
341
+ </div>
342
+
343
+ <div class="bg-white rounded-xl shadow-md p-6 mb-6">
344
+ <div class="flex justify-between items-center mb-4">
345
+ <h3 class="font-bold text-lg">Current Lesson: Greetings</h3>
346
+ <div class="progress-dots flex space-x-1">
347
+ <div class="dot completed"></div>
348
+ <div class="dot completed"></div>
349
+ <div class="dot completed"></div>
350
+ <div class="dot"></div>
351
+ <div class="dot"></div>
352
+ </div>
353
+ </div>
354
+
355
+ <div class="mb-6">
356
+ <div class="flex justify-between items-center mb-2">
357
+ <span class="font-medium">Progress</span>
358
+ <span class="text-sm text-gray-500">3/5 words</span>
359
+ </div>
360
+ <div class="w-full bg-gray-200 rounded-full h-2">
361
+ <div class="bg-indigo-600 h-2 rounded-full" style="width: 60%"></div>
362
+ </div>
363
+ </div>
364
+
365
+ <div class="space-y-4">
366
+ <div class="flex items-center justify-between p-3 bg-indigo-50 rounded-lg">
367
+ <div>
368
+ <p class="font-bold">Hello</p>
369
+ <p class="text-sm text-gray-500">/həˈləʊ/</p>
370
+ </div>
371
+ <button class="text-indigo-600 play-audio" data-word="Hello">
372
+ <i class="fas fa-volume-up text-xl"></i>
373
+ </button>
374
+ </div>
375
+
376
+ <div class="flex items-center justify-between p-3 bg-indigo-50 rounded-lg">
377
+ <div>
378
+ <p class="font-bold">Goodbye</p>
379
+ <p class="text-sm text-gray-500">/ɡʊdˈbaɪ/</p>
380
+ </div>
381
+ <button class="text-indigo-600 play-audio" data-word="Goodbye">
382
+ <i class="fas fa-volume-up text-xl"></i>
383
+ </button>
384
+ </div>
385
+
386
+ <div class="flex items-center justify-between p-3 bg-indigo-50 rounded-lg">
387
+ <div>
388
+ <p class="font-bold">Thank you</p>
389
+ <p class="text-sm text-gray-500">/ˈθæŋk juː/</p>
390
+ </div>
391
+ <button class="text-indigo-600 play-audio" data-word="Thank you">
392
+ <i class="fas fa-volume-up text-xl"></i>
393
+ </button>
394
+ </div>
395
+
396
+ <div class="flex items-center justify-between p-3 bg-gray-100 rounded-lg opacity-75">
397
+ <div>
398
+ <p class="font-bold text-gray-400">Please</p>
399
+ <p class="text-sm text-gray-400">/pliːz/</p>
400
+ </div>
401
+ <button class="text-gray-400" disabled>
402
+ <i class="fas fa-volume-up text-xl"></i>
403
+ </button>
404
+ </div>
405
+
406
+ <div class="flex items-center justify-between p-3 bg-gray-100 rounded-lg opacity-75">
407
+ <div>
408
+ <p class="font-bold text-gray-400">Excuse me</p>
409
+ <p class="text-sm text-gray-400">/ɪkˈskjuːs miː/</p>
410
+ </div>
411
+ <button class="text-gray-400" disabled>
412
+ <i class="fas fa-volume-up text-xl"></i>
413
+ </button>
414
+ </div>
415
+ </div>
416
+
417
+ <button class="w-full mt-6 bg-indigo-600 hover:bg-indigo-700 text-white font-bold py-3 px-4 rounded-lg transition shadow-md hover:shadow-lg">
418
+ Continue Learning
419
+ </button>
420
+ </div>
421
+
422
+ <div class="bg-white rounded-xl shadow-md p-6">
423
+ <h3 class="font-bold mb-4">Quick Practice</h3>
424
+ <div class="grid grid-cols-2 gap-4">
425
+ <div class="bg-indigo-50 rounded-lg p-4 flex flex-col items-center cursor-pointer hover:bg-indigo-100 transition">
426
+ <div class="w-12 h-12 bg-indigo-100 rounded-full flex items-center justify-center text-indigo-600 mb-2">
427
+ <i class="fas fa-spell-check"></i>
428
+ </div>
429
+ <span class="text-sm font-medium">Spelling</span>
430
+ </div>
431
+ <div class="bg-indigo-50 rounded-lg p-4 flex flex-col items-center cursor-pointer hover:bg-indigo-100 transition">
432
+ <div class="w-12 h-12 bg-indigo-100 rounded-full flex items-center justify-center text-indigo-600 mb-2">
433
+ <i class="fas fa-microphone"></i>
434
+ </div>
435
+ <span class="text-sm font-medium">Listening</span>
436
+ </div>
437
+ </div>
438
+ </div>
439
+ </div>
440
+
441
+ <!-- Practice Tab -->
442
+ <div class="tab-content" id="practice-tab">
443
+ <h2 class="text-xl font-bold mb-4">Practice What You've Learned</h2>
444
+
445
+ <div class="bg-white rounded-xl shadow-md p-6 mb-6">
446
+ <div class="flex justify-between items-center mb-4">
447
+ <h3 class="font-bold text-lg">Greetings Practice</h3>
448
+ <div class="flex items-center">
449
+ <span class="text-sm text-gray-500 mr-2">3/5</span>
450
+ <div class="flex space-x-1">
451
+ <div class="w-3 h-3 rounded-full bg-green-500"></div>
452
+ <div class="w-3 h-3 rounded-full bg-green-500"></div>
453
+ <div class="w-3 h-3 rounded-full bg-green-500"></div>
454
+ <div class="w-3 h-3 rounded-full bg-gray-300"></div>
455
+ <div class="w-3 h-3 rounded-full bg-gray-300"></div>
456
+ </div>
457
+ </div>
458
+ </div>
459
+
460
+ <div class="mb-6">
461
+ <div class="bg-indigo-50 p-4 rounded-lg mb-4">
462
+ <p class="text-center font-bold text-lg mb-2">What does "Hello" mean?</p>
463
+ <div class="flex justify-center">
464
+ <button class="text-indigo-600 play-audio" data-word="Hello">
465
+ <i class="fas fa-volume-up text-xl"></i>
466
+ </button>
467
+ </div>
468
+ </div>
469
+
470
+ <div class="grid grid-cols-2 gap-3">
471
+ <button class="option-btn bg-white hover:bg-gray-50 text-gray-800 font-semibold py-3 px-4 border border-gray-200 rounded-lg transition shadow-sm">
472
+ مرحبًا
473
+ </button>
474
+ <button class="option-btn bg-white hover:bg-gray-50 text-gray-800 font-semibold py-3 px-4 border border-gray-200 rounded-lg transition shadow-sm">
475
+ مع السلامة
476
+ </button>
477
+ <button class="option-btn bg-white hover:bg-gray-50 text-gray-800 font-semibold py-3 px-4 border border-gray-200 rounded-lg transition shadow-sm">
478
+ شكرًا
479
+ </button>
480
+ <button class="option-btn bg-white hover:bg-gray-50 text-gray-800 font-semibold py-3 px-4 border border-gray-200 rounded-lg transition shadow-sm">
481
+ من فضلك
482
+ </button>
483
+ </div>
484
+ </div>
485
+
486
+ <div class="flex justify-between">
487
+ <button class="bg-gray-200 hover:bg-gray-300 text-gray-800 font-bold py-2 px-4 rounded-lg transition shadow-sm">
488
+ <i class="fas fa-arrow-left mr-2"></i>Back
489
+ </button>
490
+ <button class="bg-indigo-600 hover:bg-indigo-700 text-white font-bold py-2 px-4 rounded-lg transition shadow-md">
491
+ Next<i class="fas fa-arrow-right ml-2"></i>
492
+ </button>
493
+ </div>
494
+ </div>
495
+
496
+ <h3 class="text-lg font-bold mb-4">Practice Modes</h3>
497
+ <div class="grid grid-cols-2 gap-4">
498
+ <div class="bg-white rounded-xl shadow-md p-4 word-card cursor-pointer hover:shadow-lg transition">
499
+ <div class="flex flex-col items-center">
500
+ <div class="w-16 h-16 bg-purple-100 rounded-full flex items-center justify-center text-purple-600 mb-3">
501
+ <i class="fas fa-spell-check text-2xl"></i>
502
+ </div>
503
+ <h3 class="font-bold text-center">Spelling</h3>
504
+ <p class="text-gray-500 text-sm text-center">Type the word</p>
505
+ </div>
506
+ </div>
507
+
508
+ <div class="bg-white rounded-xl shadow-md p-4 word-card cursor-pointer hover:shadow-lg transition">
509
+ <div class="flex flex-col items-center">
510
+ <div class="w-16 h-16 bg-green-100 rounded-full flex items-center justify-center text-green-600 mb-3">
511
+ <i class="fas fa-microphone text-2xl"></i>
512
+ </div>
513
+ <h3 class="font-bold text-center">Listening</h3>
514
+ <p class="text-gray-500 text-sm text-center">Match the sound</p>
515
+ </div>
516
+ </div>
517
+
518
+ <div class="bg-white rounded-xl shadow-md p-4 word-card cursor-pointer hover:shadow-lg transition">
519
+ <div class="flex flex-col items-center">
520
+ <div class="w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center text-blue-600 mb-3">
521
+ <i class="fas fa-random text-2xl"></i>
522
+ </div>
523
+ <h3 class="font-bold text-center">Mixed</h3>
524
+ <p class="text-gray-500 text-sm text-center">Random practice</p>
525
+ </div>
526
+ </div>
527
+
528
+ <div class="bg-white rounded-xl shadow-md p-4 word-card cursor-pointer hover:shadow-lg transition">
529
+ <div class="flex flex-col items-center">
530
+ <div class="w-16 h-16 bg-red-100 rounded-full flex items-center justify-center text-red-600 mb-3">
531
+ <i class="fas fa-trophy text-2xl"></i>
532
+ </div>
533
+ <h3 class="font-bold text-center">Challenge</h3>
534
+ <p class="text-gray-500 text-sm text-center">Test your skills</p>
535
+ </div>
536
+ </div>
537
+ </div>
538
+
539
+ <div class="bg-white rounded-xl shadow-md p-6 mt-6">
540
+ <h3 class="font-bold mb-4">Your Progress</h3>
541
+ <div class="flex items-center justify-between mb-3">
542
+ <div class="flex items-center">
543
+ <div class="w-10 h-10 bg-indigo-100 rounded-full flex items-center justify-center text-indigo-600 mr-3">
544
+ <i class="fas fa-book"></i>
545
+ </div>
546
+ <div>
547
+ <p class="font-medium">Words Learned</p>
548
+ <p class="text-sm text-gray-500">12/100</p>
549
+ </div>
550
+ </div>
551
+ <div class="w-24 bg-gray-200 rounded-full h-2">
552
+ <div class="bg-indigo-600 h-2 rounded-full" style="width: 12%"></div>
553
+ </div>
554
+ </div>
555
+ <div class="flex items-center justify-between">
556
+ <div class="flex items-center">
557
+ <div class="w-10 h-10 bg-green-100 rounded-full flex items-center justify-center text-green-600 mr-3">
558
+ <i class="fas fa-fire"></i>
559
+ </div>
560
+ <div>
561
+ <p class="font-medium">Current Streak</p>
562
+ <p class="text-sm text-gray-500">3 days</p>
563
+ </div>
564
+ </div>
565
+ <div class="w-24 bg-gray-200 rounded-full h-2">
566
+ <div class="bg-green-500 h-2 rounded-full" style="width: 30%"></div>
567
+ </div>
568
+ </div>
569
+ </div>
570
+ </div>
571
+
572
+ <!-- Daily Word Tab -->
573
+ <div class="tab-content" id="daily-tab">
574
+ <div class="flex justify-between items-center mb-4">
575
+ <h2 class="text-xl font-bold text-gray-800">Word of the Day</h2>
576
+ <div class="flex items-center text-sm text-gray-500">
577
+ <i class="fas fa-fire streak-flame text-orange-500 mr-1"></i>
578
+ <span>3 day streak</span>
579
+ </div>
580
+ </div>
581
+
582
+ <div class="bg-white rounded-xl shadow-md p-6 mb-6">
583
+ <div class="flex justify-between items-center mb-4">
584
+ <span class="text-sm text-gray-500">June 15, 2023</span>
585
+ <div class="flex items-center">
586
+ <span class="text-sm text-gray-500 mr-2">Streak: 3 days</span>
587
+ <i class="fas fa-fire text-orange-500"></i>
588
+ </div>
589
+ </div>
590
+
591
+ <div class="text-center mb-6">
592
+ <h3 class="text-3xl font-bold mb-2">"Please"</h3>
593
+ <p class="text-gray-500 mb-4">/pliːz/</p>
594
+ <button class="text-indigo-600 play-audio mx-auto bg-indigo-50 rounded-full p-4 shadow-sm hover:bg-indigo-100 transition" data-word="Please">
595
+ <i class="fas fa-volume-up text-2xl"></i>
596
+ </button>
597
+ </div>
598
+
599
+ <div class="mb-6">
600
+ <h4 class="font-bold mb-2">Meaning:</h4>
601
+ <p class="bg-indigo-50 p-3 rounded-lg">A polite expression used when making a request</p>
602
+
603
+ <h4 class="font-bold mt-4 mb-2">Example Sentences:</h4>
604
+ <div class="space-y-3">
605
+ <div class="speech-bubble p-3">
606
+ <p>"Please pass me the salt."</p>
607
+ </div>
608
+ <div class="speech-bubble p-3">
609
+ <p>"Can you help me, please?"</p>
610
+ </div>
611
+ </div>
612
+ </div>
613
+
614
+ <div class="mb-6">
615
+ <h4 class="font-bold mb-2">Practice:</h4>
616
+ <div class="bg-gray-100 p-4 rounded-lg">
617
+ <p class="mb-3">Complete the sentence:</p>
618
+ <p class="font-bold mb-2">", can I have some water?"</p>
619
+ <input type="text" class="w-full p-3 border border-gray-300 rounded-lg mb-3 typing-input focus:outline-none" placeholder="Type your answer">
620
+ <button class="w-full bg-indigo-600 hover:bg-indigo-700 text-white font-bold py-2 px-4 rounded-lg transition shadow-md">
621
+ Check Answer
622
+ </button>
623
+ </div>
624
+ </div>
625
+
626
+ <button class="w-full bg-green-600 hover:bg-green-700 text-white font-bold py-3 px-4 rounded-lg transition shadow-md">
627
+ <i class="fas fa-check-circle mr-2"></i>I've Learned This Word
628
+ </button>
629
+ </div>
630
+
631
+ <div class="bg-white rounded-xl shadow-md p-4">
632
+ <h3 class="font-bold mb-3">Previous Words</h3>
633
+ <div class="space-y-3">
634
+ <div class="flex justify-between items-center p-2 border-b border-gray-200 hover:bg-gray-50 rounded cursor-pointer transition">
635
+ <div>
636
+ <p class="font-bold">Thank you</p>
637
+ <p class="text-sm text-gray-500">June 14, 2023</p>
638
+ </div>
639
+ <div class="w-8 h-8 bg-green-100 rounded-full flex items-center justify-center text-green-600">
640
+ <i class="fas fa-check"></i>
641
+ </div>
642
+ </div>
643
+ <div class="flex justify-between items-center p-2 border-b border-gray-200 hover:bg-gray-50 rounded cursor-pointer transition">
644
+ <div>
645
+ <p class="font-bold">Goodbye</p>
646
+ <p class="text-sm text-gray-500">June 13, 2023</p>
647
+ </div>
648
+ <div class="w-8 h-8 bg-green-100 rounded-full flex items-center justify-center text-green-600">
649
+ <i class="fas fa-check"></i>
650
+ </div>
651
+ </div>
652
+ <div class="flex justify-between items-center p-2 hover:bg-gray-50 rounded cursor-pointer transition">
653
+ <div>
654
+ <p class="font-bold">Hello</p>
655
+ <p class="text-sm text-gray-500">June 12, 2023</p>
656
+ </div>
657
+ <div class="w-8 h-8 bg-green-100 rounded-full flex items-center justify-center text-green-600">
658
+ <i class="fas fa-check"></i>
659
+ </div>
660
+ </div>
661
+ </div>
662
+ </div>
663
+ </div>
664
+ </main>
665
+
666
+ <!-- Bottom Navigation -->
667
+ <nav class="bg-white shadow-lg fixed bottom-0 w-full max-w-md">
668
+ <div class="flex justify-around">
669
+ <a href="#" class="p-3 text-indigo-600 flex flex-col items-center">
670
+ <i class="fas fa-home text-xl"></i>
671
+ <span class="text-xs mt-1">Home</span>
672
+ </a>
673
+ <a href="#" class="p-3 text-gray-500 flex flex-col items-center">
674
+ <i class="fas fa-trophy text-xl"></i>
675
+ <span class="text-xs mt-1">Leaderboard</span>
676
+ </a>
677
+ <a href="#" class="p-3 text-gray-500 flex flex-col items-center">
678
+ <i class="fas fa-book text-xl"></i>
679
+ <span class="text-xs mt-1">Dictionary</span>
680
+ </a>
681
+ <a href="#" class="p-3 text-gray-500 flex flex-col items-center">
682
+ <i class="fas fa-cog text-xl"></i>
683
+ <span class="text-xs mt-1">Settings</span>
684
+ </a>
685
+ </div>
686
+ </nav>
687
+
688
+ <!-- Floating Action Button -->
689
+ <div class="fixed bottom-20 right-4 z-20">
690
+ <button class="floating-btn w-14 h-14 bg-indigo-600 rounded-full flex items-center justify-center text-white shadow-lg hover:bg-indigo-700 transition">
691
+ <i class="fas fa-plus text-xl"></i>
692
+ </button>
693
+ </div>
694
+
695
+ <!-- User Profile Modal -->
696
+ <div id="userModal" class="fixed inset-0 bg-black bg-opacity-50 z-30 flex items-center justify-center hidden">
697
+ <div class="bg-white rounded-xl p-6 w-full max-w-sm mx-4">
698
+ <div class="flex justify-between items-center mb-4">
699
+ <h3 class="text-xl font-bold">Your Profile</h3>
700
+ <button id="closeModal" class="text-gray-500 hover:text-gray-700">
701
+ <i class="fas fa-times"></i>
702
+ </button>
703
+ </div>
704
+
705
+ <div class="flex flex-col items-center mb-6">
706
+ <div class="w-20 h-20 rounded-full bg-indigo-100 flex items-center justify-center text-indigo-600 mb-3 avatar-ring">
707
+ <i class="fas fa-user text-3xl"></i>
708
+ </div>
709
+ <h4 class="font-bold text-lg">Guest User</h4>
710
+ <p class="text-gray-500 text-sm">Beginner Level</p>
711
+ </div>
712
+
713
+ <div class="space-y-4">
714
+ <div class="flex items-center p-3 bg-gray-100 rounded-lg">
715
+ <div class="w-10 h-10 bg-indigo-100 rounded-full flex items-center justify-center text-indigo-600 mr-3">
716
+ <i class="fas fa-fire"></i>
717
+ </div>
718
+ <div>
719
+ <p class="font-medium">Current Streak</p>
720
+ <p class="text-sm text-gray-500">3 days</p>
721
+ </div>
722
+ </div>
723
+
724
+ <div class="flex items-center p-3 bg-gray-100 rounded-lg">
725
+ <div class="w-10 h-10 bg-green-100 rounded-full flex items-center justify-center text-green-600 mr-3">
726
+ <i class="fas fa-coins"></i>
727
+ </div>
728
+ <div>
729
+ <p class="font-medium">Lingua Coins</p>
730
+ <p class="text-sm text-gray-500">100 coins</p>
731
+ </div>
732
+ </div>
733
+
734
+ <div class="flex items-center p-3 bg-gray-100 rounded-lg">
735
+ <div class="w-10 h-10 bg-blue-100 rounded-full flex items-center justify-center text-blue-600 mr-3">
736
+ <i class="fas fa-book"></i>
737
+ </div>
738
+ <div>
739
+ <p class="font-medium">Words Learned</p>
740
+ <p class="text-sm text-gray-500">12 words</p>
741
+ </div>
742
+ </div>
743
+ </div>
744
+
745
+ <button class="w-full mt-6 bg-indigo-600 hover:bg-indigo-700 text-white font-bold py-2 px-4 rounded-lg transition shadow-md">
746
+ Sign In to Save Progress
747
+ </button>
748
+ </div>
749
+ </div>
750
+
751
+ <!-- Confetti Effect Container -->
752
+ <div id="confetti-container" class="fixed inset-0 pointer-events-none z-40 overflow-hidden hidden"></div>
753
+
754
+ <script>
755
+ // Tab Switching
756
+ document.querySelectorAll('.tab-btn').forEach(btn => {
757
+ btn.addEventListener('click', () => {
758
+ // Remove active class from all buttons and contents
759
+ document.querySelectorAll('.tab-btn').forEach(b => b.classList.remove('active', 'text-indigo-600', 'border-indigo-600'));
760
+ document.querySelectorAll('.tab-btn').forEach(b => b.classList.add('text-gray-500'));
761
+ document.querySelectorAll('.tab-content').forEach(c => c.classList.remove('active'));
762
+
763
+ // Add active class to clicked button and corresponding content
764
+ btn.classList.add('active', 'text-indigo-600', 'border-indigo-600');
765
+ btn.classList.remove('text-gray-500');
766
+ const tabId = btn.getAttribute('data-tab') + '-tab';
767
+ document.getElementById(tabId).classList.add('active');
768
+ });
769
+ });
770
+
771
+ // Language Switch
772
+ document.getElementById('languageSwitch').addEventListener('click', function() {
773
+ const currentLang = this.querySelector('span').textContent;
774
+ const newLang = currentLang === 'English' ? 'العربية' : 'English';
775
+ this.querySelector('span').textContent = newLang;
776
+
777
+ // Toggle RTL for the body
778
+ document.body.classList.toggle('rtl');
779
+
780
+ // Here you would normally load translations for the new language
781
+ console.log('Switching language to:', newLang);
782
+ });
783
+
784
+ // Audio Playback
785
+ document.querySelectorAll('.play-audio').forEach(btn => {
786
+ btn.addEventListener('click', function() {
787
+ const word = this.getAttribute('data-word');
788
+ console.log('Playing audio for:', word);
789
+
790
+ // Add pulse animation
791
+ this.classList.add('animate-pulse');
792
+ setTimeout(() => {
793
+ this.classList.remove('animate-pulse');
794
+ }, 500);
795
+
796
+ // In a real app, we would use the ElevenLabs API or Web Speech API here
797
+ // For this demo, we'll just simulate it
798
+ if ('speechSynthesis' in window) {
799
+ const utterance = new SpeechSynthesisUtterance(word);
800
+ utterance.lang = 'en-US';
801
+ speechSynthesis.speak(utterance);
802
+ } else {
803
+ alert('Text-to-speech not supported in your browser');
804
+ }
805
+ });
806
+ });
807
+
808
+ // Practice Answer Selection
809
+ document.querySelectorAll('.option-btn').forEach(btn => {
810
+ btn.addEventListener('click', function() {
811
+ // Remove any existing correct/wrong classes
812
+ document.querySelectorAll('.option-btn').forEach(b => {
813
+ b.classList.remove('correct', 'wrong');
814
+ b.disabled = true;
815
+ });
816
+
817
+ // For demo purposes, we'll consider the first option as correct
818
+ const isCorrect = this.textContent.trim() === 'مرحبًا';
819
+
820
+ if (isCorrect) {
821
+ this.classList.add('correct');
822
+
823
+ // In a real app, we would give XP points here
824
+ const xpBar = document.querySelector('.xp-bar');
825
+ const currentWidth = parseInt(xpBar.style.width);
826
+ const newWidth = Math.min(currentWidth + 10, 100);
827
+ xpBar.style.width = newWidth + '%';
828
+
829
+ // Update XP text
830
+ const xpText = document.querySelector('.bg-indigo-50 + div span:last-child');
831
+ const currentXP = parseInt(xpText.textContent.split('/')[0]);
832
+ xpText.textContent = (currentXP + 10) + '/100 XP';
833
+
834
+ // Check if level up
835
+ if (newWidth === 100) {
836
+ createConfetti();
837
+ setTimeout(() => {
838
+ alert('Congratulations! You leveled up!');
839
+ xpBar.style.width = '0%';
840
+ xpText.textContent = '0/100 XP';
841
+
842
+ // Update level
843
+ const levelText = document.querySelector('.bg-indigo-50 + div span:first-child');
844
+ const currentLevel = parseInt(levelText.textContent.split(' ')[1]);
845
+ levelText.textContent = 'Level ' + (currentLevel + 1);
846
+ }, 500);
847
+ }
848
+ } else {
849
+ this.classList.add('wrong');
850
+ // Highlight the correct answer
851
+ document.querySelectorAll('.option-btn')[0].classList.add('correct');
852
+ }
853
+ });
854
+ });
855
+
856
+ // Daily Word Check Answer
857
+ document.querySelector('#daily-tab button:not(.play-audio)').addEventListener('click', function() {
858
+ const answer = document.querySelector('#daily-tab input').value.trim().toLowerCase();
859
+ if (answer === 'please') {
860
+ createConfetti();
861
+ setTimeout(() => {
862
+ alert('Correct! Well done!');
863
+ }, 500);
864
+ } else {
865
+ alert('Almost! The correct answer is "Please".');
866
+ }
867
+ });
868
+
869
+ // User Profile Modal
870
+ document.getElementById('userAvatar').addEventListener('click', function() {
871
+ document.getElementById('userModal').classList.remove('hidden');
872
+ });
873
+
874
+ document.getElementById('closeModal').addEventListener('click', function() {
875
+ document.getElementById('userModal').classList.add('hidden');
876
+ });
877
+
878
+ // Confetti Effect
879
+ function createConfetti() {
880
+ const container = document.getElementById('confetti-container');
881
+ container.classList.remove('hidden');
882
+ container.innerHTML = '';
883
+
884
+ const colors = ['#4f46e5', '#10b981', '#f59e0b', '#ef4444', '#8b5cf6'];
885
+
886
+ for (let i = 0; i < 50; i++) {
887
+ const confetti = document.createElement('div');
888
+ confetti.className = 'confetti';
889
+ confetti.style.backgroundColor = colors[Math.floor(Math.random() * colors.length)];
890
+ confetti.style.left = Math.random() * 100 + 'vw';
891
+ confetti.style.top = '-10px';
892
+ confetti.style.transform = `rotate(${Math.random() * 360}deg)`;
893
+
894
+ container.appendChild(confetti);
895
+
896
+ const animationDuration = Math.random() * 3 + 2;
897
+
898
+ confetti.style.animation = `fall ${animationDuration}s linear forwards`;
899
+
900
+ // Create keyframes for falling animation
901
+ const style = document.createElement('style');
902
+ style.innerHTML = `
903
+ @keyframes fall {
904
+ to {
905
+ transform: translateY(100vh) rotate(${Math.random() * 360}deg);
906
+ opacity: 0;
907
+ }
908
+ }
909
+ `;
910
+ document.head.appendChild(style);
911
+
912
+ // Remove confetti after animation
913
+ setTimeout(() => {
914
+ confetti.remove();
915
+ if (container.children.length === 0) {
916
+ container.classList.add('hidden');
917
+ }
918
+ }, animationDuration * 1000);
919
+ }
920
+ }
921
+
922
+ // Flip card animation for word cards
923
+ document.querySelectorAll('.word-card').forEach(card => {
924
+ card.addEventListener('click', function() {
925
+ this.classList.toggle('flipped');
926
+ });
927
+ });
928
+
929
+ // Heart beat animation for streak flame
930
+ setInterval(() => {
931
+ const flames = document.querySelectorAll('.streak-flame');
932
+ flames.forEach(flame => {
933
+ flame.classList.toggle('heart-beat');
934
+ });
935
+ }, 1500);
936
+ </script>
937
+ <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=fwvegre/bilal" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
938
+ </html>
prompts.txt ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ أنشئ تطبيقًا للهاتف المحمول للمبتدئين لتعلم اللغة الانجليزية الأساسية بأسلوب جذاب وممتع يشبه Duolingo. **ميزات التطبيق:** Ul نظيفة وجميلة مع علامات التبويب: "تعلم"، "الممارسة"، و"الكلمة اليومية". تشمل الدروس المفردات الكورية، والنطق، وأمثلة الجمل. النطق الصوتي لكل كلمة باستخدام ElevenLabs API أو Google Text-to-Speech. يمكن للمستخدمين التدرب عن طريق اختيار المعاني الصحيحة، أو كتابة الكلمات، أو الاستماع والمطابقة. - تعرض علامة التبويب "الكلمات اليومية" كلمة كورية جديدة كل يوم مع النطق وأمثلة الاستخدام والاختبار. قم بتخزين جميع الكلمات والمعاني والأمثلة وعناوين URL الصوتية في Firestore أو Firebase Realtime Database. دعم تتبع تقدم المستخدم: عدد الكلمات التي تعلمها، والخط الحالي، ونقاط XP. استخدم مصادقة Firebase (مجهول أو تسجيل الدخول إلى Google). تصميم سريع الاستجابة يعمل بسلاسة على كل من Android وiOS (أو كـ PWA على الويب). يجب أن يدعم كل المحتوى النص الكوري الكامل والتصميم المناسب لـ RTL (للترجمات العربية الاختيارية). اختياري: السماح بتبديل لغة الواجهة بين الإنجليزية والعربية. **اقتراحات المجموعة الفنية:** Flutter (المفضل) أو React Native أو Web App Firebase (Firestore، المصادقة، الاستضافة) واجهة برمجة تطبيقات ElevenLabs للصوت (أو الرجوع إلى Google TTS) واجهة مستخدم نظيفة وحديثة مع رسوم متحركة وأيقونات مثل Duolingo
2
+ انه لا يعمل اريد منك تشغيله
3
+ Create a mobile app for beginners to learn basic English in an engaging and fun way similar to Duolingo. **App Features:** Clean and beautiful layout with tabs: "Learn," "Practice," and "Daily Word." Lessons include Korean vocabulary, pronunciation, and sentence examples. Audio pronunciations for each word using the ElevenLabs API or Google Text-to-Speech. Users can practice by selecting the correct meanings, typing words, or listening and matching. The "Daily Words" tab displays a new Korean word each day with pronunciation, usage examples, and a quiz. Store all words, meanings, examples, and audio URLs in Firestore or Firebase Realtime Database. Supports user progress tracking: number of words learned, current line, and XP points. Use Firebase Authentication (anonymous or Google Sign-in). Responsive design that works seamlessly on both Android and iOS (or as a PWA on the web). All content must support full Korean text and RTL-friendly styling (for optional Arabic translations). Optional: Allow interface language switching between English and Arabic. **Technical group suggestions:** Flutter (preferred), React Native, or Web App Firebase (Firestore, authentication, hosting) ElevenLabs API for voice (or refer to Google TTS) Clean, modern user interface with animations and icons, similar to Duolingo
4
+ حول لغة الكورية الى لغة العربية واجعل جميع الالخنات تعمل
5
+ زد اضافات الى هدا <!DOCTYPE html> <html lang="en" dir="ltr"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>LinguaLearn - English for Beginners</title> <script src="https://cdn.tailwindcss.com"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> <style> @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap'); body { font-family: 'Poppins', sans-serif; max-width: 500px; margin: 0 auto; background-color: #f5f5f5; height: 100vh; position: relative; overflow-x: hidden; } .tab-content { display: none; } .tab-content.active { display: block; animation: fadeIn 0.5s; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } .progress-ring__circle { transition: stroke-dashoffset 0.5s; transform: rotate(-90deg); transform-origin: 50% 50%; } .word-card { transition: all 0.3s ease; } .word-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); } .speech-bubble { position: relative; background: #e3f2fd; border-radius: 10px; } .speech-bubble:after { content: ''; position: absolute; bottom: -10px; left: 20px; border-width: 10px 10px 0; border-style: solid; border-color: #e3f2fd transparent; } .option-btn.correct { background-color: #4caf50 !important; color: white !important; } .option-btn.wrong { background-color: #f44336 !important; color: white !important; } .xp-bar { transition: width 0.5s ease; } .floating-btn { animation: float 3s ease-in-out infinite; } @keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } } .rtl { direction: rtl; text-align: right; } </style> </head> <body class="bg-gray-100"> <!-- Header --> <header class="bg-white shadow-sm sticky top-0 z-10"> <div class="container mx-auto px-4 py-3 flex justify-between items-center"> <div class="flex items-center space-x-2"> <div class="w-10 h-10 rounded-full bg-blue-500 flex items-center justify-center text-white font-bold text-xl">LL</div> <h1 class="text-xl font-bold text-blue-600">LinguaLearn</h1> </div> <div class="flex items-center space-x-3"> <div class="relative"> <div class="w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center text-blue-600"> <i class="fas fa-coins"></i> <span class="absolute -top-1 -right-1 bg-yellow-400 text-xs rounded-full w-5 h-5 flex items-center justify-center">100</span> </div> </div> <div class="w-10 h-10 rounded-full bg-gray-200 flex items-center justify-center"> <i class="fas fa-user"></i> </div> </div> </div> </header> <!-- XP Progress Bar --> <div class="bg-blue-50 py-2 px-4"> <div class="flex items-center justify-between mb-1"> <span class="text-sm font-medium text-blue-700">Level 1</span> <span class="text-sm font-medium text-blue-700">50/100 XP</span> </div> <div class="w-full bg-gray-200 rounded-full h-2.5"> <div class="bg-blue-600 h-2.5 rounded-full xp-bar" style="width: 50%"></div> </div> </div> <!-- Language Switch --> <div class="bg-white py-2 px-4 flex justify-end"> <button id="languageSwitch" class="text-xs bg-gray-100 rounded-full px-3 py-1 flex items-center"> <span class="mr-1">English</span> <i class="fas fa-globe"></i> </button> </div> <!-- Main Content --> <main class="container mx-auto px-4 py-4"> <!-- Tabs Navigation --> <div class="flex justify-around bg-white rounded-lg shadow mb-6"> <button class="tab-btn active py-3 px-6 font-medium text-blue-600 border-b-2 border-blue-600" data-tab="learn"> <i class="fas fa-book-open mr-2"></i>Learn </button> <button class="tab-btn py-3 px-6 font-medium text-gray-500" data-tab="practice"> <i class="fas fa-dumbbell mr-2"></i>Practice </button> <button class="tab-btn py-3 px-6 font-medium text-gray-500" data-tab="daily"> <i class="fas fa-calendar-day mr-2"></i>Daily Word </button> </div> <!-- Tab Contents --> <div class="tab-content active" id="learn-tab"> <h2 class="text-xl font-bold mb-4">Beginner Lessons</h2> <div class="grid grid-cols-2 gap-4 mb-6"> <div class="bg-white rounded-xl shadow-md p-4 word-card cursor-pointer hover:shadow-lg transition"> <div class="flex justify-between items-start"> <div> <h3 class="font-bold text-lg">Greetings</h3> <p class="text-gray-500 text-sm">5 words</p> </div> <div class="w-10 h-10 bg-green-100 rounded-full flex items-center justify-center text-green-600"> <i class="fas fa-check"></i> </div> </div> <div class="mt-3 flex justify-center"> <div class="w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center text-blue-600"> <i class="fas fa-handshake text-2xl"></i> </div> </div> </div> <div class="bg-white rounded-xl shadow-md p-4 word-card cursor-pointer hover:shadow-lg transition"> <div class="flex justify-between items-start"> <div> <h3 class="font-bold text-lg">Food</h3> <p class="text-gray-500 text-sm">8 words</p> </div> <div class="w-10 h-10 bg-yellow-100 rounded-full flex items-center justify-center text-yellow-600"> <i class="fas fa-lock"></i> </div> </div> <div class="mt-3 flex justify-center"> <div class="w-16 h-16 bg-orange-100 rounded-full flex items-center justify-center text-orange-600"> <i class="fas fa-utensils text-2xl"></i> </div> </div> </div> <div class="bg-white rounded-xl shadow-md p-4 word-card cursor-pointer hover:shadow-lg transition"> <div class="flex justify-between items-start"> <div> <h3 class="font-bold text-lg">Family</h3> <p class="text-gray-500 text-sm">6 words</p> </div> <div class="w-10 h-10 bg-yellow-100 rounded-full flex items-center justify-center text-yellow-600"> <i class="fas fa-lock"></i> </div> </div> <div class="mt-3 flex justify-center"> <div class="w-16 h-16 bg-purple-100 rounded-full flex items-center justify-center text-purple-600"> <i class="fas fa-users text-2xl"></i> </div> </div> </div> <div class="bg-white rounded-xl shadow-md p-4 word-card cursor-pointer hover:shadow-lg transition"> <div class="flex justify-between items-start"> <div> <h3 class="font-bold text-lg">Numbers</h3> <p class="text-gray-500 text-sm">10 words</p> </div> <div class="w-10 h-10 bg-yellow-100 rounded-full flex items-center justify-center text-yellow-600"> <i class="fas fa-lock"></i> </div> </div> <div class="mt-3 flex justify-center"> <div class="w-16 h-16 bg-red-100 rounded-full flex items-center justify-center text-red-600"> <i class="fas fa-sort-numeric-up-alt text-2xl"></i> </div> </div> </div> </div> <div class="bg-white rounded-xl shadow-md p-6 mb-6"> <h3 class="font-bold text-lg mb-4">Current Lesson: Greetings</h3> <div class="mb-6"> <div class="flex justify-between items-center mb-2"> <span class="font-medium">Progress</span> <span class="text-sm text-gray-500">3/5 words</span> </div> <div class="w-full bg-gray-200 rounded-full h-2"> <div class="bg-blue-600 h-2 rounded-full" style="width: 60%"></div> </div> </div> <div class="space-y-4"> <div class="flex items-center justify-between p-3 bg-blue-50 rounded-lg"> <div> <p class="font-bold">Hello</p> <p class="text-sm text-gray-500">/həˈləʊ/</p> </div> <button class="text-blue-600 play-audio" data-word="Hello"> <i class="fas fa-volume-up text-xl"></i> </button> </div> <div class="flex items-center justify-between p-3 bg-blue-50 rounded-lg"> <div> <p class="font-bold">Goodbye</p> <p class="text-sm text-gray-500">/ɡʊdˈbaɪ/</p> </div> <button class="text-blue-600 play-audio" data-word="Goodbye"> <i class="fas fa-volume-up text-xl"></i> </button> </div> <div class="flex items-center justify-between p-3 bg-blue-50 rounded-lg"> <div> <p class="font-bold">Thank you</p> <p class="text-sm text-gray-500">/ˈθæŋk juː/</p> </div> <button class="text-blue-600 play-audio" data-word="Thank you"> <i class="fas fa-volume-up text-xl"></i> </button> </div> <div class="flex items-center justify-between p-3 bg-gray-100 rounded-lg opacity-75"> <div> <p class="font-bold text-gray-400">Please</p> <p class="text-sm text-gray-400">/pliːz/</p> </div> <button class="text-gray-400" disabled> <i class="fas fa-volume-up text-xl"></i> </button> </div> <div class="flex items-center justify-between p-3 bg-gray-100 rounded-lg opacity-75"> <div> <p class="font-bold text-gray-400">Excuse me</p> <p class="text-sm text-gray-400">/ɪkˈskjuːs miː/</p> </div> <button class="text-gray-400" disabled> <i class="fas fa-volume-up text-xl"></i> </button> </div> </div> <button class="w-full mt-6 bg-blue-600 hover:bg-blue-700 text-white font-bold py-3 px-4 rounded-lg transition"> Continue Learning </button> </div> </div> <!-- Practice Tab --> <div class="tab-content" id="practice-tab"> <h2 class="text-xl font-bold mb-4">Practice What You've Learned</h2> <div class="bg-white rounded-xl shadow-md p-6 mb-6"> <div class="flex justify-between items-center mb-4"> <h3 class="font-bold text-lg">Greetings Practice</h3> <div class="flex items-center"> <span class="text-sm text-gray-500 mr-2">3/5</span> <div class="flex space-x-1"> <div class="w-3 h-3 rounded-full bg-green-500"></div> <div class="w-3 h-3 rounded-full bg-green-500"></div> <div class="w-3 h-3 rounded-full bg-green-500"></div> <div class="w-3 h-3 rounded-full bg-gray-300"></div> <div class="w-3 h-3 rounded-full bg-gray-300"></div> </div> </div> </div> <div class="mb-6"> <div class="bg-blue-50 p-4 rounded-lg mb-4"> <p class="text-center font-bold text-lg mb-2">What does "Hello" mean?</p> <div class="flex justify-center"> <button class="text-blue-600 play-audio" data-word="Hello"> <i class="fas fa-volume-up text-xl"></i> </button> </div> </div> <div class="grid grid-cols-2 gap-3"> <button class="option-btn bg-white hover:bg-gray-100 text-gray-800 font-semibold py-3 px-4 border border-gray-300 rounded-lg transition"> مرحبًا </button> <button class="option-btn bg-white hover:bg-gray-100 text-gray-800 font-semibold py-3 px-4 border border-gray-300 rounded-lg transition"> مع السلامة </button> <button class="option-btn bg-white hover:bg-gray-100 text-gray-800 font-semibold py-3 px-4 border border-gray-300 rounded-lg transition"> شكرًا </button> <button class="option-btn bg-white hover:bg-gray-100 text-gray-800 font-semibold py-3 px-4 border border-gray-300 rounded-lg transition"> من فضلك </button> </div> </div> <div class="flex justify-between"> <button class="bg-gray-200 hover:bg-gray-300 text-gray-800 font-bold py-2 px-4 rounded-lg transition"> <i class="fas fa-arrow-left mr-2"></i>Back </button> <button class="bg-blue-600 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-lg transition"> Next<i class="fas fa-arrow-right ml-2"></i> </button> </div> </div> <div class="grid grid-cols-2 gap-4"> <div class="bg-white rounded-xl shadow-md p-4 word-card cursor-pointer hover:shadow-lg transition"> <div class="flex flex-col items-center"> <div class="w-16 h-16 bg-purple-100 rounded-full flex items-center justify-center text-purple-600 mb-3"> <i class="fas fa-spell-check text-2xl"></i> </div> <h3 class="font-bold text-center">Spelling</h3> <p class="text-gray-500 text-sm text-center">Type the word</p> </div> </div> <div class="bg-white rounded-xl shadow-md p-4 word-card cursor-pointer hover:shadow-lg transition"> <div class="flex flex-col items-center"> <div class="w-16 h-16 bg-green-100 rounded-full flex items-center justify-center text-green-600 mb-3"> <i class="fas fa-microphone text-2xl"></i> </div> <h3 class="font-bold text-center">Listening</h3> <p class="text-gray-500 text-sm text-center">Match the sound</p> </div> </div> <div class="bg-white rounded-xl shadow-md p-4 word-card cursor-pointer hover:shadow-lg transition"> <div class="flex flex-col items-center"> <div class="w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center text-blue-600 mb-3"> <i class="fas fa-random text-2xl"></i> </div> <h3 class="font-bold text-center">Mixed</h3> <p class="text-gray-500 text-sm text-center">Random practice</p> </div> </div> <div class="bg-white rounded-xl shadow-md p-4 word-card cursor-pointer hover:shadow-lg transition"> <div class="flex flex-col items-center"> <div class="w-16 h-16 bg-red-100 rounded-full flex items-center justify-center text-red-600 mb-3"> <i class="fas fa-trophy text-2xl"></i> </div> <h3 class="font-bold text-center">Challenge</h3> <p class="text-gray-500 text-sm text-center">Test your skills</p> </div> </div> </div> </div> <!-- Daily Word Tab --> <div class="tab-content" id="daily-tab"> <h2 class="text-xl font-bold mb-4">Word of the Day</h2> <div class="bg-white rounded-xl shadow-md p-6 mb-6"> <div class="flex justify-between items-center mb-4"> <span class="text-sm text-gray-500">June 15, 2023</span> <div class="flex items-center"> <span class="text-sm text-gray-500 mr-2">Streak: 3 days</span> <i class="fas fa-fire text-orange-500"></i> </div> </div> <div class="text-center mb-6"> <h3 class="text-3xl font-bold mb-2">"Please"</h3> <p class="text-gray-500 mb-4">/pliːz/</p> <button class="text-blue-600 play-audio mx-auto bg-blue-50 rounded-full p-4" data-word="Please"> <i class="fas fa-volume-up text-2xl"></i> </button> </div> <div class="mb-6"> <h4 class="font-bold mb-2">Meaning:</h4> <p class="bg-blue-50 p-3 rounded-lg">A polite expression used when making a request</p> <h4 class="font-bold mt-4 mb-2">Example Sentences:</h4> <div class="space-y-3"> <div class="speech-bubble p-3"> <p>"Please pass me the salt."</p> </div> <div class="speech-bubble p-3"> <p>"Can you help me, please?"</p> </div> </div> </div> <div class="mb-6"> <h4 class="font-bold mb-2">Practice:</h4> <div class="bg-gray-100 p-4 rounded-lg"> <p class="mb-3">Complete the sentence:</p> <p class="font-bold mb-2">", can I have some water?"</p> <input type="text" class="w-full p-3 border border-gray-300 rounded-lg mb-3" placeholder="Type your answer"> <button class="w-full bg-blue-600 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-lg transition"> Check Answer </button> </div> </div> <button class="w-full bg-green-600 hover:bg-green-700 text-white font-bold py-3 px-4 rounded-lg transition"> <i class="fas fa-check-circle mr-2"></i>I've Learned This Word </button> </div> <div class="bg-white rounded-xl shadow-md p-4"> <h3 class="font-bold mb-3">Previous Words</h3> <div class="space-y-3"> <div class="flex justify-between items-center p-2 border-b border-gray-200"> <div> <p class="font-bold">Thank you</p> <p class="text-sm text-gray-500">June 14, 2023</p> </div> <div class="w-8 h-8 bg-green-100 rounded-full flex items-center justify-center text-green-600"> <i class="fas fa-check"></i> </div> </div> <div class="flex justify-between items-center p-2 border-b border-gray-200"> <div> <p class="font-bold">Goodbye</p> <p class="text-sm text-gray-500">June 13, 2023</p> </div> <div class="w-8 h-8 bg-green-100 rounded-full flex items-center justify-center text-green-600"> <i class="fas fa-check"></i> </div> </div> <div class="flex justify-between items-center p-2"> <div> <p class="font-bold">Hello</p> <p class="text-sm text-gray-500">June 12, 2023</p> </div> <div class="w-8 h-8 bg-green-100 rounded-full flex items-center justify-center text-green-600"> <i class="fas fa-check"></i> </div> </div> </div> </div> </div> </main> <!-- Bottom Navigation --> <nav class="bg-white shadow-lg fixed bottom-0 w-full max-w-md"> <div class="flex justify-around"> <a href="#" class="p-3 text-blue-600 flex flex-col items-center"> <i class="fas fa-home text-xl"></i> <span class="text-xs mt-1">Home</span> </a> <a href="#" class="p-3 text-gray-500 flex flex-col items-center"> <i class="fas fa-trophy text-xl"></i> <span class="text-xs mt-1">Leaderboard</span> </a> <a href="#" class="p-3 text-gray-500 flex flex-col items-center"> <i class="fas fa-book text-xl"></i> <span class="text-xs mt-1">Dictionary</span> </a> <a href="#" class="p-3 text-gray-500 flex flex-col items-center"> <i class="fas fa-cog text-xl"></i> <span class="text-xs mt-1">Settings</span> </a> </div> </nav> <!-- Floating Action Button --> <div class="fixed bottom-20 right-4 z-20"> <button class="floating-btn w-14 h-14 bg-blue-600 rounded-full flex items-center justify-center text-white shadow-lg hover:bg-blue-700 transition"> <i class="fas fa-plus text-xl"></i> </button> </div> <script> // Tab Switching document.querySelectorAll('.tab-btn').forEach(btn => { btn.addEventListener('click', () => { // Remove active class from all buttons and contents document.querySelectorAll('.tab-btn').forEach(b => b.classList.remove('active', 'text-blue-600', 'border-blue-600')); document.querySelectorAll('.tab-btn').forEach(b => b.classList.add('text-gray-500')); document.querySelectorAll('.tab-content').forEach(c => c.classList.remove('active')); // Add active class to clicked button and corresponding content btn.classList.add('active', 'text-blue-600', 'border-blue-600'); btn.classList.remove('text-gray-500'); const tabId = btn.getAttribute('data-tab') + '-tab'; document.getElementById(tabId).classList.add('active'); }); }); // Language Switch document.getElementById('languageSwitch').addEventListener('click', function() { const currentLang = this.querySelector('span').textContent; const newLang = currentLang === 'English' ? 'العربية' : 'English'; this.querySelector('span').textContent = newLang; // Toggle RTL for the body document.body.classList.toggle('rtl'); // Here you would normally load translations for the new language console.log('Switching language to:', newLang); }); // Audio Playback document.querySelectorAll('.play-audio').forEach(btn => { btn.addEventListener('click', function() { const word = this.getAttribute('data-word'); console.log('Playing audio for:', word); // In a real app, we would use the ElevenLabs API or Web Speech API here // For this demo, we'll just simulate it if ('speechSynthesis' in window) { const utterance = new SpeechSynthesisUtterance(word); utterance.lang = 'en-US'; speechSynthesis.speak(utterance); } else { alert('Text-to-speech not supported in your browser'); } }); }); // Practice Answer Selection document.querySelectorAll('.option-btn').forEach(btn => { btn.addEventListener('click', function() { // Remove any existing correct/wrong classes document.querySelectorAll('.option-btn').forEach(b => { b.classList.remove('correct', 'wrong'); }); // For demo purposes, we'll consider the first option as correct const isCorrect = this.textContent.trim() === 'مرحبًا'; if (isCorrect) { this.classList.add('correct'); // In a real app, we would give XP points here const xpBar = document.querySelector('.xp-bar'); const currentWidth = parseInt(xpBar.style.width); const newWidth = Math.min(currentWidth + 10, 100); xpBar.style.width = newWidth + '%'; // Update XP text const xpText = document.querySelector('.bg-blue-50 + div span:last-child'); const currentXP = parseInt(xpText.textContent.split('/')[0]); xpText.textContent = (currentXP + 10) + '/100 XP'; // Check if level up if (newWidth === 100) { alert('Congratulations! You leveled up!'); xpBar.style.width = '0%'; xpText.textContent = '0/100 XP'; // Update level const levelText = document.querySelector('.bg-blue-50 + div span:first-child'); const currentLevel = parseInt(levelText.textContent.split(' ')[1]); levelText.textContent = 'Level ' + (currentLevel + 1); } } else { this.classList.add('wrong'); } }); }); // Daily Word Check Answer document.querySelector('#daily-tab button:not(.play-audio)').addEventListener('click', function() { const answer = document.querySelector('#daily-tab input').value.trim().toLowerCase(); if (answer === 'please') { alert('Correct! Well done!'); } else { alert('Almost! The correct answer is "Please".'); } }); </script> </body> </html>
6
+ Create a mobile app for beginners to learn basic English in an engaging and fun way similar to Duolingo. **App Features:** Clean and beautiful layout with tabs: "Learn," "Practice," and "Daily Word." Lessons include English vocabulary, pronunciation, and sentence examples. Audio pronunciations for each word using the ElevenLabs API or Google Text-to-Speech. Users can practice by selecting the correct meanings, typing words, or listening and matching. The "Daily Words" tab displays a new English word each day with pronunciation, usage examples, and a quiz. Store all words, meanings, examples, and audio URLs in Firestore or the Firebase Realtime Database. Supports user progress tracking: number of words learned, current line, and XP points. Use Firebase Authentication (anonymous or Google Sign-in). A responsive design that works seamlessly on both Android and iOS (or as a PWA on the web). All content should support full English text and RTL-friendly styling (for optional Arabic translations). Optional: Allow interface language switching between English and Arabic. **Technical group suggestions:** Flutter (preferred), React Native, or Web App Firebase (Firestore, authentication, hosting) ElevenLabs Voice API (or refer to Google TTS) Clean, modern UI with Duolingo-like animations and icons