LYK-love commited on
Commit
8ca5cb0
·
verified ·
1 Parent(s): 61fcabb

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. index.html +612 -19
index.html CHANGED
@@ -1,19 +1,612 @@
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>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
+ :root {
16
+ --primary-color: #6366f1;
17
+ --secondary-color: #8b5cf6;
18
+ --accent-color: #ec4899;
19
+ --bg-color: #0f172a;
20
+ --card-bg: #1e293b;
21
+ --text-primary: #f8fafc;
22
+ --text-secondary: #94a3b8;
23
+ }
24
+
25
+ body {
26
+ font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
27
+ background: var(--bg-color);
28
+ min-height: 100vh;
29
+ color: var(--text-primary);
30
+ overflow-x: hidden;
31
+ }
32
+
33
+ /* Animated Background */
34
+ .bg-animation {
35
+ position: fixed;
36
+ top: 0;
37
+ left: 0;
38
+ width: 100%;
39
+ height: 100%;
40
+ z-index: -1;
41
+ overflow: hidden;
42
+ }
43
+
44
+ .bg-animation span {
45
+ position: absolute;
46
+ width: 20px;
47
+ height: 20px;
48
+ background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
49
+ border-radius: 50%;
50
+ animation: float 15s infinite;
51
+ opacity: 0.1;
52
+ }
53
+
54
+ .bg-animation span:nth-child(1) { left: 10%; animation-delay: 0s; }
55
+ .bg-animation span:nth-child(2) { left: 20%; animation-delay: 2s; width: 30px; height: 30px; }
56
+ .bg-animation span:nth-child(3) { left: 35%; animation-delay: 4s; }
57
+ .bg-animation span:nth-child(4) { left: 50%; animation-delay: 0s; width: 40px; height: 40px; }
58
+ .bg-animation span:nth-child(5) { left: 65%; animation-delay: 3s; }
59
+ .bg-animation span:nth-child(6) { left: 75%; animation-delay: 5s; width: 25px; height: 25px; }
60
+ .bg-animation span:nth-child(7) { left: 85%; animation-delay: 1s; }
61
+ .bg-animation span:nth-child(8) { left: 90%; animation-delay: 6s; width: 35px; height: 35px; }
62
+
63
+ @keyframes float {
64
+ 0% {
65
+ transform: translateY(100vh) rotate(0deg);
66
+ opacity: 0;
67
+ }
68
+ 10% {
69
+ opacity: 0.1;
70
+ }
71
+ 90% {
72
+ opacity: 0.1;
73
+ }
74
+ 100% {
75
+ transform: translateY(-100vh) rotate(720deg);
76
+ opacity: 0;
77
+ }
78
+ }
79
+
80
+ /* Header */
81
+ header {
82
+ padding: 1rem 2rem;
83
+ display: flex;
84
+ justify-content: space-between;
85
+ align-items: center;
86
+ background: rgba(30, 41, 59, 0.8);
87
+ backdrop-filter: blur(10px);
88
+ position: sticky;
89
+ top: 0;
90
+ z-index: 100;
91
+ border-bottom: 1px solid rgba(255, 255, 255, 0.1);
92
+ }
93
+
94
+ .logo {
95
+ font-size: 1.5rem;
96
+ font-weight: 700;
97
+ background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
98
+ -webkit-background-clip: text;
99
+ -webkit-text-fill-color: transparent;
100
+ background-clip: text;
101
+ }
102
+
103
+ .built-with {
104
+ color: var(--text-secondary);
105
+ text-decoration: none;
106
+ font-size: 0.875rem;
107
+ transition: color 0.3s ease;
108
+ display: flex;
109
+ align-items: center;
110
+ gap: 0.5rem;
111
+ }
112
+
113
+ .built-with:hover {
114
+ color: var(--primary-color);
115
+ }
116
+
117
+ /* Main Content */
118
+ main {
119
+ max-width: 1200px;
120
+ margin: 0 auto;
121
+ padding: 2rem;
122
+ }
123
+
124
+ /* Hero Section */
125
+ .hero {
126
+ text-align: center;
127
+ padding: 4rem 1rem;
128
+ animation: fadeInUp 1s ease;
129
+ }
130
+
131
+ @keyframes fadeInUp {
132
+ from {
133
+ opacity: 0;
134
+ transform: translateY(30px);
135
+ }
136
+ to {
137
+ opacity: 1;
138
+ transform: translateY(0);
139
+ }
140
+ }
141
+
142
+ .hero h1 {
143
+ font-size: clamp(2rem, 5vw, 3.5rem);
144
+ margin-bottom: 1rem;
145
+ background: linear-gradient(135deg, var(--text-primary), var(--primary-color));
146
+ -webkit-background-clip: text;
147
+ -webkit-text-fill-color: transparent;
148
+ background-clip: text;
149
+ }
150
+
151
+ .hero p {
152
+ font-size: 1.25rem;
153
+ color: var(--text-secondary);
154
+ max-width: 600px;
155
+ margin: 0 auto 2rem;
156
+ line-height: 1.8;
157
+ }
158
+
159
+ .cta-buttons {
160
+ display: flex;
161
+ gap: 1rem;
162
+ justify-content: center;
163
+ flex-wrap: wrap;
164
+ }
165
+
166
+ .btn {
167
+ padding: 0.875rem 2rem;
168
+ border-radius: 50px;
169
+ font-size: 1rem;
170
+ font-weight: 600;
171
+ cursor: pointer;
172
+ transition: all 0.3s ease;
173
+ text-decoration: none;
174
+ display: inline-flex;
175
+ align-items: center;
176
+ gap: 0.5rem;
177
+ }
178
+
179
+ .btn-primary {
180
+ background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
181
+ color: white;
182
+ border: none;
183
+ box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
184
+ }
185
+
186
+ .btn-primary:hover {
187
+ transform: translateY(-3px);
188
+ box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
189
+ }
190
+
191
+ .btn-secondary {
192
+ background: transparent;
193
+ color: var(--text-primary);
194
+ border: 2px solid var(--primary-color);
195
+ }
196
+
197
+ .btn-secondary:hover {
198
+ background: var(--primary-color);
199
+ transform: translateY(-3px);
200
+ }
201
+
202
+ /* Features Section */
203
+ .features {
204
+ display: grid;
205
+ grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
206
+ gap: 2rem;
207
+ padding: 4rem 0;
208
+ }
209
+
210
+ .feature-card {
211
+ background: var(--card-bg);
212
+ border-radius: 20px;
213
+ padding: 2rem;
214
+ text-align: center;
215
+ transition: all 0.3s ease;
216
+ border: 1px solid rgba(255, 255, 255, 0.05);
217
+ position: relative;
218
+ overflow: hidden;
219
+ }
220
+
221
+ .feature-card::before {
222
+ content: '';
223
+ position: absolute;
224
+ top: 0;
225
+ left: 0;
226
+ right: 0;
227
+ height: 3px;
228
+ background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
229
+ transform: scaleX(0);
230
+ transition: transform 0.3s ease;
231
+ }
232
+
233
+ .feature-card:hover::before {
234
+ transform: scaleX(1);
235
+ }
236
+
237
+ .feature-card:hover {
238
+ transform: translateY(-10px);
239
+ box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
240
+ }
241
+
242
+ .feature-icon {
243
+ width: 70px;
244
+ height: 70px;
245
+ border-radius: 50%;
246
+ background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
247
+ display: flex;
248
+ align-items: center;
249
+ justify-content: center;
250
+ margin: 0 auto 1.5rem;
251
+ font-size: 1.75rem;
252
+ }
253
+
254
+ .feature-card h3 {
255
+ font-size: 1.25rem;
256
+ margin-bottom: 0.75rem;
257
+ }
258
+
259
+ .feature-card p {
260
+ color: var(--text-secondary);
261
+ line-height: 1.6;
262
+ }
263
+
264
+ /* Stats Section */
265
+ .stats {
266
+ display: grid;
267
+ grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
268
+ gap: 2rem;
269
+ padding: 3rem 2rem;
270
+ background: var(--card-bg);
271
+ border-radius: 20px;
272
+ margin: 2rem 0;
273
+ }
274
+
275
+ .stat-item {
276
+ text-align: center;
277
+ }
278
+
279
+ .stat-number {
280
+ font-size: 2.5rem;
281
+ font-weight: 700;
282
+ background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
283
+ -webkit-background-clip: text;
284
+ -webkit-text-fill-color: transparent;
285
+ background-clip: text;
286
+ }
287
+
288
+ .stat-label {
289
+ color: var(--text-secondary);
290
+ margin-top: 0.5rem;
291
+ }
292
+
293
+ /* Interactive Section */
294
+ .interactive-section {
295
+ padding: 4rem 0;
296
+ text-align: center;
297
+ }
298
+
299
+ .interactive-section h2 {
300
+ font-size: 2rem;
301
+ margin-bottom: 2rem;
302
+ }
303
+
304
+ .input-group {
305
+ display: flex;
306
+ gap: 1rem;
307
+ max-width: 500px;
308
+ margin: 0 auto;
309
+ flex-wrap: wrap;
310
+ justify-content: center;
311
+ }
312
+
313
+ .input-group input {
314
+ flex: 1;
315
+ min-width: 200px;
316
+ padding: 1rem 1.5rem;
317
+ border: 2px solid rgba(255, 255, 255, 0.1);
318
+ border-radius: 50px;
319
+ background: var(--card-bg);
320
+ color: var(--text-primary);
321
+ font-size: 1rem;
322
+ outline: none;
323
+ transition: border-color 0.3s ease;
324
+ }
325
+
326
+ .input-group input:focus {
327
+ border-color: var(--primary-color);
328
+ }
329
+
330
+ .greeting-display {
331
+ margin-top: 2rem;
332
+ padding: 2rem;
333
+ background: var(--card-bg);
334
+ border-radius: 20px;
335
+ min-height: 100px;
336
+ display: flex;
337
+ align-items: center;
338
+ justify-content: center;
339
+ font-size: 1.5rem;
340
+ opacity: 0;
341
+ transform: scale(0.9);
342
+ transition: all 0.5s ease;
343
+ }
344
+
345
+ .greeting-display.show {
346
+ opacity: 1;
347
+ transform: scale(1);
348
+ }
349
+
350
+ /* Footer */
351
+ footer {
352
+ text-align: center;
353
+ padding: 2rem;
354
+ color: var(--text-secondary);
355
+ border-top: 1px solid rgba(255, 255, 255, 0.1);
356
+ margin-top: 4rem;
357
+ }
358
+
359
+ footer a {
360
+ color: var(--primary-color);
361
+ text-decoration: none;
362
+ }
363
+
364
+ footer a:hover {
365
+ text-decoration: underline;
366
+ }
367
+
368
+ /* Responsive */
369
+ @media (max-width: 768px) {
370
+ header {
371
+ flex-direction: column;
372
+ gap: 1rem;
373
+ text-align: center;
374
+ }
375
+
376
+ .hero {
377
+ padding: 2rem 1rem;
378
+ }
379
+
380
+ .stats {
381
+ padding: 2rem 1rem;
382
+ }
383
+
384
+ .stat-number {
385
+ font-size: 2rem;
386
+ }
387
+ }
388
+
389
+ /* Scroll animations */
390
+ .fade-in {
391
+ opacity: 0;
392
+ transform: translateY(20px);
393
+ transition: all 0.6s ease;
394
+ }
395
+
396
+ .fade-in.visible {
397
+ opacity: 1;
398
+ transform: translateY(0);
399
+ }
400
+ </style>
401
+ </head>
402
+ <body>
403
+ <!-- Animated Background -->
404
+ <div class="bg-animation">
405
+ <span></span>
406
+ <span></span>
407
+ <span></span>
408
+ <span></span>
409
+ <span></span>
410
+ <span></span>
411
+ <span></span>
412
+ <span></span>
413
+ </div>
414
+
415
+ <!-- Header -->
416
+ <header>
417
+ <div class="logo">
418
+ <i class="fas fa-rocket"></i> SimpleApp
419
+ </div>
420
+ <a href="https://huggingface.co/spaces/akhaliq/anycoder" class="built-with" target="_blank">
421
+ <i class="fas fa-code"></i> Built with anycoder
422
+ </a>
423
+ </header>
424
+
425
+ <!-- Main Content -->
426
+ <main>
427
+ <!-- Hero Section -->
428
+ <section class="hero">
429
+ <h1>Welcome to SimpleApp</h1>
430
+ <p>A beautiful, modern, and responsive HTML application built with pure HTML, CSS, and JavaScript. Experience the power of simplicity.</p>
431
+ <div class="cta-buttons">
432
+ <button class="btn btn-primary" onclick="scrollToInteractive()">
433
+ <i class="fas fa-play"></i> Get Started
434
+ </button>
435
+ <a href="#features" class="btn btn-secondary">
436
+ <i class="fas fa-info-circle"></i> Learn More
437
+ </a>
438
+ </div>
439
+ </section>
440
+
441
+ <!-- Features Section -->
442
+ <section class="features fade-in" id="features">
443
+ <div class="feature-card">
444
+ <div class="feature-icon">
445
+ <i class="fas fa-bolt"></i>
446
+ </div>
447
+ <h3>Lightning Fast</h3>
448
+ <p>Optimized performance with minimal load times and smooth animations.</p>
449
+ </div>
450
+ <div class="feature-card">
451
+ <div class="feature-icon">
452
+ <i class="fas fa-mobile-alt"></i>
453
+ </div>
454
+ <h3>Fully Responsive</h3>
455
+ <p>Looks perfect on any device, from mobile phones to large desktops.</p>
456
+ </div>
457
+ <div class="feature-card">
458
+ <div class="feature-icon">
459
+ <i class="fas fa-palette"></i>
460
+ </div>
461
+ <h3>Modern Design</h3>
462
+ <p>Clean and elegant UI with beautiful gradients and smooth transitions.</p>
463
+ </div>
464
+ </section>
465
+
466
+ <!-- Stats Section -->
467
+ <section class="stats fade-in">
468
+ <div class="stat-item">
469
+ <div class="stat-number" data-target="100">0</div>
470
+ <div class="stat-label">Lines of Code</div>
471
+ </div>
472
+ <div class="stat-item">
473
+ <div class="stat-number" data-target="3">0</div>
474
+ <div class="stat-label">Features</div>
475
+ </div>
476
+ <div class="stat-item">
477
+ <div class="stat-number" data-target="0">0</div>
478
+ <div class="stat-label">Dependencies</div>
479
+ </div>
480
+ <div class="stat-item">
481
+ <div class="stat-number" data-target="100">0</div>
482
+ <div class="stat-label">% Responsive</div>
483
+ </div>
484
+ </section>
485
+
486
+ <!-- Interactive Section -->
487
+ <section class="interactive-section fade-in" id="interactive">
488
+ <h2><i class="fas fa-hand-sparkles"></i> Try It Out!</h2>
489
+ <div class="input-group">
490
+ <input type="text" id="nameInput" placeholder="Enter your name..." maxlength="30">
491
+ <button class="btn btn-primary" onclick="greetUser()">
492
+ <i class="fas fa-paper-plane"></i> Say Hello
493
+ </button>
494
+ </div>
495
+ <div class="greeting-display" id="greetingDisplay">
496
+ <span id="greetingText"></span>
497
+ </div>
498
+ </section>
499
+ </main>
500
+
501
+ <!-- Footer -->
502
+ <footer>
503
+ <p>Made with <i class="fas fa-heart" style="color: var(--accent-color);"></i> using pure HTML, CSS & JavaScript</p>
504
+ <p style="margin-top: 0.5rem;">
505
+ <a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank">Built with anycoder</a>
506
+ </p>
507
+ </footer>
508
+
509
+ <script>
510
+ // Scroll to interactive section
511
+ function scrollToInteractive() {
512
+ document.getElementById('interactive').scrollIntoView({ behavior: 'smooth' });
513
+ }
514
+
515
+ // Greet user function
516
+ function greetUser() {
517
+ const nameInput = document.getElementById('nameInput');
518
+ const greetingDisplay = document.getElementById('greetingDisplay');
519
+ const greetingText = document.getElementById('greetingText');
520
+
521
+ const name = nameInput.value.trim();
522
+
523
+ if (name) {
524
+ const greetings = [
525
+ `Hello, ${name}! 👋 Welcome aboard!`,
526
+ `Hey ${name}! 🌟 Great to see you!`,
527
+ `Hi there, ${name}! 🚀 Ready to explore?`,
528
+ `Welcome, ${name}! ✨ You're awesome!`,
529
+ `Greetings, ${name}! 🎉 Let's get started!`
530
+ ];
531
+
532
+ const randomGreeting = greetings[Math.floor(Math.random() * greetings.length)];
533
+ greetingText.textContent = randomGreeting;
534
+ greetingDisplay.classList.add('show');
535
+ } else {
536
+ greetingText.textContent = 'Please enter your name! 😊';
537
+ greetingDisplay.classList.add('show');
538
+ }
539
+ }
540
+
541
+ // Enter key support
542
+ document.getElementById('nameInput').addEventListener('keypress', function(e) {
543
+ if (e.key === 'Enter') {
544
+ greetUser();
545
+ }
546
+ });
547
+
548
+ // Scroll animations
549
+ const observerOptions = {
550
+ threshold: 0.1,
551
+ rootMargin: '0px 0px -50px 0px'
552
+ };
553
+
554
+ const observer = new IntersectionObserver((entries) => {
555
+ entries.forEach(entry => {
556
+ if (entry.isIntersecting) {
557
+ entry.target.classList.add('visible');
558
+
559
+ // Animate stats when visible
560
+ if (entry.target.classList.contains('stats')) {
561
+ animateStats();
562
+ }
563
+ }
564
+ });
565
+ }, observerOptions);
566
+
567
+ document.querySelectorAll('.fade-in').forEach(el => {
568
+ observer.observe(el);
569
+ });
570
+
571
+ // Animate stats numbers
572
+ function animateStats() {
573
+ const statNumbers = document.querySelectorAll('.stat-number');
574
+
575
+ statNumbers.forEach(stat => {
576
+ const target = parseInt(stat.getAttribute('data-target'));
577
+ const duration = 2000;
578
+ const step = target / (duration / 16);
579
+ let current = 0;
580
+
581
+ const updateNumber = () => {
582
+ current += step;
583
+ if (current < target) {
584
+ stat.textContent = Math.floor(current);
585
+ requestAnimationFrame(updateNumber);
586
+ } else {
587
+ stat.textContent = target;
588
+ }
589
+ };
590
+
591
+ updateNumber();
592
+ });
593
+ }
594
+
595
+ // Add some interactivity to feature cards
596
+ document.querySelectorAll('.feature-card').forEach(card => {
597
+ card.addEventListener('mouseenter', function() {
598
+ this.querySelector('.feature-icon').style.transform = 'scale(1.1) rotate(5deg)';
599
+ });
600
+
601
+ card.addEventListener('mouseleave', function() {
602
+ this.querySelector('.feature-icon').style.transform = 'scale(1) rotate(0deg)';
603
+ });
604
+ });
605
+
606
+ // Add transition to feature icons
607
+ document.querySelectorAll('.feature-icon').forEach(icon => {
608
+ icon.style.transition = 'transform 0.3s ease';
609
+ });
610
+ </script>
611
+ </body>
612
+ </html>