Klein9 commited on
Commit
0fd2214
·
verified ·
1 Parent(s): dbf1ff5

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. index.html +461 -19
index.html CHANGED
@@ -1,19 +1,461 @@
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>Hello</title>
7
+ <link href="https://cdn.tailwindcss.com" rel="stylesheet">
8
+ <script src="https://cdn.tailwindcss.com"></script>
9
+ <link rel="preconnect" href="https://fonts.googleapis.com">
10
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
11
+ <link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Syne:wght@400;500;600;700;800&display=swap" rel="stylesheet">
12
+ <style>
13
+ :root {
14
+ --bg: #0a0a0f;
15
+ --fg: #f0f0f5;
16
+ --muted: #6b6b7a;
17
+ --accent: #00e5a0;
18
+ --accent-dim: #00e5a020;
19
+ --card: #14141f;
20
+ --border: #2a2a3a;
21
+ }
22
+
23
+ * {
24
+ margin: 0;
25
+ padding: 0;
26
+ box-sizing: border-box;
27
+ }
28
+
29
+ html {
30
+ scroll-behavior: smooth;
31
+ }
32
+
33
+ body {
34
+ font-family: 'Space Grotesk', sans-serif;
35
+ background: var(--bg);
36
+ color: var(--fg);
37
+ min-height: 100vh;
38
+ overflow-x: hidden;
39
+ }
40
+
41
+ .font-display {
42
+ font-family: 'Syne', sans-serif;
43
+ }
44
+
45
+ /* Background grid */
46
+ .bg-grid {
47
+ position: fixed;
48
+ inset: 0;
49
+ background-image:
50
+ linear-gradient(var(--border) 1px, transparent 1px),
51
+ linear-gradient(90deg, var(--border) 1px, transparent 1px);
52
+ background-size: 60px 60px;
53
+ opacity: 0.3;
54
+ pointer-events: none;
55
+ z-index: 0;
56
+ }
57
+
58
+ /* Gradient orbs */
59
+ .orb {
60
+ position: fixed;
61
+ border-radius: 50%;
62
+ filter: blur(80px);
63
+ opacity: 0.5;
64
+ pointer-events: none;
65
+ z-index: 0;
66
+ }
67
+
68
+ .orb-1 {
69
+ width: 600px;
70
+ height: 600px;
71
+ background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
72
+ top: -200px;
73
+ right: -200px;
74
+ animation: float 20s ease-in-out infinite;
75
+ }
76
+
77
+ .orb-2 {
78
+ width: 400px;
79
+ height: 400px;
80
+ background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
81
+ bottom: -100px;
82
+ left: -100px;
83
+ animation: float 15s ease-in-out infinite reverse;
84
+ }
85
+
86
+ @keyframes float {
87
+ 0%, 100% { transform: translate(0, 0) scale(1); }
88
+ 25% { transform: translate(30px, -30px) scale(1.05); }
89
+ 50% { transform: translate(-20px, 20px) scale(0.95); }
90
+ 75% { transform: translate(20px, 30px) scale(1.02); }
91
+ }
92
+
93
+ /* Hero section */
94
+ .hero {
95
+ position: relative;
96
+ z-index: 1;
97
+ min-height: 100vh;
98
+ display: flex;
99
+ flex-direction: column;
100
+ justify-content: center;
101
+ align-items: center;
102
+ padding: 2rem;
103
+ text-align: center;
104
+ }
105
+
106
+ /* Animated hello text */
107
+ .hello-text {
108
+ font-size: clamp(4rem, 20vw, 14rem);
109
+ font-weight: 800;
110
+ line-height: 0.9;
111
+ letter-spacing: -0.04em;
112
+ position: relative;
113
+ cursor: default;
114
+ }
115
+
116
+ .hello-text span {
117
+ display: inline-block;
118
+ transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
119
+ color 0.3s ease;
120
+ }
121
+
122
+ .hello-text span:hover {
123
+ transform: translateY(-20px) rotate(-5deg);
124
+ color: var(--accent);
125
+ }
126
+
127
+ .hello-text::after {
128
+ content: '';
129
+ position: absolute;
130
+ bottom: -10px;
131
+ left: 50%;
132
+ transform: translateX(-50%);
133
+ width: 0;
134
+ height: 4px;
135
+ background: var(--accent);
136
+ border-radius: 2px;
137
+ transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
138
+ }
139
+
140
+ .hello-text:hover::after {
141
+ width: 80%;
142
+ }
143
+
144
+ /* Subtitle */
145
+ .subtitle {
146
+ font-size: clamp(1rem, 3vw, 1.5rem);
147
+ color: var(--muted);
148
+ margin-top: 2rem;
149
+ font-weight: 300;
150
+ letter-spacing: 0.2em;
151
+ text-transform: uppercase;
152
+ opacity: 0;
153
+ animation: fadeUp 1s ease forwards 0.5s;
154
+ }
155
+
156
+ /* Entrance animations */
157
+ .hello-text span {
158
+ opacity: 0;
159
+ transform: translateY(100px) rotate(10deg);
160
+ animation: letterIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
161
+ }
162
+
163
+ .hello-text span:nth-child(1) { animation-delay: 0.1s; }
164
+ .hello-text span:nth-child(2) { animation-delay: 0.2s; }
165
+ .hello-text span:nth-child(3) { animation-delay: 0.3s; }
166
+ .hello-text span:nth-child(4) { animation-delay: 0.4s; }
167
+ .hello-text span:nth-child(5) { animation-delay: 0.5s; }
168
+
169
+ @keyframes letterIn {
170
+ to {
171
+ opacity: 1;
172
+ transform: translateY(0) rotate(0deg);
173
+ }
174
+ }
175
+
176
+ @keyframes fadeUp {
177
+ from {
178
+ opacity: 0;
179
+ transform: translateY(30px);
180
+ }
181
+ to {
182
+ opacity: 1;
183
+ transform: translateY(0);
184
+ }
185
+ }
186
+
187
+ /* Interactive button */
188
+ .cta-button {
189
+ margin-top: 3rem;
190
+ padding: 1rem 2.5rem;
191
+ background: transparent;
192
+ border: 2px solid var(--border);
193
+ color: var(--fg);
194
+ font-family: 'Space Grotesk', sans-serif;
195
+ font-size: 1rem;
196
+ font-weight: 500;
197
+ letter-spacing: 0.1em;
198
+ text-transform: uppercase;
199
+ cursor: pointer;
200
+ position: relative;
201
+ overflow: hidden;
202
+ transition: all 0.4s ease;
203
+ opacity: 0;
204
+ animation: fadeUp 1s ease forwards 0.8s;
205
+ }
206
+
207
+ .cta-button::before {
208
+ content: '';
209
+ position: absolute;
210
+ inset: 0;
211
+ background: var(--accent);
212
+ transform: translateX(-101%);
213
+ transition: transform 0.4s ease;
214
+ z-index: -1;
215
+ }
216
+
217
+ .cta-button:hover {
218
+ border-color: var(--accent);
219
+ color: var(--bg);
220
+ }
221
+
222
+ .cta-button:hover::before {
223
+ transform: translateX(0);
224
+ }
225
+
226
+ .cta-button:focus-visible {
227
+ outline: 2px solid var(--accent);
228
+ outline-offset: 4px;
229
+ }
230
+
231
+ /* Time display */
232
+ .time-display {
233
+ position: fixed;
234
+ bottom: 2rem;
235
+ left: 50%;
236
+ transform: translateX(-50%);
237
+ font-size: 0.875rem;
238
+ color: var(--muted);
239
+ font-weight: 300;
240
+ letter-spacing: 0.1em;
241
+ opacity: 0;
242
+ animation: fadeUp 1s ease forwards 1s;
243
+ }
244
+
245
+ /* Header */
246
+ .header {
247
+ position: fixed;
248
+ top: 0;
249
+ left: 0;
250
+ right: 0;
251
+ padding: 1.5rem 2rem;
252
+ display: flex;
253
+ justify-content: space-between;
254
+ align-items: center;
255
+ z-index: 100;
256
+ background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%);
257
+ }
258
+
259
+ .logo {
260
+ font-weight: 600;
261
+ font-size: 1rem;
262
+ letter-spacing: 0.05em;
263
+ color: var(--muted);
264
+ transition: color 0.3s ease;
265
+ }
266
+
267
+ .logo:hover {
268
+ color: var(--fg);
269
+ }
270
+
271
+ .built-with {
272
+ font-size: 0.75rem;
273
+ color: var(--muted);
274
+ text-decoration: none;
275
+ padding: 0.5rem 1rem;
276
+ border: 1px solid var(--border);
277
+ border-radius: 100px;
278
+ transition: all 0.3s ease;
279
+ }
280
+
281
+ .built-with:hover {
282
+ border-color: var(--accent);
283
+ color: var(--accent);
284
+ }
285
+
286
+ /* Floating shapes */
287
+ .shape {
288
+ position: fixed;
289
+ border: 1px solid var(--border);
290
+ opacity: 0.3;
291
+ pointer-events: none;
292
+ z-index: 0;
293
+ }
294
+
295
+ .shape-1 {
296
+ width: 100px;
297
+ height: 100px;
298
+ top: 20%;
299
+ left: 10%;
300
+ border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
301
+ animation: morph 10s ease-in-out infinite;
302
+ }
303
+
304
+ .shape-2 {
305
+ width: 60px;
306
+ height: 60px;
307
+ bottom: 30%;
308
+ right: 15%;
309
+ border-radius: 50%;
310
+ animation: pulse 4s ease-in-out infinite;
311
+ }
312
+
313
+ @keyframes morph {
314
+ 0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
315
+ 25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
316
+ 50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
317
+ 75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
318
+ }
319
+
320
+ @keyframes pulse {
321
+ 0%, 100% { transform: scale(1); opacity: 0.3; }
322
+ 50% { transform: scale(1.2); opacity: 0.5; }
323
+ }
324
+
325
+ /* Reduced motion */
326
+ @media (prefers-reduced-motion: reduce) {
327
+ *, *::before, *::after {
328
+ animation-duration: 0.01ms !important;
329
+ animation-iteration-count: 1 !important;
330
+ transition-duration: 0.01ms !important;
331
+ }
332
+ }
333
+
334
+ /* Mobile adjustments */
335
+ @media (max-width: 640px) {
336
+ .header {
337
+ padding: 1rem;
338
+ }
339
+
340
+ .shape {
341
+ display: none;
342
+ }
343
+
344
+ .orb {
345
+ opacity: 0.3;
346
+ }
347
+ }
348
+ </style>
349
+ </head>
350
+ <body>
351
+ <!-- Background elements -->
352
+ <div class="bg-grid"></div>
353
+ <div class="orb orb-1"></div>
354
+ <div class="orb orb-2"></div>
355
+ <div class="shape shape-1"></div>
356
+ <div class="shape shape-2"></div>
357
+
358
+ <!-- Header -->
359
+ <header class="header">
360
+ <div class="logo">Studio</div>
361
+ <a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank" rel="noopener noreferrer" class="built-with">
362
+ Built with anycoder
363
+ </a>
364
+ </header>
365
+
366
+ <!-- Hero -->
367
+ <main class="hero">
368
+ <h1 class="hello-text font-display">
369
+ <span>H</span><span>E</span><span>L</span><span>L</span><span>O</span>
370
+ </h1>
371
+ <p class="subtitle">Welcome to the beginning</p>
372
+ <button class="cta-button" id="exploreBtn">
373
+ Explore
374
+ </button>
375
+ </main>
376
+
377
+ <!-- Time display -->
378
+ <div class="time-display" id="timeDisplay"></div>
379
+
380
+ <script>
381
+ // Time display
382
+ function updateTime() {
383
+ const now = new Date();
384
+ const options = {
385
+ hour: '2-digit',
386
+ minute: '2-digit',
387
+ second: '2-digit',
388
+ hour12: false
389
+ };
390
+ const timeString = now.toLocaleTimeString('en-US', options);
391
+ const dateString = now.toLocaleDateString('en-US', {
392
+ weekday: 'long',
393
+ month: 'short',
394
+ day: 'numeric'
395
+ });
396
+ document.getElementById('timeDisplay').textContent = `${dateString} — ${timeString}`;
397
+ }
398
+
399
+ updateTime();
400
+ setInterval(updateTime, 1000);
401
+
402
+ // Button interaction
403
+ const exploreBtn = document.getElementById('exploreBtn');
404
+
405
+ exploreBtn.addEventListener('click', function() {
406
+ // Create ripple effect
407
+ const ripple = document.createElement('div');
408
+ ripple.style.cssText = `
409
+ position: fixed;
410
+ top: 50%;
411
+ left: 50%;
412
+ width: 10px;
413
+ height: 10px;
414
+ background: var(--accent);
415
+ border-radius: 50%;
416
+ transform: translate(-50%, -50%);
417
+ pointer-events: none;
418
+ z-index: 1000;
419
+ opacity: 0.6;
420
+ `;
421
+ document.body.appendChild(ripple);
422
+
423
+ ripple.animate([
424
+ { transform: 'translate(-50%, -50%) scale(1)', opacity: 0.6 },
425
+ { transform: 'translate(-50%, -50%) scale(200)', opacity: 0 }
426
+ ], {
427
+ duration: 800,
428
+ easing: 'ease-out'
429
+ }).onfinish = () => {
430
+ ripple.remove();
431
+ };
432
+
433
+ // Change hello text
434
+ const messages = ['HELLO', 'WELCOME', 'CREATE', 'DESIGN', 'BUILD', 'DREAM'];
435
+ const helloText = document.querySelector('.hello-text');
436
+ const randomMessage = messages[Math.floor(Math.random() * messages.length)];
437
+
438
+ helloText.querySelectorAll('span').forEach((span, index) => {
439
+ if (randomMessage[index]) {
440
+ span.textContent = randomMessage[index];
441
+ }
442
+ });
443
+ });
444
+
445
+ // Parallax effect on mouse move
446
+ document.addEventListener('mousemove', (e) => {
447
+ const { clientX, clientY } = e;
448
+ const centerX = window.innerWidth / 2;
449
+ const centerY = window.innerHeight / 2;
450
+
451
+ const moveX = (clientX - centerX) / 50;
452
+ const moveY = (clientY - centerY) / 50;
453
+
454
+ document.querySelectorAll('.orb').forEach((orb, index) => {
455
+ const factor = index === 0 ? 1 : -1;
456
+ orb.style.transform = `translate(${moveX * factor}px, ${moveY * factor}px)`;
457
+ });
458
+ });
459
+ </script>
460
+ </body>
461
+ </html>