kubodimo0 commited on
Commit
ad9b2c7
·
verified ·
1 Parent(s): 6e3af01

Add 2 files

Browse files
Files changed (2) hide show
  1. README.md +6 -4
  2. index.html +329 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Lp 01
3
- emoji: 💻
4
- colorFrom: green
5
  colorTo: green
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: lp-01
3
+ emoji: 🐳
4
+ colorFrom: red
5
  colorTo: green
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,329 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>LangPal - Language Practice App</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
9
+ <style>
10
+ .gradient-bg {
11
+ background: linear-gradient(135deg, #6B73FF 0%, #000DFF 50%, #0085FF 100%);
12
+ }
13
+ .dialogue-bubble {
14
+ position: relative;
15
+ border-radius: 20px;
16
+ padding: 15px;
17
+ margin: 10px 0;
18
+ max-width: 80%;
19
+ }
20
+ .dialogue-bubble:after {
21
+ content: '';
22
+ position: absolute;
23
+ width: 0;
24
+ height: 0;
25
+ border: 15px solid transparent;
26
+ }
27
+ .user-bubble {
28
+ background-color: #3B82F6;
29
+ color: white;
30
+ align-self: flex-end;
31
+ }
32
+ .user-bubble:after {
33
+ border-left-color: #3B82F6;
34
+ border-right: 0;
35
+ right: -15px;
36
+ top: 50%;
37
+ transform: translateY(-50%);
38
+ }
39
+ .partner-bubble {
40
+ background-color: #E5E7EB;
41
+ color: #111827;
42
+ align-self: flex-start;
43
+ }
44
+ .partner-bubble:after {
45
+ border-right-color: #E5E7EB;
46
+ border-left: 0;
47
+ left: -15px;
48
+ top: 50%;
49
+ transform: translateY(-50%);
50
+ }
51
+ .waveform {
52
+ height: 40px;
53
+ background: linear-gradient(90deg, #3B82F6 0%, rgba(59, 130, 246, 0.5) 50%, rgba(59, 130, 246, 0.2) 100%);
54
+ border-radius: 20px;
55
+ animation: wave 1.5s infinite linear;
56
+ }
57
+ @keyframes wave {
58
+ 0% { background-position: 0% 50%; }
59
+ 100% { background-position: 100% 50%; }
60
+ }
61
+ .tab-active {
62
+ border-bottom: 3px solid #3B82F6;
63
+ color: #3B82F6;
64
+ font-weight: 600;
65
+ }
66
+ </style>
67
+ </head>
68
+ <body class="bg-gray-50 min-h-screen">
69
+ <!-- Header -->
70
+ <header class="gradient-bg text-white shadow-lg">
71
+ <div class="container mx-auto px-4 py-6">
72
+ <div class="flex justify-between items-center">
73
+ <div class="flex items-center space-x-3">
74
+ <i class="fas fa-comments text-3xl"></i>
75
+ <h1 class="text-2xl font-bold">LangPal</h1>
76
+ </div>
77
+ <div class="flex items-center space-x-4">
78
+ <button class="bg-white text-blue-600 px-4 py-2 rounded-full font-medium flex items-center">
79
+ <i class="fas fa-plus mr-2"></i> New Dialogue
80
+ </button>
81
+ <div class="w-10 h-10 rounded-full bg-white flex items-center justify-center text-blue-600 font-bold">
82
+ <i class="fas fa-user"></i>
83
+ </div>
84
+ </div>
85
+ </div>
86
+ </div>
87
+ </header>
88
+
89
+ <!-- Main Content -->
90
+ <main class="container mx-auto px-4 py-8">
91
+ <!-- Language Selector -->
92
+ <div class="bg-white rounded-xl shadow-md p-4 mb-6">
93
+ <div class="flex justify-between items-center">
94
+ <div class="flex items-center space-x-4">
95
+ <div class="relative">
96
+ <select class="appearance-none bg-gray-100 border-0 rounded-full py-2 pl-4 pr-8 text-gray-700 focus:outline-none focus:ring-2 focus:ring-blue-500">
97
+ <option>English</option>
98
+ <option>Spanish</option>
99
+ <option>French</option>
100
+ <option>German</option>
101
+ <option>Japanese</option>
102
+ </select>
103
+ <i class="fas fa-chevron-down absolute right-3 top-3 text-gray-500"></i>
104
+ </div>
105
+ <div class="relative">
106
+ <select class="appearance-none bg-gray-100 border-0 rounded-full py-2 pl-4 pr-8 text-gray-700 focus:outline-none focus:ring-2 focus:ring-blue-500">
107
+ <option>Spanish</option>
108
+ <option>English</option>
109
+ <option>French</option>
110
+ <option>German</option>
111
+ <option>Japanese</option>
112
+ </select>
113
+ <i class="fas fa-chevron-down absolute right-3 top-3 text-gray-500"></i>
114
+ </div>
115
+ </div>
116
+ <button class="bg-blue-500 hover:bg-blue-600 text-white px-4 py-2 rounded-full font-medium flex items-center">
117
+ <i class="fas fa-exchange-alt mr-2"></i> Switch
118
+ </button>
119
+ </div>
120
+ </div>
121
+
122
+ <!-- Tabs -->
123
+ <div class="flex border-b border-gray-200 mb-6">
124
+ <button class="px-4 py-3 font-medium text-gray-500 hover:text-blue-600 mr-2 tab-active">
125
+ <i class="fas fa-comment-dots mr-2"></i> Dialogue
126
+ </button>
127
+ <button class="px-4 py-3 font-medium text-gray-500 hover:text-blue-600 mr-2">
128
+ <i class="fas fa-headphones mr-2"></i> Listen
129
+ </button>
130
+ <button class="px-4 py-3 font-medium text-gray-500 hover:text-blue-600">
131
+ <i class="fas fa-microphone mr-2"></i> Practice
132
+ </button>
133
+ </div>
134
+
135
+ <!-- Dialogue Content -->
136
+ <div class="bg-white rounded-xl shadow-md overflow-hidden mb-6">
137
+ <!-- Dialogue Title -->
138
+ <div class="border-b border-gray-200 p-4 bg-gray-50">
139
+ <h2 class="text-xl font-semibold text-gray-800">At the Restaurant</h2>
140
+ <p class="text-gray-500 text-sm">Practice ordering food in Spanish</p>
141
+ </div>
142
+
143
+ <!-- Dialogue Lines -->
144
+ <div class="p-4 flex flex-col">
145
+ <!-- Line 1 -->
146
+ <div class="dialogue-bubble partner-bubble">
147
+ <div class="flex justify-between items-start mb-1">
148
+ <span class="font-semibold">Waiter</span>
149
+ <div class="flex space-x-2">
150
+ <button class="text-gray-500 hover:text-blue-500">
151
+ <i class="fas fa-volume-up"></i>
152
+ </button>
153
+ <button class="text-gray-500 hover:text-blue-500">
154
+ <i class="fas fa-edit"></i>
155
+ </button>
156
+ </div>
157
+ </div>
158
+ <p>Buenas noches. ¿Tienen una reserva?</p>
159
+ <p class="text-gray-500 text-sm mt-2">Good evening. Do you have a reservation?</p>
160
+ </div>
161
+
162
+ <!-- Line 2 -->
163
+ <div class="dialogue-bubble user-bubble">
164
+ <div class="flex justify-between items-start mb-1">
165
+ <span class="font-semibold">You</span>
166
+ <div class="flex space-x-2">
167
+ <button class="text-white hover:text-blue-200">
168
+ <i class="fas fa-volume-up"></i>
169
+ </button>
170
+ <button class="text-white hover:text-blue-200">
171
+ <i class="fas fa-edit"></i>
172
+ </button>
173
+ </div>
174
+ </div>
175
+ <p>Sí, reservamos a las 8 para dos personas a nombre de García.</p>
176
+ <p class="text-blue-100 text-sm mt-2">Yes, we reserved at 8 for two people under García.</p>
177
+ </div>
178
+
179
+ <!-- Line 3 -->
180
+ <div class="dialogue-bubble partner-bubble">
181
+ <div class="flex justify-between items-start mb-1">
182
+ <span class="font-semibold">Waiter</span>
183
+ <div class="flex space-x-2">
184
+ <button class="text-gray-500 hover:text-blue-500">
185
+ <i class="fas fa-volume-up"></i>
186
+ </button>
187
+ <button class="text-gray-500 hover:text-blue-500">
188
+ <i class="fas fa-edit"></i>
189
+ </button>
190
+ </div>
191
+ </div>
192
+ <p>Perfecto. Por aquí, por favor. ¿Les gustaría ver el menú de bebidas primero?</p>
193
+ <p class="text-gray-500 text-sm mt-2">Perfect. This way, please. Would you like to see the drinks menu first?</p>
194
+ </div>
195
+ </div>
196
+
197
+ <!-- Add New Line -->
198
+ <div class="border-t border-gray-200 p-4 bg-gray-50">
199
+ <div class="flex items-center space-x-3">
200
+ <select class="bg-gray-100 border-0 rounded-full py-2 pl-4 pr-8 text-gray-700 focus:outline-none focus:ring-2 focus:ring-blue-500">
201
+ <option>Waiter</option>
202
+ <option>You</option>
203
+ </select>
204
+ <input type="text" placeholder="Enter dialogue line..." class="flex-1 bg-gray-100 border-0 rounded-full py-2 px-4 text-gray-700 focus:outline-none focus:ring-2 focus:ring-blue-500">
205
+ <button class="bg-blue-500 hover:bg-blue-600 text-white p-2 rounded-full">
206
+ <i class="fas fa-plus"></i>
207
+ </button>
208
+ </div>
209
+ </div>
210
+ </div>
211
+
212
+ <!-- Practice Section -->
213
+ <div class="bg-white rounded-xl shadow-md overflow-hidden">
214
+ <div class="border-b border-gray-200 p-4 bg-gray-50">
215
+ <h2 class="text-xl font-semibold text-gray-800">Practice Speaking</h2>
216
+ <p class="text-gray-500 text-sm">Record yourself and compare with the original</p>
217
+ </div>
218
+
219
+ <div class="p-6">
220
+ <!-- Current Line to Practice -->
221
+ <div class="bg-blue-50 rounded-lg p-4 mb-6">
222
+ <div class="flex justify-between items-center mb-2">
223
+ <span class="font-semibold text-blue-800">Current Line</span>
224
+ <button class="text-blue-500 hover:text-blue-700">
225
+ <i class="fas fa-volume-up"></i> Play Original
226
+ </button>
227
+ </div>
228
+ <p class="text-blue-900">Sí, reservamos a las 8 para dos personas a nombre de García.</p>
229
+ <p class="text-blue-700 text-sm mt-1">Yes, we reserved at 8 for two people under García.</p>
230
+ </div>
231
+
232
+ <!-- Recording UI -->
233
+ <div class="text-center">
234
+ <div class="w-24 h-24 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-6 cursor-pointer hover:bg-blue-200 transition">
235
+ <i class="fas fa-microphone text-3xl text-blue-600"></i>
236
+ </div>
237
+
238
+ <div class="waveform mb-6"></div>
239
+
240
+ <div class="flex justify-center space-x-4">
241
+ <button class="bg-gray-200 hover:bg-gray-300 text-gray-800 px-6 py-2 rounded-full font-medium flex items-center">
242
+ <i class="fas fa-redo mr-2"></i> Retry
243
+ </button>
244
+ <button class="bg-blue-500 hover:bg-blue-600 text-white px-6 py-2 rounded-full font-medium flex items-center">
245
+ <i class="fas fa-check mr-2"></i> Compare
246
+ </button>
247
+ </div>
248
+ </div>
249
+
250
+ <!-- Results (hidden by default) -->
251
+ <div class="mt-8 hidden">
252
+ <h3 class="text-lg font-semibold text-gray-800 mb-4">Comparison Results</h3>
253
+
254
+ <div class="mb-6">
255
+ <div class="flex justify-between mb-1">
256
+ <span class="text-sm font-medium text-gray-700">Original</span>
257
+ <span class="text-sm font-medium text-green-600">95% match</span>
258
+ </div>
259
+ <div class="w-full bg-gray-200 rounded-full h-2.5">
260
+ <div class="bg-green-500 h-2.5 rounded-full" style="width: 95%"></div>
261
+ </div>
262
+ </div>
263
+
264
+ <div class="grid grid-cols-2 gap-4">
265
+ <div class="bg-gray-100 p-4 rounded-lg">
266
+ <h4 class="font-medium text-gray-700 mb-2">Original</h4>
267
+ <p class="text-gray-800">Sí, reservamos a las 8 para dos personas a nombre de García.</p>
268
+ <div class="mt-3 flex items-center text-sm text-gray-500">
269
+ <i class="fas fa-check-circle text-green-500 mr-1"></i>
270
+ <span>Perfect pronunciation</span>
271
+ </div>
272
+ </div>
273
+
274
+ <div class="bg-blue-50 p-4 rounded-lg">
275
+ <h4 class="font-medium text-blue-700 mb-2">Your Recording</h4>
276
+ <p class="text-blue-800">Sí, reservamos a las 8 para dos personas a nombre de García.</p>
277
+ <div class="mt-3 flex items-center text-sm text-blue-500">
278
+ <i class="fas fa-info-circle mr-1"></i>
279
+ <span>Minor intonation difference</span>
280
+ </div>
281
+ </div>
282
+ </div>
283
+
284
+ <div class="mt-6 flex justify-center">
285
+ <button class="bg-blue-500 hover:bg-blue-600 text-white px-6 py-2 rounded-full font-medium">
286
+ Next Line <i class="fas fa-arrow-right ml-2"></i>
287
+ </button>
288
+ </div>
289
+ </div>
290
+ </div>
291
+ </div>
292
+ </main>
293
+
294
+ <!-- Bottom Navigation -->
295
+ <nav class="fixed bottom-0 left-0 right-0 bg-white shadow-lg border-t border-gray-200">
296
+ <div class="container mx-auto px-4">
297
+ <div class="flex justify-around">
298
+ <a href="#" class="py-4 px-6 text-center text-blue-600">
299
+ <i class="fas fa-home block text-xl mb-1"></i>
300
+ <span class="text-xs">Home</span>
301
+ </a>
302
+ <a href="#" class="py-4 px-6 text-center text-gray-500 hover:text-blue-600">
303
+ <i class="fas fa-book block text-xl mb-1"></i>
304
+ <span class="text-xs">Library</span>
305
+ </a>
306
+ <a href="#" class="py-4 px-6 text-center text-gray-500 hover:text-blue-600">
307
+ <i class="fas fa-chart-line block text-xl mb-1"></i>
308
+ <span class="text-xs">Progress</span>
309
+ </a>
310
+ <a href="#" class="py-4 px-6 text-center text-gray-500 hover:text-blue-600">
311
+ <i class="fas fa-cog block text-xl mb-1"></i>
312
+ <span class="text-xs">Settings</span>
313
+ </a>
314
+ </div>
315
+ </div>
316
+ </nav>
317
+
318
+ <script>
319
+ // Simple script to toggle the practice results
320
+ document.querySelector('.fa-microphone').closest('div').addEventListener('click', function() {
321
+ // In a real app, this would start recording
322
+ setTimeout(() => {
323
+ document.querySelector('.waveform').classList.add('hidden');
324
+ document.querySelector('.hidden').classList.remove('hidden');
325
+ }, 2000);
326
+ });
327
+ </script>
328
+ <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/lp-01" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
329
+ </html>