johnpoe commited on
Commit
04ab259
·
verified ·
1 Parent(s): 3bb7815

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. index.html +556 -19
index.html CHANGED
@@ -1,19 +1,556 @@
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>Modern Link Hub</title>
7
+
8
+ <!-- Google Fonts: Inter -->
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=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
12
+
13
+ <!-- Phosphor Icons -->
14
+ <script src="https://unpkg.com/@phosphor-icons/web"></script>
15
+
16
+ <style>
17
+ :root {
18
+ /* Color Palette - Modern Dark Theme */
19
+ --bg-color: #0f172a;
20
+ --bg-gradient: radial-gradient(circle at top right, #1e293b 0%, #0f172a 100%);
21
+ --card-bg: rgba(30, 41, 59, 0.6);
22
+ --card-border: rgba(255, 255, 255, 0.08);
23
+ --card-hover-border: rgba(99, 102, 241, 0.5);
24
+
25
+ --text-main: #f8fafc;
26
+ --text-muted: #94a3b8;
27
+
28
+ --primary: #6366f1;
29
+ --primary-glow: rgba(99, 102, 241, 0.4);
30
+ --accent-pink: #ec4899;
31
+ --accent-cyan: #06b6d4;
32
+ --accent-green: #10b981;
33
+
34
+ --radius-sm: 8px;
35
+ --radius-md: 12px;
36
+ --radius-lg: 16px;
37
+
38
+ --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
39
+ }
40
+
41
+ * {
42
+ margin: 0;
43
+ padding: 0;
44
+ box-sizing: border-box;
45
+ }
46
+
47
+ body {
48
+ font-family: 'Inter', sans-serif;
49
+ background: var(--bg-color);
50
+ background-image: var(--bg-gradient);
51
+ color: var(--text-main);
52
+ min-height: 100vh;
53
+ display: flex;
54
+ flex-direction: column;
55
+ line-height: 1.5;
56
+ overflow-x: hidden;
57
+ }
58
+
59
+ /* --- Header Section --- */
60
+ header {
61
+ padding: 2rem 1.5rem;
62
+ max-width: 1200px;
63
+ margin: 0 auto;
64
+ width: 100%;
65
+ display: flex;
66
+ flex-direction: column;
67
+ gap: 1.5rem;
68
+ align-items: center;
69
+ text-align: center;
70
+ }
71
+
72
+ .brand-container {
73
+ display: flex;
74
+ flex-direction: column;
75
+ align-items: center;
76
+ gap: 0.5rem;
77
+ }
78
+
79
+ h1 {
80
+ font-size: 2.5rem;
81
+ font-weight: 700;
82
+ letter-spacing: -0.02em;
83
+ background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
84
+ -webkit-background-clip: text;
85
+ -webkit-text-fill-color: transparent;
86
+ margin-bottom: 0.5rem;
87
+ }
88
+
89
+ .subtitle {
90
+ color: var(--text-muted);
91
+ font-size: 1rem;
92
+ max-width: 600px;
93
+ }
94
+
95
+ /* --- Search Bar --- */
96
+ .search-container {
97
+ position: relative;
98
+ width: 100%;
99
+ max-width: 500px;
100
+ }
101
+
102
+ .search-input {
103
+ width: 100%;
104
+ padding: 1rem 1rem 1rem 3rem;
105
+ border-radius: var(--radius-lg);
106
+ border: 1px solid var(--card-border);
107
+ background: var(--card-bg);
108
+ color: var(--text-main);
109
+ font-size: 1rem;
110
+ font-family: inherit;
111
+ backdrop-filter: blur(10px);
112
+ transition: var(--transition);
113
+ outline: none;
114
+ }
115
+
116
+ .search-input:focus {
117
+ border-color: var(--primary);
118
+ box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
119
+ }
120
+
121
+ .search-icon {
122
+ position: absolute;
123
+ left: 1rem;
124
+ top: 50%;
125
+ transform: translateY(-50%);
126
+ color: var(--text-muted);
127
+ font-size: 1.25rem;
128
+ pointer-events: none;
129
+ }
130
+
131
+ /* --- Filter Tabs --- */
132
+ .filters {
133
+ display: flex;
134
+ gap: 0.75rem;
135
+ flex-wrap: wrap;
136
+ justify-content: center;
137
+ margin-bottom: 1rem;
138
+ }
139
+
140
+ .filter-btn {
141
+ background: transparent;
142
+ border: 1px solid var(--card-border);
143
+ color: var(--text-muted);
144
+ padding: 0.5rem 1.25rem;
145
+ border-radius: 20px;
146
+ font-size: 0.875rem;
147
+ font-weight: 500;
148
+ cursor: pointer;
149
+ transition: var(--transition);
150
+ }
151
+
152
+ .filter-btn:hover {
153
+ background: rgba(255, 255, 255, 0.05);
154
+ color: var(--text-main);
155
+ }
156
+
157
+ .filter-btn.active {
158
+ background: var(--primary);
159
+ border-color: var(--primary);
160
+ color: white;
161
+ box-shadow: 0 4px 12px var(--primary-glow);
162
+ }
163
+
164
+ /* --- Grid Layout --- */
165
+ main {
166
+ flex: 1;
167
+ width: 100%;
168
+ max-width: 1200px;
169
+ margin: 0 auto;
170
+ padding: 0 1.5rem 3rem;
171
+ }
172
+
173
+ .grid {
174
+ display: grid;
175
+ grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
176
+ gap: 1.5rem;
177
+ }
178
+
179
+ /* --- Card Design --- */
180
+ .card {
181
+ background: var(--card-bg);
182
+ border: 1px solid var(--card-border);
183
+ border-radius: var(--radius-md);
184
+ padding: 1.5rem;
185
+ text-decoration: none;
186
+ color: inherit;
187
+ display: flex;
188
+ flex-direction: column;
189
+ gap: 1rem;
190
+ transition: var(--transition);
191
+ position: relative;
192
+ overflow: hidden;
193
+ backdrop-filter: blur(10px);
194
+ animation: fadeIn 0.5s ease-out forwards;
195
+ opacity: 0;
196
+ transform: translateY(10px);
197
+ }
198
+
199
+ .card:hover {
200
+ transform: translateY(-4px);
201
+ border-color: var(--card-hover-border);
202
+ box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
203
+ }
204
+
205
+ .card::before {
206
+ content: '';
207
+ position: absolute;
208
+ top: 0;
209
+ left: 0;
210
+ width: 100%;
211
+ height: 100%;
212
+ background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 100%);
213
+ z-index: 0;
214
+ pointer-events: none;
215
+ }
216
+
217
+ .card-top {
218
+ display: flex;
219
+ justify-content: space-between;
220
+ align-items: flex-start;
221
+ z-index: 1;
222
+ }
223
+
224
+ .icon-box {
225
+ width: 48px;
226
+ height: 48px;
227
+ border-radius: 10px;
228
+ display: flex;
229
+ align-items: center;
230
+ justify-content: center;
231
+ font-size: 1.5rem;
232
+ background: rgba(255, 255, 255, 0.05);
233
+ transition: var(--transition);
234
+ }
235
+
236
+ .card:hover .icon-box {
237
+ transform: scale(1.1) rotate(5deg);
238
+ }
239
+
240
+ .external-link {
241
+ opacity: 0;
242
+ transform: translateX(-10px);
243
+ transition: var(--transition);
244
+ color: var(--text-muted);
245
+ }
246
+
247
+ .card:hover .external-link {
248
+ opacity: 1;
249
+ transform: translateX(0);
250
+ }
251
+
252
+ .card-content {
253
+ z-index: 1;
254
+ }
255
+
256
+ .card-title {
257
+ font-size: 1.125rem;
258
+ font-weight: 600;
259
+ margin-bottom: 0.25rem;
260
+ color: var(--text-main);
261
+ }
262
+
263
+ .card-desc {
264
+ font-size: 0.875rem;
265
+ color: var(--text-muted);
266
+ line-height: 1.6;
267
+ display: -webkit-box;
268
+ -webkit-line-clamp: 2;
269
+ -webkit-box-orient: vertical;
270
+ overflow: hidden;
271
+ }
272
+
273
+ .card-meta {
274
+ margin-top: auto;
275
+ display: flex;
276
+ align-items: center;
277
+ gap: 0.5rem;
278
+ font-size: 0.75rem;
279
+ text-transform: uppercase;
280
+ letter-spacing: 0.05em;
281
+ color: var(--text-muted);
282
+ z-index: 1;
283
+ }
284
+
285
+ .tag {
286
+ padding: 2px 8px;
287
+ border-radius: 4px;
288
+ background: rgba(255, 255, 255, 0.05);
289
+ color: var(--text-main);
290
+ }
291
+
292
+ /* --- Footer --- */
293
+ footer {
294
+ padding: 2rem;
295
+ text-align: center;
296
+ border-top: 1px solid var(--card-border);
297
+ background: rgba(15, 23, 42, 0.8);
298
+ }
299
+
300
+ .anycoder-link {
301
+ color: var(--text-muted);
302
+ text-decoration: none;
303
+ font-size: 0.9rem;
304
+ font-weight: 500;
305
+ transition: var(--transition);
306
+ display: inline-flex;
307
+ align-items: center;
308
+ gap: 0.5rem;
309
+ }
310
+
311
+ .anycoder-link:hover {
312
+ color: var(--primary);
313
+ }
314
+
315
+ /* --- Dynamic Icon Colors --- */
316
+ .color-dev { color: var(--accent-cyan); background: rgba(6, 182, 212, 0.1); }
317
+ .color-design { color: var(--accent-pink); background: rgba(236, 72, 153, 0.1); }
318
+ .color-social { color: var(--primary); background: rgba(99, 102, 241, 0.1); }
319
+ .color-tools { color: var(--accent-green); background: rgba(16, 185, 129, 0.1); }
320
+
321
+ /* --- Animations --- */
322
+ @keyframes fadeIn {
323
+ to {
324
+ opacity: 1;
325
+ transform: translateY(0);
326
+ }
327
+ }
328
+
329
+ /* --- Responsive --- */
330
+ @media (max-width: 600px) {
331
+ h1 { font-size: 2rem; }
332
+ .grid { grid-template-columns: 1fr; }
333
+ .filters { width: 100%; overflow-x: auto; padding-bottom: 0.5rem; justify-content: flex-start; }
334
+ .filter-btn { flex-shrink: 0; }
335
+ }
336
+ </style>
337
+ </head>
338
+ <body>
339
+
340
+ <header>
341
+ <div class="brand-container">
342
+ <h1>Link Hub</h1>
343
+ <p class="subtitle">A curated collection of resources, tools, and inspiration for creators.</p>
344
+ </div>
345
+
346
+ <div class="search-container">
347
+ <i class="ph ph-magnifying-glass search-icon"></i>
348
+ <input type="text" id="searchInput" class="search-input" placeholder="Search links...">
349
+ </div>
350
+
351
+ <nav class="filters" id="filterContainer">
352
+ <button class="filter-btn active" data-category="all">All</button>
353
+ <button class="filter-btn" data-category="dev">Development</button>
354
+ <button class="filter-btn" data-category="design">Design</button>
355
+ <button class="filter-btn" data-category="social">Social</button>
356
+ <button class="filter-btn" data-category="tools">Tools</button>
357
+ </nav>
358
+ </header>
359
+
360
+ <main>
361
+ <div class="grid" id="linkGrid">
362
+ <!-- Cards will be injected here via JS -->
363
+ </div>
364
+ </main>
365
+
366
+ <footer>
367
+ <a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank" class="anycoder-link">
368
+ <i class="ph ph-sparkle"></i> Built with anycoder
369
+ </a>
370
+ </footer>
371
+
372
+ <script>
373
+ // Data Source
374
+ const links = [
375
+ {
376
+ id: 1,
377
+ title: "MDN Web Docs",
378
+ url: "https://developer.mozilla.org",
379
+ desc: "The ultimate resource for web developers. Documentation for HTML, CSS, JavaScript and more.",
380
+ category: "dev",
381
+ icon: "ph-file-code"
382
+ },
383
+ {
384
+ id: 2,
385
+ title: "Dribbble",
386
+ url: "https://dribbble.com",
387
+ desc: "Discover the world's top designers & creatives. The leading destination to find & showcase creative work.",
388
+ category: "design",
389
+ icon: "ph-paint-brush"
390
+ },
391
+ {
392
+ id: 3,
393
+ title: "GitHub",
394
+ url: "https://github.com",
395
+ desc: "Where the world builds software. Millions of developers and companies build, ship, and maintain their software.",
396
+ category: "dev",
397
+ icon: "ph-github-logo"
398
+ },
399
+ {
400
+ id: 4,
401
+ title: "Figma",
402
+ url: "https://figma.com",
403
+ desc: "The collaborative interface design tool. Connect everyone in the design process so teams can deliver better products.",
404
+ category: "design",
405
+ icon: "ph-figma-logo"
406
+ },
407
+ {
408
+ id: 5,
409
+ title: "Twitter / X",
410
+ url: "https://twitter.com",
411
+ desc: "From breaking news and entertainment to sports and politics, get the full story with all the live commentary.",
412
+ category: "social",
413
+ icon: "ph-twitter-logo"
414
+ },
415
+ {
416
+ id: 6,
417
+ title: "Notion",
418
+ url: "https://notion.so",
419
+ desc: "A new tool that blends your everyday work apps into one. It's the all-in-one workspace for you and your team.",
420
+ category: "tools",
421
+ icon: "ph-notebook"
422
+ },
423
+ {
424
+ id: 7,
425
+ title: "Stack Overflow",
426
+ url: "https://stackoverflow.com",
427
+ desc: "Where Developers Learn, Share, & Build Careers. The largest online community for programmers.",
428
+ category: "dev",
429
+ icon: "ph-stack-overflow-logo"
430
+ },
431
+ {
432
+ id: 8,
433
+ title: "Behance",
434
+ url: "https://behance.net",
435
+ desc: "The world's largest creative network for showcasing and discovering creative work.",
436
+ category: "design",
437
+ icon: "ph-behance-logo"
438
+ },
439
+ {
440
+ id: 9,
441
+ title: "LinkedIn",
442
+ url: "https://linkedin.com",
443
+ desc: "Manage your professional identity. Build and engage with your professional network.",
444
+ category: "social",
445
+ icon: "ph-linkedin-logo"
446
+ },
447
+ {
448
+ id: 10,
449
+ title: "Canva",
450
+ url: "https://canva.com",
451
+ desc: "Free design tool for creating social media graphics, presentations, posters, documents and other visual content.",
452
+ category: "tools",
453
+ icon: "ph-pen-nib"
454
+ },
455
+ {
456
+ id: 11,
457
+ title: "Vercel",
458
+ url: "https://vercel.com",
459
+ desc: "Develop. Preview. Ship. The platform for frontend developers, providing the speed and reliability innovators need.",
460
+ category: "dev",
461
+ icon: "ph-rocket-launch"
462
+ },
463
+ {
464
+ id: 12,
465
+ title: "Slack",
466
+ url: "https://slack.com",
467
+ desc: "Slack is a new way to communicate with your team. It's faster, better organized, and more secure than email.",
468
+ category: "tools",
469
+ icon: "ph-slack-logo"
470
+ }
471
+ ];
472
+
473
+ // DOM Elements
474
+ const grid = document.getElementById('linkGrid');
475
+ const searchInput = document.getElementById('searchInput');
476
+ const filterBtns = document.querySelectorAll('.filter-btn');
477
+
478
+ // State
479
+ let activeCategory = 'all';
480
+ let searchQuery = '';
481
+
482
+ // Render Function
483
+ function renderLinks() {
484
+ grid.innerHTML = '';
485
+
486
+ const filteredLinks = links.filter(link => {
487
+ const matchesCategory = activeCategory === 'all' || link.category === activeCategory;
488
+ const matchesSearch = link.title.toLowerCase().includes(searchQuery.toLowerCase()) ||
489
+ link.desc.toLowerCase().includes(searchQuery.toLowerCase());
490
+ return matchesCategory && matchesSearch;
491
+ });
492
+
493
+ if (filteredLinks.length === 0) {
494
+ grid.innerHTML = `
495
+ <div style="grid-column: 1/-1; text-align: center; padding: 3rem; color: var(--text-muted);">
496
+ <i class="ph ph-smiley-sad" style="font-size: 3rem; margin-bottom: 1rem; display: block;"></i>
497
+ <p>No links found matching your criteria.</p>
498
+ </div>
499
+ `;
500
+ return;
501
+ }
502
+
503
+ filteredLinks.forEach((link, index) => {
504
+ const card = document.createElement('a');
505
+ card.href = link.url;
506
+ card.target = "_blank";
507
+ card.className = 'card';
508
+ card.style.animationDelay = `${index * 0.05}s`; // Stagger animation
509
+
510
+ // Determine color class based on category
511
+ const colorClass = `color-${link.category}`;
512
+
513
+ card.innerHTML = `
514
+ <div class="card-top">
515
+ <div class="icon-box ${colorClass}">
516
+ <i class="ph ${link.icon}"></i>
517
+ </div>
518
+ <i class="ph ph-arrow-square-out external-link"></i>
519
+ </div>
520
+ <div class="card-content">
521
+ <h3 class="card-title">${link.title}</h3>
522
+ <p class="card-desc">${link.desc}</p>
523
+ </div>
524
+ <div class="card-meta">
525
+ <span class="tag">${link.category}</span>
526
+ </div>
527
+ `;
528
+
529
+ grid.appendChild(card);
530
+ });
531
+ }
532
+
533
+ // Event Listeners
534
+ searchInput.addEventListener('input', (e) => {
535
+ searchQuery = e.target.value;
536
+ renderLinks();
537
+ });
538
+
539
+ filterBtns.forEach(btn => {
540
+ btn.addEventListener('click', () => {
541
+ // Remove active class from all
542
+ filterBtns.forEach(b => b.classList.remove('active'));
543
+ // Add to clicked
544
+ btn.classList.add('active');
545
+ // Update state
546
+ activeCategory = btn.dataset.category;
547
+ renderLinks();
548
+ });
549
+ });
550
+
551
+ // Initial Render
552
+ renderLinks();
553
+
554
+ </script>
555
+ </body>
556
+ </html>