eternalGenius commited on
Commit
54e6633
·
verified ·
1 Parent(s): 70ff4cb

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. index.html +525 -19
index.html CHANGED
@@ -1,19 +1,525 @@
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>Привет! - Greeting App</title>
7
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
8
+ <style>
9
+ :root {
10
+ --primary-color: #6c5ce7;
11
+ --secondary-color: #a29bfe;
12
+ --accent-color: #fd79a8;
13
+ --dark-color: #2d3436;
14
+ --light-color: #f5f6fa;
15
+ --shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
16
+ --transition: all 0.3s ease;
17
+ }
18
+
19
+ * {
20
+ margin: 0;
21
+ padding: 0;
22
+ box-sizing: border-box;
23
+ font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
24
+ }
25
+
26
+ body {
27
+ background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
28
+ min-height: 100vh;
29
+ display: flex;
30
+ flex-direction: column;
31
+ align-items: center;
32
+ color: var(--dark-color);
33
+ line-height: 1.6;
34
+ }
35
+
36
+ header {
37
+ width: 100%;
38
+ padding: 1.5rem;
39
+ background-color: white;
40
+ box-shadow: var(--shadow);
41
+ display: flex;
42
+ justify-content: space-between;
43
+ align-items: center;
44
+ position: sticky;
45
+ top: 0;
46
+ z-index: 100;
47
+ }
48
+
49
+ .logo {
50
+ font-size: 1.5rem;
51
+ font-weight: 700;
52
+ color: var(--primary-color);
53
+ text-decoration: none;
54
+ display: flex;
55
+ align-items: center;
56
+ gap: 0.5rem;
57
+ }
58
+
59
+ .logo i {
60
+ color: var(--accent-color);
61
+ }
62
+
63
+ .header-right {
64
+ display: flex;
65
+ align-items: center;
66
+ gap: 1.5rem;
67
+ }
68
+
69
+ .anycoder-link {
70
+ color: var(--dark-color);
71
+ text-decoration: none;
72
+ font-size: 0.9rem;
73
+ transition: var(--transition);
74
+ }
75
+
76
+ .anycoder-link:hover {
77
+ color: var(--primary-color);
78
+ }
79
+
80
+ .theme-toggle {
81
+ background: none;
82
+ border: none;
83
+ cursor: pointer;
84
+ font-size: 1.2rem;
85
+ color: var(--dark-color);
86
+ transition: var(--transition);
87
+ }
88
+
89
+ .theme-toggle:hover {
90
+ color: var(--primary-color);
91
+ }
92
+
93
+ main {
94
+ flex: 1;
95
+ width: 90%;
96
+ max-width: 1200px;
97
+ padding: 2rem 0;
98
+ display: flex;
99
+ flex-direction: column;
100
+ align-items: center;
101
+ text-align: center;
102
+ }
103
+
104
+ .greeting-container {
105
+ background-color: white;
106
+ border-radius: 20px;
107
+ padding: 3rem;
108
+ box-shadow: var(--shadow);
109
+ margin-bottom: 2rem;
110
+ width: 100%;
111
+ max-width: 600px;
112
+ transition: var(--transition);
113
+ position: relative;
114
+ overflow: hidden;
115
+ }
116
+
117
+ .greeting-container::before {
118
+ content: '';
119
+ position: absolute;
120
+ top: 0;
121
+ left: 0;
122
+ width: 100%;
123
+ height: 10px;
124
+ background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
125
+ }
126
+
127
+ .greeting-text {
128
+ font-size: 3.5rem;
129
+ font-weight: 800;
130
+ margin-bottom: 1rem;
131
+ background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
132
+ -webkit-background-clip: text;
133
+ -webkit-text-fill-color: transparent;
134
+ background-clip: text;
135
+ }
136
+
137
+ .subtext {
138
+ font-size: 1.2rem;
139
+ color: var(--dark-color);
140
+ margin-bottom: 2rem;
141
+ opacity: 0.8;
142
+ }
143
+
144
+ .language-info {
145
+ background-color: rgba(108, 92, 231, 0.1);
146
+ border-left: 4px solid var(--primary-color);
147
+ padding: 1rem;
148
+ border-radius: 8px;
149
+ margin: 1.5rem 0;
150
+ text-align: left;
151
+ width: 100%;
152
+ }
153
+
154
+ .language-info h3 {
155
+ color: var(--primary-color);
156
+ margin-bottom: 0.5rem;
157
+ }
158
+
159
+ .btn {
160
+ display: inline-block;
161
+ background-color: var(--primary-color);
162
+ color: white;
163
+ padding: 0.8rem 1.5rem;
164
+ border: none;
165
+ border-radius: 50px;
166
+ font-size: 1rem;
167
+ font-weight: 600;
168
+ cursor: pointer;
169
+ transition: var(--transition);
170
+ text-decoration: none;
171
+ margin: 0.5rem;
172
+ }
173
+
174
+ .btn:hover {
175
+ transform: translateY(-3px);
176
+ box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
177
+ }
178
+
179
+ .btn-secondary {
180
+ background-color: transparent;
181
+ color: var(--primary-color);
182
+ border: 2px solid var(--primary-color);
183
+ }
184
+
185
+ .btn-secondary:hover {
186
+ background-color: var(--primary-color);
187
+ color: white;
188
+ }
189
+
190
+ .features {
191
+ display: flex;
192
+ justify-content: center;
193
+ flex-wrap: wrap;
194
+ gap: 1.5rem;
195
+ margin: 2rem 0;
196
+ width: 100%;
197
+ }
198
+
199
+ .feature-card {
200
+ background-color: white;
201
+ border-radius: 15px;
202
+ padding: 1.5rem;
203
+ width: 200px;
204
+ box-shadow: var(--shadow);
205
+ transition: var(--transition);
206
+ text-align: center;
207
+ }
208
+
209
+ .feature-card:hover {
210
+ transform: translateY(-5px);
211
+ box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
212
+ }
213
+
214
+ .feature-card i {
215
+ font-size: 2.5rem;
216
+ color: var(--accent-color);
217
+ margin-bottom: 1rem;
218
+ }
219
+
220
+ .feature-card h3 {
221
+ margin-bottom: 0.5rem;
222
+ color: var(--primary-color);
223
+ }
224
+
225
+ .interactive-section {
226
+ width: 100%;
227
+ max-width: 600px;
228
+ margin-top: 2rem;
229
+ }
230
+
231
+ .input-group {
232
+ display: flex;
233
+ margin-bottom: 1rem;
234
+ }
235
+
236
+ .input-group input {
237
+ flex: 1;
238
+ padding: 0.8rem;
239
+ border: 2px solid #ddd;
240
+ border-radius: 8px 0 0 8px;
241
+ font-size: 1rem;
242
+ outline: none;
243
+ transition: var(--transition);
244
+ }
245
+
246
+ .input-group input:focus {
247
+ border-color: var(--primary-color);
248
+ }
249
+
250
+ .input-group button {
251
+ padding: 0.8rem 1.2rem;
252
+ background-color: var(--primary-color);
253
+ color: white;
254
+ border: none;
255
+ border-radius: 0 8px 8px 0;
256
+ cursor: pointer;
257
+ transition: var(--transition);
258
+ }
259
+
260
+ .input-group button:hover {
261
+ background-color: #5649c0;
262
+ }
263
+
264
+ .response {
265
+ margin-top: 1rem;
266
+ padding: 1rem;
267
+ border-radius: 8px;
268
+ background-color: rgba(108, 92, 231, 0.05);
269
+ border-left: 4px solid var(--primary-color);
270
+ text-align: left;
271
+ min-height: 50px;
272
+ display: none;
273
+ }
274
+
275
+ footer {
276
+ width: 100%;
277
+ padding: 1.5rem;
278
+ background-color: white;
279
+ text-align: center;
280
+ box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.05);
281
+ margin-top: auto;
282
+ }
283
+
284
+ .social-links {
285
+ display: flex;
286
+ justify-content: center;
287
+ gap: 1.5rem;
288
+ margin-bottom: 1rem;
289
+ }
290
+
291
+ .social-links a {
292
+ color: var(--dark-color);
293
+ font-size: 1.5rem;
294
+ transition: var(--transition);
295
+ }
296
+
297
+ .social-links a:hover {
298
+ color: var(--primary-color);
299
+ }
300
+
301
+ .copyright {
302
+ color: #7f8c8d;
303
+ font-size: 0.9rem;
304
+ }
305
+
306
+ @media (max-width: 768px) {
307
+ .header-right {
308
+ gap: 1rem;
309
+ }
310
+
311
+ .greeting-text {
312
+ font-size: 2.5rem;
313
+ }
314
+
315
+ .features {
316
+ flex-direction: column;
317
+ align-items: center;
318
+ }
319
+
320
+ .feature-card {
321
+ width: 100%;
322
+ max-width: 300px;
323
+ }
324
+ }
325
+
326
+ @media (max-width: 480px) {
327
+ header {
328
+ flex-direction: column;
329
+ gap: 1rem;
330
+ }
331
+
332
+ .header-right {
333
+ width: 100%;
334
+ justify-content: space-between;
335
+ }
336
+
337
+ .greeting-text {
338
+ font-size: 2rem;
339
+ }
340
+
341
+ .greeting-container {
342
+ padding: 2rem 1.5rem;
343
+ }
344
+ }
345
+
346
+ .hidden {
347
+ display: none;
348
+ }
349
+ </style>
350
+ </head>
351
+ <body>
352
+ <header>
353
+ <a href="#" class="logo">
354
+ <i class="fas fa-globe"></i>
355
+ <span>Привет App</span>
356
+ </a>
357
+ <div class="header-right">
358
+ <a href="https://huggingface.co/spaces/akhaliq/anycoder" class="anycoder-link" target="_blank">Built with anycoder</a>
359
+ <button class="theme-toggle" id="themeToggle">
360
+ <i class="fas fa-moon"></i>
361
+ </button>
362
+ </div>
363
+ </header>
364
+
365
+ <main>
366
+ <div class="greeting-container">
367
+ <h1 class="greeting-text">Привет!</h1>
368
+ <p class="subtext">Welcome to our greeting application. Let's explore the Russian language together!</p>
369
+
370
+ <div class="language-info">
371
+ <h3>About Russian</h3>
372
+ <p>"Привет" means "Hello" in Russian. Russian is the most widely spoken Slavic language and is one of the most spoken native languages in Europe.</p>
373
+ </div>
374
+
375
+ <div class="btn-group">
376
+ <button class="btn" id="learnMoreBtn">Learn More</button>
377
+ <button class="btn btn-secondary" id="tryBtn">Try It Out</button>
378
+ </div>
379
+ </div>
380
+
381
+ <div class="features">
382
+ <div class="feature-card">
383
+ <i class="fas fa-language"></i>
384
+ <h3>Language Learning</h3>
385
+ <p>Discover basic Russian phrases and greetings with our interactive tools.</p>
386
+ </div>
387
+ <div class="feature-card">
388
+ <i class="fas fa-volume-up"></i>
389
+ <h3>Pronunciation</h3>
390
+ <p>Listen to native speakers and practice your Russian pronunciation.</p>
391
+ </div>
392
+ <div class="feature-card">
393
+ <i class="fas fa-book"></i>
394
+ <h3>Cultural Insights</h3>
395
+ <p>Learn about Russian culture and traditions through language.</p>
396
+ </div>
397
+ </div>
398
+
399
+ <div class="interactive-section hidden" id="interactiveSection">
400
+ <h2>Try Russian Greetings</h2>
401
+ <p>Type an English greeting and we'll translate it to Russian for you!</p>
402
+
403
+ <div class="input-group">
404
+ <input type="text" id="greetingInput" placeholder="Type a greeting in English...">
405
+ <button id="translateBtn"><i class="fas fa-exchange-alt"></i></button>
406
+ </div>
407
+
408
+ <div class="response" id="translationResponse">
409
+ <!-- Translation will appear here -->
410
+ </div>
411
+
412
+ <div class="common-greetings">
413
+ <h3>Common Russian Greetings:</h3>
414
+ <div class="btn-group">
415
+ <button class="btn btn-secondary" onclick="showGreeting('Здравствуйте')">Formal Hello</button>
416
+ <button class="btn btn-secondary" onclick="showGreeting('Привет')">Casual Hello</button>
417
+ <button class="btn btn-secondary" onclick="showGreeting('Доброе утро')">Good Morning</button>
418
+ <button class="btn btn-secondary" onclick="showGreeting('Добрый вечер')">Good Evening</button>
419
+ </div>
420
+ </div>
421
+ </div>
422
+ </main>
423
+
424
+ <footer>
425
+ <div class="social-links">
426
+ <a href="#" title="Facebook"><i class="fab fa-facebook"></i></a>
427
+ <a href="#" title="Twitter"><i class="fab fa-twitter"></i></a>
428
+ <a href="#" title="Instagram"><i class="fab fa-instagram"></i></a>
429
+ <a href="#" title="GitHub"><i class="fab fa-github"></i></a>
430
+ </div>
431
+ <p class="copyright">© 2023 Привет App. All rights reserved.</p>
432
+ </footer>
433
+
434
+ <script>
435
+ // Theme toggle functionality
436
+ const themeToggle = document.getElementById('themeToggle');
437
+ const body = document.body;
438
+
439
+ themeToggle.addEventListener('click', () => {
440
+ body.classList.toggle('dark-mode');
441
+
442
+ if (body.classList.contains('dark-mode')) {
443
+ themeToggle.innerHTML = '<i class="fas fa-sun"></i>';
444
+ document.documentElement.style.setProperty('--primary-color', '#a29bfe');
445
+ document.documentElement.style.setProperty('--dark-color', '#f5f6fa');
446
+ document.documentElement.style.setProperty('--light-color', '#2d3436');
447
+ body.style.background = 'linear-gradient(135deg, #2d3436 0%, #1a1a1a 100%)';
448
+ } else {
449
+ themeToggle.innerHTML = '<i class="fas fa-moon"></i>';
450
+ document.documentElement.style.setProperty('--primary-color', '#6c5ce7');
451
+ document.documentElement.style.setProperty('--dark-color', '#2d3436');
452
+ document.documentElement.style.setProperty('--light-color', '#f5f6fa');
453
+ body.style.background = 'linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)';
454
+ }
455
+ });
456
+
457
+ // Button interactions
458
+ const learnMoreBtn = document.getElementById('learnMoreBtn');
459
+ const tryBtn = document.getElementById('tryBtn');
460
+ const interactiveSection = document.getElementById('interactiveSection');
461
+
462
+ tryBtn.addEventListener('click', () => {
463
+ interactiveSection.classList.remove('hidden');
464
+ interactiveSection.scrollIntoView({ behavior: 'smooth' });
465
+ });
466
+
467
+ learnMoreBtn.addEventListener('click', () => {
468
+ alert('Learn more about Russian language and culture coming soon!');
469
+ });
470
+
471
+ // Translation functionality
472
+ const translateBtn = document.getElementById('translateBtn');
473
+ const greetingInput = document.getElementById('greetingInput');
474
+ const translationResponse = document.getElementById('translationResponse');
475
+
476
+ const greetingsMap = {
477
+ 'hello': 'Привет',
478
+ 'hi': 'Привет',
479
+ 'good morning': 'Доброе утро',
480
+ 'good afternoon': 'Добрый день',
481
+ 'good evening': 'Добрый вечер',
482
+ 'good night': 'Спокойной ночи',
483
+ 'how are you': 'Как дела?',
484
+ 'thank you': 'Спасибо',
485
+ 'please': 'Пожалуйста',
486
+ 'yes': 'Да',
487
+ 'no': 'Нет',
488
+ 'goodbye': 'До свидания',
489
+ 'bye': 'Пока'
490
+ };
491
+
492
+ translateBtn.addEventListener('click', () => {
493
+ const input = greetingInput.value.trim().toLowerCase();
494
+
495
+ if (input) {
496
+ const translation = greetingsMap[input] || "Translation not available (try common greetings)";
497
+ translationResponse.textContent = `${input} → ${translation}`;
498
+ translationResponse.style.display = 'block';
499
+ } else {
500
+ translationResponse.textContent = 'Please enter a greeting to translate';
501
+ translationResponse.style.display = 'block';
502
+ }
503
+ });
504
+
505
+ // Common greetings buttons
506
+ function showGreeting(greeting) {
507
+ translationResponse.textContent = `Russian: ${greeting}`;
508
+ translationResponse.style.display = 'block';
509
+ }
510
+
511
+ // Add some animation on load
512
+ window.addEventListener('load', () => {
513
+ const greetingText = document.querySelector('.greeting-text');
514
+ greetingText.style.transform = 'scale(0.5)';
515
+ greetingText.style.opacity = '0';
516
+
517
+ setTimeout(() => {
518
+ greetingText.style.transition = 'transform 0.5s ease, opacity 0.5s ease';
519
+ greetingText.style.transform = 'scale(1)';
520
+ greetingText.style.opacity = '1';
521
+ }, 100);
522
+ });
523
+ </script>
524
+ </body>
525
+ </html>