Ghust68 commited on
Commit
911fcc9
·
verified ·
1 Parent(s): cb72ca4

Add 3 files

Browse files
Files changed (3) hide show
  1. README.md +7 -5
  2. index.html +269 -19
  3. prompts.txt +2 -0
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Git Clone Https Huggingface Co Spaces Amgh344 La
3
- emoji: 👀
4
- colorFrom: yellow
5
- colorTo: blue
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: git-clone-https-huggingface-co-spaces-amgh344-la
3
+ emoji: 🐳
4
+ colorFrom: gray
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,269 @@
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>Czech Language Explorer</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
+ .card-flip {
11
+ perspective: 1000px;
12
+ }
13
+ .card-inner {
14
+ transition: transform 0.8s;
15
+ transform-style: preserve-3d;
16
+ }
17
+ .card-flip:hover .card-inner {
18
+ transform: rotateY(180deg);
19
+ }
20
+ .card-front, .card-back {
21
+ backface-visibility: hidden;
22
+ }
23
+ .card-back {
24
+ transform: rotateY(180deg);
25
+ }
26
+ .typewriter {
27
+ overflow: hidden;
28
+ border-right: .15em solid #4f46e5;
29
+ white-space: nowrap;
30
+ margin: 0 auto;
31
+ letter-spacing: .15em;
32
+ animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite;
33
+ }
34
+ @keyframes typing {
35
+ from { width: 0 }
36
+ to { width: 100% }
37
+ }
38
+ @keyframes blink-caret {
39
+ from, to { border-color: transparent }
40
+ 50% { border-color: #4f46e5; }
41
+ }
42
+ .czech-flag {
43
+ background: linear-gradient(to bottom, white 33%, #d7141a 33% 66%, #11457e 66%);
44
+ }
45
+ </style>
46
+ </head>
47
+ <body class="bg-gray-100 min-h-screen">
48
+ <div class="container mx-auto px-4 py-12">
49
+ <!-- Header -->
50
+ <header class="text-center mb-12">
51
+ <div class="czech-flag w-20 h-14 mx-auto mb-4 rounded shadow-lg"></div>
52
+ <h1 class="text-4xl font-bold text-gray-800 mb-2">Czech Language Explorer</h1>
53
+ <p class="text-lg text-gray-600">Discover the beauty of Czech language and culture</p>
54
+ </header>
55
+
56
+ <!-- Main Content -->
57
+ <div class="max-w-4xl mx-auto">
58
+ <!-- Introduction Card -->
59
+ <div class="bg-white rounded-xl shadow-lg p-6 mb-8">
60
+ <div class="flex items-center mb-4">
61
+ <i class="fas fa-comments text-indigo-600 text-2xl mr-3"></i>
62
+ <h2 class="text-2xl font-semibold text-gray-800">Can I speak Czech?</h2>
63
+ </div>
64
+ <p class="text-gray-700 mb-4">Absolutely! Czech is a West Slavic language spoken by over 10 million people. While it has a reputation for being challenging, with its complex grammar and unique sounds, it's a beautiful language to learn.</p>
65
+ <div class="typewriter text-indigo-700 font-medium text-lg mb-2">Ahoj! Jak se máš? (Hello! How are you?)</div>
66
+ <p class="text-gray-600">Start with these basic phrases and explore more below!</p>
67
+ </div>
68
+
69
+ <!-- Interactive Cards -->
70
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 mb-12">
71
+ <!-- Card 1 -->
72
+ <div class="card-flip h-64">
73
+ <div class="card-inner relative w-full h-full">
74
+ <div class="card-front absolute w-full h-full bg-indigo-600 rounded-xl shadow-lg p-6 flex flex-col justify-center items-center text-white">
75
+ <i class="fas fa-handshake text-4xl mb-4"></i>
76
+ <h3 class="text-xl font-bold mb-2">Greetings</h3>
77
+ <p>Essential Czech phrases</p>
78
+ </div>
79
+ <div class="card-back absolute w-full h-full bg-white rounded-xl shadow-lg p-6">
80
+ <h3 class="text-lg font-bold text-indigo-700 mb-3">Common Greetings</h3>
81
+ <ul class="space-y-2 text-gray-700">
82
+ <li><span class="font-medium">Dobrý den</span> - Good day</li>
83
+ <li><span class="font-medium">Ahoj</span> - Hello/Hi</li>
84
+ <li><span class="font-medium">Na shledanou</span> - Goodbye</li>
85
+ <li><span class="font-medium">Dobrou noc</span> - Good night</li>
86
+ </ul>
87
+ </div>
88
+ </div>
89
+ </div>
90
+
91
+ <!-- Card 2 -->
92
+ <div class="card-flip h-64">
93
+ <div class="card-inner relative w-full h-full">
94
+ <div class="card-front absolute w-full h-full bg-emerald-600 rounded-xl shadow-lg p-6 flex flex-col justify-center items-center text-white">
95
+ <i class="fas fa-utensils text-4xl mb-4"></i>
96
+ <h3 class="text-xl font-bold mb-2">Food & Drinks</h3>
97
+ <p>Order like a local</p>
98
+ </div>
99
+ <div class="card-back absolute w-full h-full bg-white rounded-xl shadow-lg p-6">
100
+ <h3 class="text-lg font-bold text-emerald-700 mb-3">Dining Phrases</h3>
101
+ <ul class="space-y-2 text-gray-700">
102
+ <li><span class="font-medium">Pivo, prosím</span> - Beer, please</li>
103
+ <li><span class="font-medium">Kolik to stojí?</span> - How much does it cost?</li>
104
+ <li><span class="font-medium">Dobrou chuť</span> - Enjoy your meal</li>
105
+ <li><span class="font-medium">To bylo výborné</span> - That was delicious</li>
106
+ </ul>
107
+ </div>
108
+ </div>
109
+ </div>
110
+
111
+ <!-- Card 3 -->
112
+ <div class="card-flip h-64">
113
+ <div class="card-inner relative w-full h-full">
114
+ <div class="card-front absolute w-full h-full bg-amber-600 rounded-xl shadow-lg p-6 flex flex-col justify-center items-center text-white">
115
+ <i class="fas fa-map-marked-alt text-4xl mb-4"></i>
116
+ <h3 class="text-xl font-bold mb-2">Travel</h3>
117
+ <p>Navigate with ease</p>
118
+ </div>
119
+ <div class="card-back absolute w-full h-full bg-white rounded-xl shadow-lg p-6">
120
+ <h3 class="text-lg font-bold text-amber-700 mb-3">Travel Phrases</h3>
121
+ <ul class="space-y-2 text-gray-700">
122
+ <li><span class="font-medium">Kde je...?</span> - Where is...?</li>
123
+ <li><span class="font-medium">Kolik je hodin?</span> - What time is it?</li>
124
+ <li><span class="font-medium">Pomoc!</span> - Help!</li>
125
+ <li><span class="font-medium">Nerozumím</span> - I don't understand</li>
126
+ </ul>
127
+ </div>
128
+ </div>
129
+ </div>
130
+ </div>
131
+
132
+ <!-- Pronunciation Guide -->
133
+ <div class="bg-white rounded-xl shadow-lg p-6 mb-8">
134
+ <div class="flex items-center mb-4">
135
+ <i class="fas fa-volume-up text-indigo-600 text-2xl mr-3"></i>
136
+ <h2 class="text-2xl font-semibold text-gray-800">Pronunciation Tips</h2>
137
+ </div>
138
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
139
+ <div>
140
+ <h3 class="text-lg font-medium text-gray-800 mb-2">Unique Czech Sounds</h3>
141
+ <ul class="space-y-2 text-gray-700">
142
+ <li><span class="font-medium">ř</span> - Like a rolled "r" with "zh" (unique to Czech)</li>
143
+ <li><span class="font-medium">ch</span> - Like the "ch" in Scottish "loch"</li>
144
+ <li><span class="font-medium">c</span> - Like "ts" in "cats"</li>
145
+ <li><span class="font-medium">ě</span> - Like "ye" in "yes"</li>
146
+ </ul>
147
+ </div>
148
+ <div>
149
+ <h3 class="text-lg font-medium text-gray-800 mb-2">Stress Pattern</h3>
150
+ <p class="text-gray-700 mb-3">Czech words are always stressed on the first syllable. This makes the rhythm of the language quite different from English.</p>
151
+ <button id="pronounceBtn" class="bg-indigo-600 hover:bg-indigo-700 text-white px-4 py-2 rounded-lg flex items-center">
152
+ <i class="fas fa-play mr-2"></i> Hear Basic Phrases
153
+ </button>
154
+ </div>
155
+ </div>
156
+ </div>
157
+
158
+ <!-- Interactive Quiz -->
159
+ <div class="bg-white rounded-xl shadow-lg p-6">
160
+ <div class="flex items-center mb-4">
161
+ <i class="fas fa-graduation-cap text-indigo-600 text-2xl mr-3"></i>
162
+ <h2 class="text-2xl font-semibold text-gray-800">Quick Czech Quiz</h2>
163
+ </div>
164
+ <div id="quizContainer" class="space-y-4">
165
+ <div class="quiz-question">
166
+ <p class="font-medium text-gray-800 mb-2">1. How do you say "Thank you" in Czech?</p>
167
+ <div class="space-y-2">
168
+ <label class="flex items-center space-x-2 cursor-pointer">
169
+ <input type="radio" name="q1" value="a" class="form-radio text-indigo-600">
170
+ <span>Prosím</span>
171
+ </label>
172
+ <label class="flex items-center space-x-2 cursor-pointer">
173
+ <input type="radio" name="q1" value="b" class="form-radio text-indigo-600">
174
+ <span>Děkuji</span>
175
+ </label>
176
+ <label class="flex items-center space-x-2 cursor-pointer">
177
+ <input type="radio" name="q1" value="c" class="form-radio text-indigo-600">
178
+ <span>Ahoj</span>
179
+ </label>
180
+ </div>
181
+ </div>
182
+ <div class="quiz-question">
183
+ <p class="font-medium text-gray-800 mb-2">2. What does "Pivo" mean?</p>
184
+ <div class="space-y-2">
185
+ <label class="flex items-center space-x-2 cursor-pointer">
186
+ <input type="radio" name="q2" value="a" class="form-radio text-indigo-600">
187
+ <span>Water</span>
188
+ </label>
189
+ <label class="flex items-center space-x-2 cursor-pointer">
190
+ <input type="radio" name="q2" value="b" class="form-radio text-indigo-600">
191
+ <span>Beer</span>
192
+ </label>
193
+ <label class="flex items-center space-x-2 cursor-pointer">
194
+ <input type="radio" name="q2" value="c" class="form-radio text-indigo-600">
195
+ <span>Food</span>
196
+ </label>
197
+ </div>
198
+ </div>
199
+ <button id="checkQuizBtn" class="bg-indigo-600 hover:bg-indigo-700 text-white px-4 py-2 rounded-lg">
200
+ Check Answers
201
+ </button>
202
+ <div id="quizResult" class="hidden mt-4 p-4 rounded-lg"></div>
203
+ </div>
204
+ </div>
205
+ </div>
206
+
207
+ <!-- Footer -->
208
+ <footer class="mt-16 text-center text-gray-600">
209
+ <p>Explore more about Czech language and culture!</p>
210
+ <p class="mt-2">© 2023 Czech Language Explorer</p>
211
+ </footer>
212
+ </div>
213
+
214
+ <script>
215
+ // Pronunciation button functionality
216
+ document.getElementById('pronounceBtn').addEventListener('click', function() {
217
+ const phrases = [
218
+ "Ahoj (Hello)",
219
+ "Dobrý den (Good day)",
220
+ "Děkuji (Thank you)",
221
+ "Prosím (Please/You're welcome)",
222
+ "Na shledanou (Goodbye)"
223
+ ];
224
+
225
+ let i = 0;
226
+ const pronounceNext = () => {
227
+ if (i < phrases.length) {
228
+ alert(phrases[i]);
229
+ i++;
230
+ setTimeout(pronounceNext, 1500);
231
+ }
232
+ };
233
+
234
+ pronounceNext();
235
+ });
236
+
237
+ // Quiz functionality
238
+ document.getElementById('checkQuizBtn').addEventListener('click', function() {
239
+ const answers = {
240
+ q1: 'b', // Děkuji
241
+ q2: 'b' // Beer
242
+ };
243
+
244
+ let score = 0;
245
+ const userAnswers = {
246
+ q1: document.querySelector('input[name="q1"]:checked')?.value,
247
+ q2: document.querySelector('input[name="q2"]:checked')?.value
248
+ };
249
+
250
+ if (userAnswers.q1 === answers.q1) score++;
251
+ if (userAnswers.q2 === answers.q2) score++;
252
+
253
+ const resultDiv = document.getElementById('quizResult');
254
+ resultDiv.classList.remove('hidden');
255
+
256
+ if (score === 2) {
257
+ resultDiv.className = 'bg-green-100 text-green-800 mt-4 p-4 rounded-lg';
258
+ resultDiv.innerHTML = '<i class="fas fa-check-circle mr-2"></i> Výborně! (Excellent!) You got both answers correct!';
259
+ } else if (score === 1) {
260
+ resultDiv.className = 'bg-yellow-100 text-yellow-800 mt-4 p-4 rounded-lg';
261
+ resultDiv.innerHTML = '<i class="fas fa-check mr-2"></i> Not bad! You got 1 out of 2 correct. Keep practicing!';
262
+ } else {
263
+ resultDiv.className = 'bg-red-100 text-red-800 mt-4 p-4 rounded-lg';
264
+ resultDiv.innerHTML = '<i class="fas fa-times-circle mr-2"></i> Try again! Review the phrases and give it another shot.';
265
+ }
266
+ });
267
+ </script>
268
+ <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=Ghust68/git-clone-https-huggingface-co-spaces-amgh344-la" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
269
+ </html>
prompts.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ Hi can i speak czech?
2
+ git clone https://huggingface.co/spaces/amgh344/la