File size: 38,324 Bytes
c7ba073
 
 
 
 
e3de2c7
c7ba073
 
 
e3de2c7
 
 
c7ba073
e3de2c7
 
 
 
 
 
 
 
 
 
c7ba073
 
e3de2c7
 
 
 
c7ba073
e3de2c7
 
c7ba073
 
e3de2c7
 
 
c7ba073
e3de2c7
 
c7ba073
e3de2c7
 
 
c7ba073
e3de2c7
 
c7ba073
 
 
e3de2c7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c7ba073
e3de2c7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c7ba073
 
e3de2c7
 
 
 
 
 
 
c7ba073
 
e3de2c7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c7ba073
 
 
e3de2c7
 
 
 
 
 
 
 
 
 
 
 
c7ba073
e3de2c7
 
 
 
 
 
 
 
 
 
 
 
c7ba073
 
 
e3de2c7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c7ba073
e3de2c7
 
c7ba073
 
 
e3de2c7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c7ba073
e3de2c7
 
c7ba073
 
e3de2c7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c7ba073
 
e3de2c7
 
 
 
 
 
 
 
 
 
 
 
c7ba073
e3de2c7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c7ba073
 
e3de2c7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c7ba073
 
 
e3de2c7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c7ba073
e3de2c7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c7ba073
 
 
 
e3de2c7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c7ba073
 
 
e3de2c7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c7ba073
e3de2c7
 
 
 
 
c7ba073
e3de2c7
 
 
c7ba073
e3de2c7
 
 
 
c7ba073
e3de2c7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c7ba073
e3de2c7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c7ba073
e3de2c7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c7ba073
e3de2c7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c7ba073
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>LangPal - Language Practice App</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>
        /* Custom CSS for calendar dots */
        .calendar-day {
            position: relative;
        }
        .calendar-day.practiced::after {
            content: '';
            position: absolute;
            bottom: 2px;
            left: 50%;
            transform: translateX(-50%);
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background-color: #3b82f6;
        }
        
        /* Animation for conversation bubbles */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .conversation-bubble {
            animation: fadeIn 0.3s ease-out;
        }
        
        /* Custom scrollbar */
        ::-webkit-scrollbar {
            width: 5px;
        }
        ::-webkit-scrollbar-track {
            background: #f1f1f1;
        }
        ::-webkit-scrollbar-thumb {
            background: #888;
            border-radius: 10px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: #555;
        }
    </style>
</head>
<body class="bg-gray-100 font-sans">
    <!-- App Container -->
    <div class="max-w-md mx-auto bg-white min-h-screen flex flex-col overflow-hidden">
        <!-- Screen 1: Home -->
        <div id="home-screen" class="flex-1 flex flex-col">
            <!-- Header -->
            <div class="p-4 flex justify-between items-start">
                <div>
                    <h1 class="text-2xl font-bold">Hi, LP</h1>
                    <p class="text-gray-500">How's your day?</p>
                </div>
                <div class="flex items-center bg-blue-100 rounded-full px-3 py-1">
                    <i class="fas fa-fire text-orange-500 mr-2"></i>
                    <span class="font-semibold">7</span>
                    <span class="text-gray-600 ml-1">/30</span>
                </div>
            </div>
            
            <!-- Calendar -->
            <div class="p-4 bg-white rounded-lg shadow mx-4 mt-2">
                <div class="flex justify-between items-center mb-4">
                    <h2 class="font-semibold">November 2023</h2>
                    <div class="flex space-x-2">
                        <button class="p-1 rounded-full hover:bg-gray-100">
                            <i class="fas fa-chevron-left"></i>
                        </button>
                        <button class="p-1 rounded-full hover:bg-gray-100">
                            <i class="fas fa-chevron-right"></i>
                        </button>
                    </div>
                </div>
                
                <div class="grid grid-cols-7 gap-1 text-center">
                    <div class="text-gray-400 text-sm font-medium py-1">S</div>
                    <div class="text-gray-400 text-sm font-medium py-1">M</div>
                    <div class="text-gray-400 text-sm font-medium py-1">T</div>
                    <div class="text-gray-400 text-sm font-medium py-1">W</div>
                    <div class="text-gray-400 text-sm font-medium py-1">T</div>
                    <div class="text-gray-400 text-sm font-medium py-1">F</div>
                    <div class="text-gray-400 text-sm font-medium py-1">S</div>
                    
                    <!-- Calendar days -->
                    <div class="calendar-day py-2"></div>
                    <div class="calendar-day py-2"></div>
                    <div class="calendar-day py-2"></div>
                    <div class="calendar-day py-2"></div>
                    <div class="calendar-day py-2"></div>
                    <div class="calendar-day py-2"></div>
                    <div class="calendar-day py-2 practiced">1</div>
                    
                    <div class="calendar-day py-2 practiced">2</div>
                    <div class="calendar-day py-2 practiced">3</div>
                    <div class="calendar-day py-2">4</div>
                    <div class="calendar-day py-2 practiced">5</div>
                    <div class="calendar-day py-2">6</div>
                    <div class="calendar-day py-2 practiced">7</div>
                    <div class="calendar-day py-2">8</div>
                    
                    <div class="calendar-day py-2">9</div>
                    <div class="calendar-day py-2 practiced">10</div>
                    <div class="calendar-day py-2 practiced">11</div>
                    <div class="calendar-day py-2">12</div>
                    <div class="calendar-day py-2">13</div>
                    <div class="calendar-day py-2 practiced">14</div>
                    <div class="calendar-day py-2">15</div>
                    
                    <div class="calendar-day py-2">16</div>
                    <div class="calendar-day py-2">17</div>
                    <div class="calendar-day py-2 practiced">18</div>
                    <div class="calendar-day py-2">19</div>
                    <div class="calendar-day py-2">20</div>
                    <div class="calendar-day py-2">21</div>
                    <div class="calendar-day py-2">22</div>
                    
                    <div class="calendar-day py-2">23</div>
                    <div class="calendar-day py-2">24</div>
                    <div class="calendar-day py-2">25</div>
                    <div class="calendar-day py-2">26</div>
                    <div class="calendar-day py-2">27</div>
                    <div class="calendar-day py-2">28</div>
                    <div class="calendar-day py-2">29</div>
                    
                    <div class="calendar-day py-2">30</div>
                    <div class="calendar-day py-2"></div>
                    <div class="calendar-day py-2"></div>
                    <div class="calendar-day py-2"></div>
                    <div class="calendar-day py-2"></div>
                    <div class="calendar-day py-2"></div>
                    <div class="calendar-day py-2"></div>
                </div>
            </div>
            
            <!-- Daily Challenge -->
            <div class="p-4 mt-4 mx-4 bg-gradient-to-r from-blue-500 to-blue-600 rounded-lg shadow text-white">
                <h3 class="font-bold text-lg mb-2">Daily Challenge</h3>
                <p class="mb-4">Complete a 5-minute conversation practice</p>
                <button class="bg-white text-blue-600 font-semibold px-4 py-2 rounded-full">
                    Start Now
                </button>
            </div>
            
            <!-- Progress Stats -->
            <div class="p-4 mt-4 mx-4 bg-white rounded-lg shadow">
                <h3 class="font-bold text-lg mb-2">Your Progress</h3>
                <div class="flex justify-between text-center">
                    <div>
                        <div class="text-2xl font-bold text-blue-600">12</div>
                        <div class="text-gray-500 text-sm">Conversations</div>
                    </div>
                    <div>
                        <div class="text-2xl font-bold text-blue-600">87%</div>
                        <div class="text-gray-500 text-sm">Accuracy</div>
                    </div>
                    <div>
                        <div class="text-2xl font-bold text-blue-600">5:32</div>
                        <div class="text-gray-500 text-sm">Avg. time</div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- Screen 2: Conversations -->
        <div id="conversations-screen" class="flex-1 flex flex-col hidden">
            <!-- Header -->
            <div class="p-4 border-b">
                <h1 class="text-2xl font-bold">Conversations</h1>
                <div class="flex mt-2">
                    <button class="px-3 py-1 bg-blue-100 text-blue-600 rounded-full mr-2 text-sm">All</button>
                    <button class="px-3 py-1 bg-gray-100 text-gray-600 rounded-full mr-2 text-sm">Travel</button>
                    <button class="px-3 py-1 bg-gray-100 text-gray-600 rounded-full mr-2 text-sm">Business</button>
                    <button class="px-3 py-1 bg-gray-100 text-gray-600 rounded-full text-sm">Social</button>
                </div>
            </div>
            
            <!-- Conversation List -->
            <div class="flex-1 overflow-y-auto">
                <div class="p-4 border-b flex items-center">
                    <div class="bg-blue-100 p-3 rounded-full mr-3">
                        <i class="fas fa-utensils text-blue-600"></i>
                    </div>
                    <div class="flex-1">
                        <h3 class="font-semibold">At the Restaurant</h3>
                        <p class="text-gray-500 text-sm">Ordering food and drinks</p>
                    </div>
                    <div class="text-gray-400">
                        <i class="fas fa-chevron-right"></i>
                    </div>
                </div>
                
                <div class="p-4 border-b flex items-center">
                    <div class="bg-green-100 p-3 rounded-full mr-3">
                        <i class="fas fa-hotel text-green-600"></i>
                    </div>
                    <div class="flex-1">
                        <h3 class="font-semibold">Hotel Check-in</h3>
                        <p class="text-gray-500 text-sm">Checking into a hotel</p>
                    </div>
                    <div class="text-gray-400">
                        <i class="fas fa-chevron-right"></i>
                    </div>
                </div>
                
                <div class="p-4 border-b flex items-center">
                    <div class="bg-purple-100 p-3 rounded-full mr-3">
                        <i class="fas fa-briefcase text-purple-600"></i>
                    </div>
                    <div class="flex-1">
                        <h3 class="font-semibold">Job Interview</h3>
                        <p class="text-gray-500 text-sm">Common interview questions</p>
                    </div>
                    <div class="text-gray-400">
                        <i class="fas fa-chevron-right"></i>
                    </div>
                </div>
                
                <div class="p-4 border-b flex items-center">
                    <div class="bg-yellow-100 p-3 rounded-full mr-3">
                        <i class="fas fa-shopping-bag text-yellow-600"></i>
                    </div>
                    <div class="flex-1">
                        <h3 class="font-semibold">Shopping</h3>
                        <p class="text-gray-500 text-sm">Asking about prices and sizes</p>
                    </div>
                    <div class="text-gray-400">
                        <i class="fas fa-chevron-right"></i>
                    </div>
                </div>
                
                <div class="p-4 border-b flex items-center">
                    <div class="bg-red-100 p-3 rounded-full mr-3">
                        <i class="fas fa-plane text-red-600"></i>
                    </div>
                    <div class="flex-1">
                        <h3 class="font-semibold">Airport</h3>
                        <p class="text-gray-500 text-sm">Checking in and boarding</p>
                    </div>
                    <div class="text-gray-400">
                        <i class="fas fa-chevron-right"></i>
                    </div>
                </div>
            </div>
            
            <!-- Practice Modal -->
            <div id="practice-modal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center hidden">
                <div class="bg-white rounded-lg w-full mx-4 max-h-[80vh] overflow-hidden">
                    <div class="p-4 border-b flex justify-between items-center">
                        <h2 class="font-bold text-lg">At the Restaurant</h2>
                        <button onclick="hideModal('practice-modal')" class="text-gray-500">
                            <i class="fas fa-times"></i>
                        </button>
                    </div>
                    
                    <div class="p-4">
                        <h3 class="font-semibold mb-2">Choose your role:</h3>
                        <div class="flex space-x-4 mb-4">
                            <button class="flex-1 bg-blue-100 text-blue-600 py-2 rounded-lg font-medium">
                                Customer
                            </button>
                            <button class="flex-1 bg-gray-100 text-gray-600 py-2 rounded-lg font-medium">
                                Waiter
                            </button>
                        </div>
                        
                        <h3 class="font-semibold mb-2">Display mode:</h3>
                        <div class="flex space-x-4">
                            <button class="flex-1 bg-blue-100 text-blue-600 py-2 rounded-lg font-medium">
                                Full Script
                            </button>
                            <button class="flex-1 bg-gray-100 text-gray-600 py-2 rounded-lg font-medium">
                                Line by Line
                            </button>
                        </div>
                    </div>
                    
                    <div class="p-4 border-t">
                        <button class="w-full bg-blue-600 text-white py-3 rounded-lg font-semibold">
                            Start Practice
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- Conversation Practice Screen -->
            <div id="conversation-practice" class="fixed inset-0 bg-white flex flex-col hidden">
                <!-- Header -->
                <div class="p-4 border-b flex justify-between items-center">
                    <button onclick="hideModal('conversation-practice')" class="text-blue-600">
                        <i class="fas fa-arrow-left"></i>
                    </button>
                    <h2 class="font-bold">At the Restaurant</h2>
                    <div class="w-6"></div> <!-- Spacer -->
                </div>
                
                <!-- Conversation Display -->
                <div class="flex-1 p-4 overflow-y-auto">
                    <div class="mb-6">
                        <div class="text-center text-gray-500 text-sm mb-2">You are: <span class="font-semibold text-blue-600">Customer</span></div>
                        <div class="flex justify-end mb-2">
                            <button class="text-blue-600 text-sm font-medium">
                                <i class="fas fa-microphone mr-1"></i> Record
                            </button>
                        </div>
                    </div>
                    
                    <div class="space-y-4">
                        <!-- Conversation bubbles -->
                        <div class="conversation-bubble bg-blue-100 p-3 rounded-lg max-w-[80%] ml-auto">
                            <div class="font-semibold text-blue-800 mb-1">You (Customer)</div>
                            <p>I'd like to book a table for two, please.</p>
                        </div>
                        
                        <div class="conversation-bubble bg-gray-200 p-3 rounded-lg max-w-[80%]">
                            <div class="font-semibold text-gray-700 mb-1">Waiter</div>
                            <p>Certainly. What time would you like to book for?</p>
                        </div>
                        
                        <div class="conversation-bubble bg-blue-100 p-3 rounded-lg max-w-[80%] ml-auto">
                            <div class="font-semibold text-blue-800 mb-1">You (Customer)</div>
                            <p>7:30 pm would be perfect.</p>
                        </div>
                        
                        <div class="conversation-bubble bg-gray-200 p-3 rounded-lg max-w-[80%]">
                            <div class="font-semibold text-gray-700 mb-1">Waiter</div>
                            <p>And would you prefer indoor or outdoor seating?</p>
                        </div>
                        
                        <div class="conversation-bubble bg-blue-100 p-3 rounded-lg max-w-[80%] ml-auto">
                            <div class="font-semibold text-blue-800 mb-1">You (Customer)</div>
                            <p>Outdoor seating would be lovely, if possible.</p>
                        </div>
                    </div>
                </div>
                
                <!-- Controls -->
                <div class="p-4 border-t flex justify-between">
                    <button class="text-gray-500">
                        <i class="fas fa-volume-up text-xl"></i>
                    </button>
                    <button class="text-gray-500">
                        <i class="fas fa-arrow-left text-xl"></i>
                    </button>
                    <button class="bg-blue-600 text-white p-3 rounded-full">
                        <i class="fas fa-microphone text-xl"></i>
                    </button>
                    <button class="text-gray-500">
                        <i class="fas fa-arrow-right text-xl"></i>
                    </button>
                    <button class="text-gray-500">
                        <i class="fas fa-cog text-xl"></i>
                    </button>
                </div>
            </div>
        </div>
        
        <!-- Screen 3: Listening Practice -->
        <div id="listening-screen" class="flex-1 flex flex-col hidden">
            <!-- Header -->
            <div class="p-4 border-b">
                <h1 class="text-2xl font-bold">Listening Practice</h1>
                <div class="flex mt-2">
                    <button class="px-3 py-1 bg-blue-100 text-blue-600 rounded-full mr-2 text-sm">All</button>
                    <button class="px-3 py-1 bg-gray-100 text-gray-600 rounded-full mr-2 text-sm">Beginner</button>
                    <button class="px-3 py-1 bg-gray-100 text-gray-600 rounded-full mr-2 text-sm">Intermediate</button>
                    <button class="px-3 py-1 bg-gray-100 text-gray-600 rounded-full text-sm">Advanced</button>
                </div>
            </div>
            
            <!-- Listening Exercises -->
            <div class="flex-1 overflow-y-auto">
                <div class="p-4 border-b">
                    <div class="flex items-start">
                        <div class="bg-blue-100 p-3 rounded-full mr-3">
                            <i class="fas fa-headphones text-blue-600"></i>
                        </div>
                        <div class="flex-1">
                            <h3 class="font-semibold">Coffee Shop Conversation</h3>
                            <p class="text-gray-500 text-sm">Ordering coffee and snacks</p>
                            <div class="flex mt-2">
                                <span class="bg-gray-100 px-2 py-1 rounded text-xs mr-2">Beginner</span>
                                <span class="bg-gray-100 px-2 py-1 rounded text-xs">2:45</span>
                            </div>
                        </div>
                    </div>
                    <div class="flex justify-end mt-3 space-x-2">
                        <button class="px-3 py-1 bg-gray-100 text-gray-600 rounded-full text-sm">
                            <i class="fas fa-play mr-1"></i> Listen
                        </button>
                        <button class="px-3 py-1 bg-blue-100 text-blue-600 rounded-full text-sm">
                            <i class="fas fa-pencil-alt mr-1"></i> Dictation
                        </button>
                    </div>
                </div>
                
                <div class="p-4 border-b">
                    <div class="flex items-start">
                        <div class="bg-green-100 p-3 rounded-full mr-3">
                            <i class="fas fa-headphones text-green-600"></i>
                        </div>
                        <div class="flex-1">
                            <h3 class="font-semibold">Job Interview</h3>
                            <p class="text-gray-500 text-sm">Common questions and answers</p>
                            <div class="flex mt-2">
                                <span class="bg-gray-100 px-2 py-1 rounded text-xs mr-2">Intermediate</span>
                                <span class="bg-gray-100 px-2 py-1 rounded text-xs">4:12</span>
                            </div>
                        </div>
                    </div>
                    <div class="flex justify-end mt-3 space-x-2">
                        <button class="px-3 py-1 bg-gray-100 text-gray-600 rounded-full text-sm">
                            <i class="fas fa-play mr-1"></i> Listen
                        </button>
                        <button class="px-3 py-1 bg-blue-100 text-blue-600 rounded-full text-sm">
                            <i class="fas fa-pencil-alt mr-1"></i> Dictation
                        </button>
                    </div>
                </div>
                
                <div class="p-4 border-b">
                    <div class="flex items-start">
                        <div class="bg-purple-100 p-3 rounded-full mr-3">
                            <i class="fas fa-headphones text-purple-600"></i>
                        </div>
                        <div class="flex-1">
                            <h3 class="font-semibold">News Report</h3>
                            <p class="text-gray-500 text-sm">Daily news highlights</p>
                            <div class="flex mt-2">
                                <span class="bg-gray-100 px-2 py-1 rounded text-xs mr-2">Advanced</span>
                                <span class="bg-gray-100 px-2 py-1 rounded text-xs">3:28</span>
                            </div>
                        </div>
                    </div>
                    <div class="flex justify-end mt-3 space-x-2">
                        <button class="px-3 py-1 bg-gray-100 text-gray-600 rounded-full text-sm">
                            <i class="fas fa-play mr-1"></i> Listen
                        </button>
                        <button class="px-3 py-1 bg-blue-100 text-blue-600 rounded-full text-sm">
                            <i class="fas fa-pencil-alt mr-1"></i> Dictation
                        </button>
                    </div>
                </div>
                
                <div class="p-4 border-b">
                    <div class="flex items-start">
                        <div class="bg-yellow-100 p-3 rounded-full mr-3">
                            <i class="fas fa-headphones text-yellow-600"></i>
                        </div>
                        <div class="flex-1">
                            <h3 class="font-semibold">Airport Announcement</h3>
                            <p class="text-gray-500 text-sm">Flight information</p>
                            <div class="flex mt-2">
                                <span class="bg-gray-100 px-2 py-1 rounded text-xs mr-2">Beginner</span>
                                <span class="bg-gray-100 px-2 py-1 rounded text-xs">1:56</span>
                            </div>
                        </div>
                    </div>
                    <div class="flex justify-end mt-3 space-x-2">
                        <button class="px-3 py-1 bg-gray-100 text-gray-600 rounded-full text-sm">
                            <i class="fas fa-play mr-1"></i> Listen
                        </button>
                        <button class="px-3 py-1 bg-blue-100 text-blue-600 rounded-full text-sm">
                            <i class="fas fa-pencil-alt mr-1"></i> Dictation
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- Dictation Modal -->
            <div id="dictation-modal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center hidden">
                <div class="bg-white rounded-lg w-full mx-4 max-h-[80vh] overflow-hidden">
                    <div class="p-4 border-b flex justify-between items-center">
                        <h2 class="font-bold text-lg">Dictation Practice</h2>
                        <button onclick="hideModal('dictation-modal')" class="text-gray-500">
                            <i class="fas fa-times"></i>
                        </button>
                    </div>
                    
                    <div class="p-4 overflow-y-auto" style="max-height: 60vh;">
                        <div class="mb-4">
                            <div class="flex justify-center mb-4">
                                <button class="bg-blue-600 text-white p-3 rounded-full">
                                    <i class="fas fa-play text-xl"></i>
                                </button>
                            </div>
                            <div class="text-center text-gray-500 mb-2">
                                Listen to the audio and type what you hear
                            </div>
                            <div class="text-center text-sm text-gray-400">
                                Segment 1/5 • 0:12 - 0:24
                            </div>
                        </div>
                        
                        <div class="mb-4">
                            <textarea class="w-full p-3 border rounded-lg h-32" placeholder="Type what you hear here..."></textarea>
                        </div>
                        
                        <div class="flex justify-between">
                            <button class="px-4 py-2 bg-gray-100 text-gray-600 rounded-lg">
                                <i class="fas fa-arrow-left mr-2"></i> Previous
                            </button>
                            <button class="px-4 py-2 bg-blue-600 text-white rounded-lg">
                                Check Answer
                            </button>
                            <button class="px-4 py-2 bg-gray-100 text-gray-600 rounded-lg">
                                Next <i class="fas fa-arrow-right ml-2"></i>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- Screen 4: Settings -->
        <div id="settings-screen" class="flex-1 flex flex-col hidden">
            <!-- Header -->
            <div class="p-4 border-b">
                <h1 class="text-2xl font-bold">Settings</h1>
            </div>
            
            <!-- Settings List -->
            <div class="flex-1 overflow-y-auto">
                <div class="p-4 border-b">
                    <h2 class="font-semibold text-gray-500 mb-2">ACCOUNT</h2>
                    <div class="flex items-center py-2">
                        <div class="w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center mr-3">
                            <i class="fas fa-user text-blue-600"></i>
                        </div>
                        <div class="flex-1">
                            <h3 class="font-medium">User Profile</h3>
                            <p class="text-gray-500 text-sm">Update your personal information</p>
                        </div>
                        <div class="text-gray-400">
                            <i class="fas fa-chevron-right"></i>
                        </div>
                    </div>
                    
                    <div class="flex items-center py-2">
                        <div class="w-10 h-10 rounded-full bg-green-100 flex items-center justify-center mr-3">
                            <i class="fas fa-bell text-green-600"></i>
                        </div>
                        <div class="flex-1">
                            <h3 class="font-medium">Notifications</h3>
                            <p class="text-gray-500 text-sm">Manage notification preferences</p>
                        </div>
                        <div class="text-gray-400">
                            <i class="fas fa-chevron-right"></i>
                        </div>
                    </div>
                </div>
                
                <div class="p-4 border-b">
                    <h2 class="font-semibold text-gray-500 mb-2">APP SETTINGS</h2>
                    <div class="flex items-center py-2">
                        <div class="w-10 h-10 rounded-full bg-purple-100 flex items-center justify-center mr-3">
                            <i class="fas fa-language text-purple-600"></i>
                        </div>
                        <div class="flex-1">
                            <h3 class="font-medium">Language</h3>
                            <p class="text-gray-500 text-sm">English (US)</p>
                        </div>
                        <div class="text-gray-400">
                            <i class="fas fa-chevron-right"></i>
                        </div>
                    </div>
                    
                    <div class="flex items-center py-2">
                        <div class="w-10 h-10 rounded-full bg-yellow-100 flex items-center justify-center mr-3">
                            <i class="fas fa-moon text-yellow-600"></i>
                        </div>
                        <div class="flex-1">
                            <h3 class="font-medium">Dark Mode</h3>
                            <p class="text-gray-500 text-sm">Off</p>
                        </div>
                        <div>
                            <label class="relative inline-flex items-center cursor-pointer">
                                <input type="checkbox" value="" class="sr-only peer">
                                <div class="w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-blue-600"></div>
                            </label>
                        </div>
                    </div>
                    
                    <div class="flex items-center py-2">
                        <div class="w-10 h-10 rounded-full bg-red-100 flex items-center justify-center mr-3">
                            <i class="fas fa-volume-up text-red-600"></i>
                        </div>
                        <div class="flex-1">
                            <h3 class="font-medium">Speech Speed</h3>
                            <p class="text-gray-500 text-sm">Normal</p>
                        </div>
                        <div class="text-gray-400">
                            <i class="fas fa-chevron-right"></i>
                        </div>
                    </div>
                </div>
                
                <div class="p-4 border-b">
                    <h2 class="font-semibold text-gray-500 mb-2">SUPPORT</h2>
                    <div class="flex items-center py-2">
                        <div class="w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center mr-3">
                            <i class="fas fa-question-circle text-blue-600"></i>
                        </div>
                        <div class="flex-1">
                            <h3 class="font-medium">Help Center</h3>
                        </div>
                        <div class="text-gray-400">
                            <i class="fas fa-chevron-right"></i>
                        </div>
                    </div>
                    
                    <div class="flex items-center py-2">
                        <div class="w-10 h-10 rounded-full bg-green-100 flex items-center justify-center mr-3">
                            <i class="fas fa-envelope text-green-600"></i>
                        </div>
                        <div class="flex-1">
                            <h3 class="font-medium">Contact Us</h3>
                        </div>
                        <div class="text-gray-400">
                            <i class="fas fa-chevron-right"></i>
                        </div>
                    </div>
                    
                    <div class="flex items-center py-2">
                        <div class="w-10 h-10 rounded-full bg-purple-100 flex items-center justify-center mr-3">
                            <i class="fas fa-star text-purple-600"></i>
                        </div>
                        <div class="flex-1">
                            <h3 class="font-medium">Rate the App</h3>
                        </div>
                        <div class="text-gray-400">
                            <i class="fas fa-chevron-right"></i>
                        </div>
                    </div>
                </div>
                
                <div class="p-4">
                    <button class="w-full py-3 border border-gray-300 rounded-lg font-medium text-gray-700">
                        Sign Out
                    </button>
                </div>
            </div>
        </div>
        
        <!-- Bottom Navigation -->
        <div class="border-t flex justify-around items-center py-2 bg-white">
            <button onclick="showScreen('home-screen')" class="flex flex-col items-center p-2 text-blue-600">
                <i class="fas fa-home text-xl"></i>
                <span class="text-xs mt-1">Home</span>
            </button>
            <button onclick="showScreen('conversations-screen')" class="flex flex-col items-center p-2 text-gray-500">
                <i class="fas fa-comments text-xl"></i>
                <span class="text-xs mt-1">Conversations</span>
            </button>
            <button onclick="showScreen('listening-screen')" class="flex flex-col items-center p-2 text-gray-500">
                <i class="fas fa-headphones text-xl"></i>
                <span class="text-xs mt-1">Listening</span>
            </button>
            <button onclick="showScreen('settings-screen')" class="flex flex-col items-center p-2 text-gray-500">
                <i class="fas fa-cog text-xl"></i>
                <span class="text-xs mt-1">Settings</span>
            </button>
        </div>
    </div>

    <script>
        // Function to show a specific screen and hide others
        function showScreen(screenId) {
            // Hide all screens
            document.querySelectorAll('[id$="-screen"]').forEach(screen => {
                screen.classList.add('hidden');
            });
            
            // Show the selected screen
            document.getElementById(screenId).classList.remove('hidden');
            
            // Update bottom navigation active state
            const navButtons = document.querySelectorAll('[onclick^="showScreen"]');
            navButtons.forEach(button => {
                if (button.getAttribute('onclick').includes(screenId)) {
                    button.classList.remove('text-gray-500');
                    button.classList.add('text-blue-600');
                } else {
                    button.classList.remove('text-blue-600');
                    button.classList.add('text-gray-500');
                }
            });
            
            // Special case for conversation practice modal
            if (screenId === 'conversations-screen') {
                // Add click handlers to conversation items
                document.querySelectorAll('#conversations-screen .border-b.flex.items-center').forEach(item => {
                    item.addEventListener('click', function() {
                        document.getElementById('practice-modal').classList.remove('hidden');
                    });
                });
            }
        }
        
        // Function to show a modal
        function showModal(modalId) {
            document.getElementById(modalId).classList.remove('hidden');
        }
        
        // Function to hide a modal
        function hideModal(modalId) {
            document.getElementById(modalId).classList.add('hidden');
        }
        
        // Initialize the app with home screen visible
        document.addEventListener('DOMContentLoaded', function() {
            showScreen('home-screen');
            
            // Add event listeners for practice modal buttons
            document.querySelector('#practice-modal button.bg-blue-600').addEventListener('click', function() {
                hideModal('practice-modal');
                document.getElementById('conversation-practice').classList.remove('hidden');
            });
            
            // Add event listeners for dictation buttons
            document.querySelectorAll('#listening-screen button.bg-blue-100').forEach(button => {
                button.addEventListener('click', function() {
                    showModal('dictation-modal');
                });
            });
        });
    </script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - <a href="https://enzostvs-deepsite.hf.space?remix=kubodimo0/langpal-practice" style="color: #fff;text-decoration: underline;" target="_blank" >🧬 Remix</a></p></body>
</html>