maxocream commited on
Commit
aad9427
Β·
verified Β·
1 Parent(s): 7026c60

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. index.html +560 -19
index.html CHANGED
@@ -1,19 +1,560 @@
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>Hi Buddy - Welcome 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
+ * {
10
+ margin: 0;
11
+ padding: 0;
12
+ box-sizing: border-box;
13
+ }
14
+
15
+ body {
16
+ font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
17
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
18
+ min-height: 100vh;
19
+ display: flex;
20
+ flex-direction: column;
21
+ justify-content: center;
22
+ align-items: center;
23
+ overflow-x: hidden;
24
+ position: relative;
25
+ }
26
+
27
+ /* Animated background elements */
28
+ .bg-decoration {
29
+ position: fixed;
30
+ width: 100%;
31
+ height: 100%;
32
+ top: 0;
33
+ left: 0;
34
+ z-index: -1;
35
+ overflow: hidden;
36
+ }
37
+
38
+ .bubble {
39
+ position: absolute;
40
+ border-radius: 50%;
41
+ opacity: 0.1;
42
+ animation: float 15s infinite ease-in-out;
43
+ }
44
+
45
+ .bubble:nth-child(1) {
46
+ width: 200px;
47
+ height: 200px;
48
+ background: white;
49
+ top: -100px;
50
+ left: -100px;
51
+ animation-duration: 20s;
52
+ }
53
+
54
+ .bubble:nth-child(2) {
55
+ width: 150px;
56
+ height: 150px;
57
+ background: white;
58
+ bottom: -75px;
59
+ right: -75px;
60
+ animation-duration: 25s;
61
+ animation-direction: reverse;
62
+ }
63
+
64
+ .bubble:nth-child(3) {
65
+ width: 100px;
66
+ height: 100px;
67
+ background: white;
68
+ top: 50%;
69
+ right: 10%;
70
+ animation-duration: 18s;
71
+ }
72
+
73
+ @keyframes float {
74
+ 0%, 100% { transform: translateY(0px) translateX(0px); }
75
+ 50% { transform: translateY(30px) translateX(20px); }
76
+ }
77
+
78
+ /* Header */
79
+ header {
80
+ position: absolute;
81
+ top: 0;
82
+ width: 100%;
83
+ padding: 20px 30px;
84
+ display: flex;
85
+ justify-content: space-between;
86
+ align-items: center;
87
+ z-index: 100;
88
+ }
89
+
90
+ .logo {
91
+ font-size: 24px;
92
+ font-weight: 700;
93
+ color: white;
94
+ text-decoration: none;
95
+ display: flex;
96
+ align-items: center;
97
+ gap: 10px;
98
+ transition: transform 0.3s ease;
99
+ }
100
+
101
+ .logo:hover {
102
+ transform: scale(1.05);
103
+ }
104
+
105
+ .logo i {
106
+ font-size: 28px;
107
+ }
108
+
109
+ .anycoder-link {
110
+ color: white;
111
+ text-decoration: none;
112
+ font-weight: 600;
113
+ padding: 10px 20px;
114
+ border: 2px solid white;
115
+ border-radius: 25px;
116
+ transition: all 0.3s ease;
117
+ font-size: 14px;
118
+ }
119
+
120
+ .anycoder-link:hover {
121
+ background: white;
122
+ color: #667eea;
123
+ transform: translateY(-2px);
124
+ box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
125
+ }
126
+
127
+ /* Main Container */
128
+ .container {
129
+ text-align: center;
130
+ z-index: 10;
131
+ padding: 40px 20px;
132
+ max-width: 600px;
133
+ margin-top: 80px;
134
+ }
135
+
136
+ .greeting {
137
+ font-size: clamp(2rem, 8vw, 4rem);
138
+ font-weight: 800;
139
+ color: white;
140
+ margin-bottom: 20px;
141
+ animation: slideInDown 0.8s ease-out;
142
+ text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
143
+ }
144
+
145
+ .emoji {
146
+ display: inline-block;
147
+ font-size: clamp(3rem, 10vw, 5rem);
148
+ animation: bounce 2s ease-in-out infinite;
149
+ margin: 0 10px;
150
+ }
151
+
152
+ @keyframes slideInDown {
153
+ from {
154
+ opacity: 0;
155
+ transform: translateY(-50px);
156
+ }
157
+ to {
158
+ opacity: 1;
159
+ transform: translateY(0);
160
+ }
161
+ }
162
+
163
+ @keyframes bounce {
164
+ 0%, 100% { transform: translateY(0); }
165
+ 50% { transform: translateY(-20px); }
166
+ }
167
+
168
+ .description {
169
+ font-size: clamp(1rem, 3vw, 1.3rem);
170
+ color: rgba(255, 255, 255, 0.9);
171
+ margin-bottom: 40px;
172
+ animation: slideInUp 0.8s ease-out 0.2s both;
173
+ line-height: 1.6;
174
+ }
175
+
176
+ @keyframes slideInUp {
177
+ from {
178
+ opacity: 0;
179
+ transform: translateY(50px);
180
+ }
181
+ to {
182
+ opacity: 1;
183
+ transform: translateY(0);
184
+ }
185
+ }
186
+
187
+ /* Buttons */
188
+ .button-group {
189
+ display: flex;
190
+ gap: 15px;
191
+ justify-content: center;
192
+ flex-wrap: wrap;
193
+ animation: slideInUp 0.8s ease-out 0.4s both;
194
+ }
195
+
196
+ .btn {
197
+ padding: 14px 32px;
198
+ font-size: 16px;
199
+ font-weight: 600;
200
+ border: none;
201
+ border-radius: 50px;
202
+ cursor: pointer;
203
+ transition: all 0.3s ease;
204
+ text-decoration: none;
205
+ display: inline-flex;
206
+ align-items: center;
207
+ gap: 10px;
208
+ box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
209
+ }
210
+
211
+ .btn-primary {
212
+ background: white;
213
+ color: #667eea;
214
+ }
215
+
216
+ .btn-primary:hover {
217
+ transform: translateY(-3px);
218
+ box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
219
+ background: #f0f0f0;
220
+ }
221
+
222
+ .btn-secondary {
223
+ background: rgba(255, 255, 255, 0.2);
224
+ color: white;
225
+ border: 2px solid white;
226
+ }
227
+
228
+ .btn-secondary:hover {
229
+ background: white;
230
+ color: #667eea;
231
+ transform: translateY(-3px);
232
+ box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
233
+ }
234
+
235
+ /* Features Section */
236
+ .features {
237
+ display: grid;
238
+ grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
239
+ gap: 20px;
240
+ margin-top: 60px;
241
+ animation: slideInUp 0.8s ease-out 0.6s both;
242
+ }
243
+
244
+ .feature-card {
245
+ background: rgba(255, 255, 255, 0.1);
246
+ backdrop-filter: blur(10px);
247
+ padding: 25px;
248
+ border-radius: 15px;
249
+ border: 1px solid rgba(255, 255, 255, 0.2);
250
+ transition: all 0.3s ease;
251
+ color: white;
252
+ }
253
+
254
+ .feature-card:hover {
255
+ background: rgba(255, 255, 255, 0.2);
256
+ transform: translateY(-10px);
257
+ box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
258
+ }
259
+
260
+ .feature-icon {
261
+ font-size: 2.5rem;
262
+ margin-bottom: 10px;
263
+ display: block;
264
+ }
265
+
266
+ .feature-title {
267
+ font-size: 14px;
268
+ font-weight: 600;
269
+ margin-bottom: 5px;
270
+ }
271
+
272
+ .feature-desc {
273
+ font-size: 12px;
274
+ opacity: 0.8;
275
+ }
276
+
277
+ /* Responsive */
278
+ @media (max-width: 768px) {
279
+ header {
280
+ padding: 15px 20px;
281
+ }
282
+
283
+ .container {
284
+ margin-top: 60px;
285
+ padding: 30px 15px;
286
+ }
287
+
288
+ .button-group {
289
+ gap: 10px;
290
+ }
291
+
292
+ .btn {
293
+ padding: 12px 24px;
294
+ font-size: 14px;
295
+ }
296
+
297
+ .features {
298
+ gap: 15px;
299
+ }
300
+
301
+ .feature-card {
302
+ padding: 20px;
303
+ }
304
+ }
305
+
306
+ @media (max-width: 480px) {
307
+ .greeting {
308
+ margin-bottom: 15px;
309
+ }
310
+
311
+ .emoji {
312
+ margin: 0 5px;
313
+ }
314
+
315
+ .button-group {
316
+ flex-direction: column;
317
+ gap: 12px;
318
+ }
319
+
320
+ .btn {
321
+ width: 100%;
322
+ justify-content: center;
323
+ }
324
+
325
+ .features {
326
+ grid-template-columns: 1fr;
327
+ }
328
+ }
329
+
330
+ /* Particles effect */
331
+ .particle {
332
+ position: fixed;
333
+ pointer-events: none;
334
+ z-index: 1;
335
+ }
336
+
337
+ .star {
338
+ color: white;
339
+ font-size: 1.5rem;
340
+ animation: twinkle 3s ease-in-out infinite;
341
+ }
342
+
343
+ @keyframes twinkle {
344
+ 0%, 100% { opacity: 0.3; }
345
+ 50% { opacity: 1; }
346
+ }
347
+ </style>
348
+ </head>
349
+ <body>
350
+ <div class="bg-decoration">
351
+ <div class="bubble"></div>
352
+ <div class="bubble"></div>
353
+ <div class="bubble"></div>
354
+ </div>
355
+
356
+ <header>
357
+ <div class="logo">
358
+ <i class="fas fa-heart"></i>
359
+ <span>Buddy</span>
360
+ </div>
361
+ <a href="https://huggingface.co/spaces/akhaliq/anycoder" class="anycoder-link" target="_blank">
362
+ Built with anycoder
363
+ </a>
364
+ </header>
365
+
366
+ <div class="container">
367
+ <h1 class="greeting">
368
+ Hi Buddy! <span class="emoji">πŸ‘‹</span>
369
+ </h1>
370
+
371
+ <p class="description">
372
+ Welcome to an amazing interactive experience! We're excited to have you here. Let's create something wonderful together!
373
+ </p>
374
+
375
+ <div class="button-group">
376
+ <button class="btn btn-primary" onclick="handleGetStarted()">
377
+ <i class="fas fa-rocket"></i> Get Started
378
+ </button>
379
+ <button class="btn btn-secondary" onclick="handleLearnMore()">
380
+ <i class="fas fa-book"></i> Learn More
381
+ </button>
382
+ </div>
383
+
384
+ <div class="features">
385
+ <div class="feature-card">
386
+ <span class="feature-icon">⚑</span>
387
+ <div class="feature-title">Fast</div>
388
+ <div class="feature-desc">Lightning quick responses</div>
389
+ </div>
390
+ <div class="feature-card">
391
+ <span class="feature-icon">🎨</span>
392
+ <div class="feature-title">Beautiful</div>
393
+ <div class="feature-desc">Modern UI design</div>
394
+ </div>
395
+ <div class="feature-card">
396
+ <span class="feature-icon">πŸ”’</span>
397
+ <div class="feature-title">Secure</div>
398
+ <div class="feature-desc">Your data is safe</div>
399
+ </div>
400
+ <div class="feature-card">
401
+ <span class="feature-icon">πŸ“±</span>
402
+ <div class="feature-title">Responsive</div>
403
+ <div class="feature-desc">Works everywhere</div>
404
+ </div>
405
+ </div>
406
+ </div>
407
+
408
+ <script>
409
+ // Create floating particles
410
+ function createParticles() {
411
+ const container = document.body;
412
+ const particleCount = 20;
413
+
414
+ for (let i = 0; i < particleCount; i++) {
415
+ const particle = document.createElement('div');
416
+ particle.classList.add('particle', 'star');
417
+ particle.innerHTML = '✨';
418
+ particle.style.left = Math.random() * window.innerWidth + 'px';
419
+ particle.style.top = Math.random() * window.innerHeight + 'px';
420
+ particle.style.animationDelay = Math.random() * 3 + 's';
421
+ container.appendChild(particle);
422
+ }
423
+ }
424
+
425
+ // Button handlers
426
+ function handleGetStarted() {
427
+ showNotification('πŸš€ Let\'s go! Welcome aboard!');
428
+ createConfetti();
429
+ }
430
+
431
+ function handleLearnMore() {
432
+ showNotification('πŸ“š Here\'s more info about us!');
433
+ }
434
+
435
+ function showNotification(message) {
436
+ const notification = document.createElement('div');
437
+ notification.style.cssText = `
438
+ position: fixed;
439
+ top: 30px;
440
+ right: 30px;
441
+ background: white;
442
+ color: #667eea;
443
+ padding: 20px 30px;
444
+ border-radius: 50px;
445
+ box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
446
+ font-weight: 600;
447
+ z-index: 1000;
448
+ animation: slideInRight 0.5s ease-out;
449
+ max-width: 90%;
450
+ `;
451
+ notification.textContent = message;
452
+
453
+ const style = document.createElement('style');
454
+ style.textContent = `
455
+ @keyframes slideInRight {
456
+ from {
457
+ opacity: 0;
458
+ transform: translateX(100px);
459
+ }
460
+ to {
461
+ opacity: 1;
462
+ transform: translateX(0);
463
+ }
464
+ }
465
+ `;
466
+ document.head.appendChild(style);
467
+
468
+ document.body.appendChild(notification);
469
+
470
+ setTimeout(() => {
471
+ notification.style.animation = 'slideInRight 0.5s ease-out reverse';
472
+ setTimeout(() => notification.remove(), 500);
473
+ }, 3000);
474
+ }
475
+
476
+ function createConfetti() {
477
+ const confettiPieces = 50;
478
+ for (let i = 0; i < confettiPieces; i++) {
479
+ const confetti = document.createElement('div');
480
+ confetti.style.cssText = `
481
+ position: fixed;
482
+ width: 10px;
483
+ height: 10px;
484
+ background: ${getRandomColor()};
485
+ left: ${Math.random() * window.innerWidth}px;
486
+ top: -10px;
487
+ border-radius: 50%;
488
+ pointer-events: none;
489
+ z-index: 999;
490
+ `;
491
+
492
+ document.body.appendChild(confetti);
493
+
494
+ const duration = Math.random() * 2 + 1;
495
+ const xMove = (Math.random() - 0.5) * 300;
496
+
497
+ confetti.animate([
498
+ { transform: 'translateY(0) translateX(0)', opacity: 1 },
499
+ { transform: `translateY(${window.innerHeight + 20}px) translateX(${xMove}px)`, opacity: 0 }
500
+ ], {
501
+ duration: duration * 1000,
502
+ easing: 'cubic-bezier(0.25, 0.46, 0.45, 0.94)'
503
+ });
504
+
505
+ setTimeout(() => confetti.remove(), duration * 1000);
506
+ }
507
+ }
508
+
509
+ function getRandomColor() {
510
+ const colors = ['#FF6B6B', '#4ECDC4', '#45B7D1', '#FFA07A', '#98D8C8', '#F7DC6F'];
511
+ return colors[Math.floor(Math.random() * colors.length)];
512
+ }
513
+
514
+ // Initialize
515
+ window.addEventListener('load', () => {
516
+ createParticles();
517
+ });
518
+
519
+ // Add ripple effect to buttons
520
+ document.querySelectorAll('.btn').forEach(button => {
521
+ button.addEventListener('click', function(e) {
522
+ const ripple = document.createElement('span');
523
+ const rect = this.getBoundingClientRect();
524
+ const size = Math.max(rect.width, rect.height);
525
+ const x = e.clientX - rect.left - size / 2;
526
+ const y = e.clientY - rect.top - size / 2;
527
+
528
+ ripple.style.cssText = `
529
+ position: absolute;
530
+ width: ${size}px;
531
+ height: ${size}px;
532
+ background: rgba(255, 255, 255, 0.5);
533
+ border-radius: 50%;
534
+ left: ${x}px;
535
+ top: ${y}px;
536
+ pointer-events: none;
537
+ animation: ripple 0.6s ease-out;
538
+ `;
539
+
540
+ const style = document.createElement('style');
541
+ style.textContent = `
542
+ @keyframes ripple {
543
+ to {
544
+ transform: scale(4);
545
+ opacity: 0;
546
+ }
547
+ }
548
+ `;
549
+ document.head.appendChild(style);
550
+
551
+ this.style.position = 'relative';
552
+ this.style.overflow = 'hidden';
553
+ this.appendChild(ripple);
554
+
555
+ setTimeout(() => ripple.remove(), 600);
556
+ });
557
+ });
558
+ </script>
559
+ </body>
560
+ </html>