apirrone commited on
Commit
aba8b1a
·
1 Parent(s): 1cd39cf

just redirect to the new page

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. index.html +48 -568
README.md CHANGED
@@ -7,4 +7,4 @@ sdk: static
7
  pinned: false
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
7
  pinned: false
8
  ---
9
 
10
+ This space now redirects to https://huggingface.co/spaces/pollen-robotics/reachy-mini-landing-page#apps
index.html CHANGED
@@ -1,596 +1,76 @@
1
  <!DOCTYPE html>
2
  <html lang="en">
3
-
4
  <head>
5
  <meta charset="UTF-8">
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
- <title>Reachy Mini Spaces Store</title>
 
8
  <style>
 
 
 
 
9
  * {
10
- margin: 0;
11
- padding: 0;
12
  box-sizing: border-box;
13
  }
14
 
15
  body {
16
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
17
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
18
  min-height: 100vh;
19
- color: #333;
20
- }
21
-
22
- .container {
23
- max-width: 1400px;
24
- margin: 0 auto;
25
- padding: 40px 20px;
26
- }
27
-
28
- .header {
29
- text-align: center;
30
- margin-bottom: 40px;
31
- color: white;
32
- }
33
-
34
- .header h1 {
35
- font-size: 3rem;
36
- font-weight: 700;
37
- margin-bottom: 10px;
38
- text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
39
- }
40
-
41
- .header p {
42
- font-size: 1.2rem;
43
- opacity: 0.9;
44
- }
45
-
46
- .controls {
47
- display: flex;
48
- justify-content: space-between;
49
- align-items: center;
50
- margin-bottom: 30px;
51
- background: rgba(255, 255, 255, 0.1);
52
- backdrop-filter: blur(10px);
53
- padding: 20px;
54
- border-radius: 15px;
55
- }
56
-
57
- .search-box {
58
- flex: 1;
59
- max-width: 400px;
60
- margin-right: 20px;
61
- }
62
-
63
- .search-box input {
64
- width: 100%;
65
- padding: 12px 20px;
66
- border: none;
67
- border-radius: 25px;
68
- font-size: 16px;
69
- background: rgba(255, 255, 255, 0.9);
70
- backdrop-filter: blur(10px);
71
- outline: none;
72
- transition: all 0.3s ease;
73
- }
74
-
75
- .search-box input:focus {
76
- transform: scale(1.02);
77
- box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
78
- }
79
-
80
- .sort-controls {
81
- display: flex;
82
- gap: 10px;
83
- }
84
-
85
- .sort-btn {
86
- padding: 10px 20px;
87
- border: none;
88
- border-radius: 20px;
89
- background: rgba(255, 255, 255, 0.2);
90
- color: white;
91
- cursor: pointer;
92
- transition: all 0.3s ease;
93
- font-weight: 500;
94
- }
95
-
96
- .sort-btn:hover {
97
- background: rgba(255, 255, 255, 0.3);
98
- transform: translateY(-2px);
99
- }
100
-
101
- .sort-btn.active {
102
- background: rgba(255, 255, 255, 0.9);
103
- color: #667eea;
104
- }
105
-
106
- .stats {
107
- text-align: center;
108
- color: white;
109
- margin-bottom: 30px;
110
- font-size: 1.1rem;
111
- opacity: 0.9;
112
- }
113
-
114
- .grid {
115
  display: grid;
116
- grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
117
- gap: 25px;
118
- margin-bottom: 40px;
119
- }
120
-
121
- .app-card {
122
- background: rgba(255, 255, 255, 0.95);
123
- backdrop-filter: blur(20px);
124
- border-radius: 20px;
125
- padding: 25px;
126
- cursor: pointer;
127
- transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
128
- border: 1px solid rgba(255, 255, 255, 0.2);
129
- position: relative;
130
- overflow: hidden;
131
- }
132
-
133
- .app-card::before {
134
- content: '';
135
- position: absolute;
136
- top: 0;
137
- left: 0;
138
- right: 0;
139
- height: 4px;
140
- background: linear-gradient(90deg, #667eea, #764ba2);
141
- transform: scaleX(0);
142
- transition: transform 0.3s ease;
143
- }
144
-
145
- .app-card:hover {
146
- transform: translateY(-8px) scale(1.02);
147
- box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
148
- }
149
-
150
- .app-card:hover::before {
151
- transform: scaleX(1);
152
- }
153
-
154
- .app-header {
155
- display: flex;
156
- align-items: flex-start;
157
- margin-bottom: 15px;
158
- }
159
-
160
- .app-icon {
161
- width: 60px;
162
- height: 60px;
163
- border-radius: 15px;
164
- background: linear-gradient(135deg, #667eea, #764ba2);
165
- display: flex;
166
- align-items: center;
167
- justify-content: center;
168
- margin-right: 15px;
169
- font-size: 24px;
170
- color: white;
171
- font-weight: bold;
172
- flex-shrink: 0;
173
- }
174
-
175
- .app-info {
176
- flex: 1;
177
- min-width: 0;
178
- }
179
-
180
- .app-title {
181
- font-size: 1.3rem;
182
- font-weight: 600;
183
- margin-bottom: 5px;
184
- color: #333;
185
- line-height: 1.3;
186
- word-wrap: break-word;
187
- }
188
-
189
- .app-author {
190
- color: #666;
191
- font-size: 0.9rem;
192
- margin-bottom: 8px;
193
- }
194
-
195
- .app-description {
196
- color: #555;
197
- font-size: 0.95rem;
198
- line-height: 1.5;
199
- margin-bottom: 15px;
200
- display: -webkit-box;
201
- -webkit-line-clamp: 3;
202
- -webkit-box-orient: vertical;
203
- overflow: hidden;
204
- }
205
-
206
- .app-tags {
207
- display: flex;
208
- flex-wrap: wrap;
209
- gap: 6px;
210
- margin-bottom: 15px;
211
- }
212
-
213
- .tag {
214
- background: rgba(102, 126, 234, 0.1);
215
- color: #667eea;
216
- padding: 4px 8px;
217
- border-radius: 12px;
218
- font-size: 0.75rem;
219
- font-weight: 500;
220
- border: 1px solid rgba(102, 126, 234, 0.2);
221
- }
222
-
223
- .tag.primary {
224
- background: rgba(102, 126, 234, 0.2);
225
- color: #4c5eb8;
226
- border-color: rgba(102, 126, 234, 0.4);
227
- }
228
-
229
- .app-stats {
230
- display: flex;
231
- justify-content: space-between;
232
- align-items: center;
233
- margin-top: auto;
234
- }
235
-
236
- .stat-item {
237
- display: flex;
238
- align-items: center;
239
- gap: 5px;
240
- color: #666;
241
- font-size: 0.9rem;
242
- }
243
-
244
- .stat-icon {
245
- font-size: 16px;
246
- }
247
-
248
- .loading {
249
  text-align: center;
250
- color: white;
251
- font-size: 1.2rem;
252
- padding: 60px;
253
  }
254
 
255
- .loading::after {
256
- content: '';
257
- display: inline-block;
258
- width: 20px;
259
- height: 20px;
260
- border: 2px solid rgba(255, 255, 255, 0.3);
261
- border-top: 2px solid white;
262
- border-radius: 50%;
263
- animation: spin 1s linear infinite;
264
- margin-left: 10px;
265
  }
266
 
267
- @keyframes spin {
268
- 0% {
269
- transform: rotate(0deg);
270
- }
271
-
272
- 100% {
273
- transform: rotate(360deg);
274
- }
275
- }
276
-
277
- .error {
278
- text-align: center;
279
- color: white;
280
- background: rgba(255, 0, 0, 0.1);
281
- padding: 30px;
282
- border-radius: 15px;
283
- margin: 20px 0;
284
- }
285
-
286
- .no-results {
287
- text-align: center;
288
- color: white;
289
- background: rgba(255, 255, 255, 0.1);
290
- padding: 40px;
291
- border-radius: 15px;
292
- margin: 20px 0;
293
  }
294
 
295
- .no-results h3 {
296
- margin-bottom: 15px;
297
- font-size: 1.5rem;
 
298
  }
299
 
300
- @media (max-width: 768px) {
301
- .header h1 {
302
- font-size: 2rem;
303
- }
304
-
305
- .controls {
306
- flex-direction: column;
307
- gap: 15px;
308
- }
309
-
310
- .search-box {
311
- margin-right: 0;
312
- max-width: none;
313
- }
314
-
315
- .grid {
316
- grid-template-columns: 1fr;
317
- gap: 20px;
318
- }
319
  }
320
  </style>
321
- </head>
322
-
323
- <body>
324
- <div class="container">
325
- <div class="header">
326
- <h1>🤖 Reachy Mini Spaces</h1>
327
- <p>Discover AI-powered applications with the reachy_mini tag</p>
328
- </div>
329
-
330
- <div class="controls">
331
- <div class="search-box">
332
- <input type="text" id="searchInput" placeholder="Search within reachy_mini spaces..." />
333
- </div>
334
- <div class="sort-controls">
335
- <button class="sort-btn active" data-sort="likes">❤️ Likes</button>
336
- <button class="sort-btn" data-sort="created">🕒 Recent</button>
337
- <button class="sort-btn" data-sort="name">🔤 A-Z</button>
338
- </div>
339
- </div>
340
-
341
- <div class="stats" id="stats">
342
- <div class="loading">Loading spaces with reachy_mini tag...</div>
343
- </div>
344
-
345
- <div class="grid" id="spacesGrid">
346
- </div>
347
- </div>
348
-
349
  <script>
350
- class SpacesStore {
351
- constructor() {
352
- this.spaces = [];
353
- this.filteredSpaces = [];
354
- this.currentSort = 'likes';
355
- this.searchTerm = '';
356
- this.targetTag = 'reachy_mini';
357
- this.init();
358
- }
359
-
360
- async init() {
361
- await this.loadSpaces();
362
- this.setupEventListeners();
363
- this.renderSpaces();
364
  }
365
-
366
- async loadSpaces() {
367
- try {
368
- console.log('Searching for spaces with reachy_mini tag...');
369
-
370
- // Search for spaces with the reachy_mini tag using filter parameter
371
- const response = await fetch('https://huggingface.co/api/spaces?filter=reachy_mini&sort=likes&direction=-1&limit=50');
372
-
373
- if (!response.ok) {
374
- throw new Error(`HTTP error! status: ${response.status}`);
375
- }
376
-
377
- const data = await response.json();
378
- console.log('API response:', data.length, 'spaces found');
379
-
380
- this.spaces = await Promise.all(data.map(space => this.getSpaceInfo(space)));
381
- this.filteredSpaces = [...this.spaces];
382
- this.updateStats();
383
-
384
- if (this.spaces.length === 0) {
385
- console.log('No spaces with reachy_mini tag found');
386
- this.showNoResults();
387
- }
388
-
389
- } catch (error) {
390
- console.error('Error loading spaces:', error);
391
- this.showError();
392
- }
393
- }
394
-
395
- showNoResults() {
396
- const grid = document.getElementById('spacesGrid');
397
- const stats = document.getElementById('stats');
398
-
399
- stats.innerHTML = 'No spaces found with reachy_mini tag';
400
- grid.innerHTML = `
401
- <div class="no-results">
402
- <h3>🔍 No Reachy Mini Spaces Found</h3>
403
- <p>No spaces were found with the "reachy_mini" tag or related variants.</p>
404
- <p>This could mean:</p>
405
- <ul style="text-align: left; margin-top: 15px; display: inline-block;">
406
- <li>No spaces have been tagged with "reachy_mini" yet</li>
407
- <li>The spaces might use different tag variations</li>
408
- <li>The API might have restrictions or rate limits</li>
409
- </ul>
410
- <p style="margin-top: 15px;">Try checking Hugging Face Spaces directly for the most up-to-date results.</p>
411
- </div>
412
- `;
413
- }
414
-
415
- async getSpaceInfo(space) {
416
- const spaceData = await fetch(`https://huggingface.co/api/spaces/${space.id}`)
417
- .then(res => res.json())
418
- .then(data => {
419
- return data;
420
- })
421
- .catch(err => {
422
- console.error(`Error fetching card data for ${space.id}:`, err);
423
- return {};
424
- });
425
-
426
- spaceData.title = spaceData.title || space.id.split('/').pop().replace(/-/g, ' ').replace(/\b\w/g, l => l.toUpperCase());
427
- spaceData.author = space.id.split('/')[0];
428
- spaceData.description = spaceData.cardData?.short_description || 'No description available';
429
- spaceData.created = new Date(space.createdAt).getTime();
430
- spaceData.url = `https://huggingface.co/spaces/${space.id}`;
431
- spaceData.tags = space.tags || [];
432
-
433
- return spaceData;
434
- }
435
-
436
- setupEventListeners() {
437
- // Search functionality
438
- const searchInput = document.getElementById('searchInput');
439
- searchInput.addEventListener('input', (e) => {
440
- this.searchTerm = e.target.value.toLowerCase();
441
- this.filterSpaces();
442
- });
443
-
444
- // Sort functionality
445
- const sortButtons = document.querySelectorAll('.sort-btn');
446
- sortButtons.forEach(btn => {
447
- btn.addEventListener('click', (e) => {
448
- sortButtons.forEach(b => b.classList.remove('active'));
449
- e.target.classList.add('active');
450
- this.currentSort = e.target.dataset.sort;
451
- this.sortSpaces();
452
- });
453
- });
454
- }
455
-
456
- filterSpaces() {
457
- this.filteredSpaces = this.spaces.filter(space =>
458
- space.title.toLowerCase().includes(this.searchTerm) ||
459
- space.author.toLowerCase().includes(this.searchTerm) ||
460
- space.description.toLowerCase().includes(this.searchTerm) ||
461
- space.tags.some(tag => tag.toLowerCase().includes(this.searchTerm))
462
- );
463
- this.sortSpaces();
464
- }
465
-
466
- sortSpaces() {
467
- switch (this.currentSort) {
468
- case 'likes':
469
- this.filteredSpaces.sort((a, b) => b.likes - a.likes);
470
- break;
471
- case 'created':
472
- this.filteredSpaces.sort((a, b) => b.created - a.created);
473
- break;
474
- case 'name':
475
- this.filteredSpaces.sort((a, b) => a.title.localeCompare(b.title));
476
- break;
477
- }
478
- this.renderSpaces();
479
- }
480
-
481
- updateStats() {
482
- const statsEl = document.getElementById('stats');
483
- const total = this.spaces.length;
484
- const totalLikes = this.spaces.reduce((sum, space) => sum + space.likes, 0);
485
- const filtered = this.filteredSpaces.length;
486
-
487
- if (total === 0) {
488
- statsEl.innerHTML = `No spaces found with "${this.targetTag}" tag`;
489
- } else if (filtered === total) {
490
- statsEl.innerHTML = `Found ${total} spaces with "${this.targetTag}" tag (${totalLikes.toLocaleString()} total likes)`;
491
- } else {
492
- statsEl.innerHTML = `Showing ${filtered} of ${total} spaces with "${this.targetTag}" tag`;
493
- }
494
- }
495
-
496
- renderSpaces() {
497
- const grid = document.getElementById('spacesGrid');
498
-
499
- if (this.spaces.length === 0) {
500
- grid.innerHTML = `
501
- <div class="no-results">
502
- <h3>🔍 No Spaces Found</h3>
503
- <p>No spaces were found with the "reachy_mini" tag.</p>
504
- <p>This might be because:</p>
505
- <ul style="text-align: left; margin-top: 15px;">
506
- <li>The tag doesn't exist yet on Hugging Face</li>
507
- <li>Spaces with this tag haven't been published</li>
508
- <li>There might be API restrictions</li>
509
- </ul>
510
- </div>
511
- `;
512
- return;
513
- }
514
-
515
- if (this.filteredSpaces.length === 0) {
516
- grid.innerHTML = `
517
- <div class="no-results">
518
- <h3>🔍 No Results</h3>
519
- <p>No spaces match your search criteria.</p>
520
- <p>Try adjusting your search terms or clearing the search box.</p>
521
- </div>
522
- `;
523
- return;
524
- }
525
-
526
- grid.innerHTML = this.filteredSpaces.map(space => `
527
- <div class="app-card" onclick="window.open('${space.url}', '_blank')">
528
- <div class="app-header">
529
- <div class="app-icon">
530
- ${this.getSpaceIcon(space)}
531
- </div>
532
- <div class="app-info">
533
- <div class="app-title">${space.title}</div>
534
- <div class="app-author">by ${space.author}</div>
535
- </div>
536
- </div>
537
- <div class="app-description">${space.description}</div>
538
- ${space.tags.length > 0 ? `
539
- <div class="app-tags">
540
- ${space.tags.slice(0, 5).map(tag => `
541
- <span class="tag ${tag === this.targetTag ? 'primary' : ''}">${tag}</span>
542
- `).join('')}
543
- ${space.tags.length > 5 ? `<span class="tag">+${space.tags.length - 5}</span>` : ''}
544
- </div>
545
- ` : ''}
546
- <div class="app-stats">
547
- <div class="stat-item">
548
- <span class="stat-icon">❤️</span>
549
- <span>${space.likes}</span>
550
- </div>
551
- <div class="stat-item">
552
- <span class="stat-icon">📅</span>
553
- <span>${this.formatDate(space.created)}</span>
554
- </div>
555
- </div>
556
- </div>
557
- `).join('');
558
- }
559
-
560
- getSpaceIcon(space) {
561
- return space.cardData.emoji || '🤖';
562
- }
563
-
564
- formatDate(timestamp) {
565
- const date = new Date(timestamp);
566
- const now = new Date();
567
- const diffInDays = Math.floor((now - date) / (1000 * 60 * 60 * 24));
568
-
569
- if (diffInDays === 0) return 'Today';
570
- if (diffInDays === 1) return 'Yesterday';
571
- if (diffInDays < 30) return `${diffInDays}d ago`;
572
- if (diffInDays < 365) return `${Math.floor(diffInDays / 30)}mo ago`;
573
- return `${Math.floor(diffInDays / 365)}y ago`;
574
- }
575
-
576
- showError() {
577
- const grid = document.getElementById('spacesGrid');
578
- const stats = document.getElementById('stats');
579
-
580
- stats.innerHTML = 'Unable to load spaces';
581
- grid.innerHTML = `
582
- <div class="error">
583
- <h3>Unable to load Hugging Face Spaces</h3>
584
- <p>This might be due to CORS restrictions or API limitations.</p>
585
- <p>The dashboard is fully functional - in a production environment, you'd use a backend API or proxy to fetch the data.</p>
586
- </div>
587
- `;
588
- }
589
- }
590
-
591
- // Initialize the app
592
- new SpacesStore();
593
  </script>
 
 
 
 
 
 
 
594
  </body>
595
-
596
- </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>Redirecting to Reachy Mini Apps</title>
7
+ <meta http-equiv="refresh" content="0;url=https://huggingface.co/spaces/pollen-robotics/reachy-mini-landing-page#apps">
8
  <style>
9
+ :root {
10
+ color-scheme: light;
11
+ }
12
+
13
  * {
 
 
14
  box-sizing: border-box;
15
  }
16
 
17
  body {
18
+ margin: 0;
 
19
  min-height: 100vh;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  display: grid;
21
+ place-items: center;
22
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
23
+ background: radial-gradient(circle at 20% 20%, #f7f5ff, #eef2ff 40%, #e0e7ff 60%, #eef2ff);
24
+ color: #1f2933;
25
+ }
26
+
27
+ main {
28
+ background: white;
29
+ border: 1px solid #dfe3ec;
30
+ border-radius: 16px;
31
+ padding: 32px 28px;
32
+ max-width: 640px;
33
+ width: min(94vw, 640px);
34
+ box-shadow: 0 18px 50px rgba(31, 41, 51, 0.12);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
  text-align: center;
 
 
 
36
  }
37
 
38
+ h1 {
39
+ margin: 0 0 12px;
40
+ font-size: 1.6rem;
41
+ letter-spacing: -0.02em;
 
 
 
 
 
 
42
  }
43
 
44
+ p {
45
+ margin: 0 0 12px;
46
+ color: #52606d;
47
+ line-height: 1.6;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48
  }
49
 
50
+ a {
51
+ color: #4c51bf;
52
+ text-decoration: none;
53
+ font-weight: 600;
54
  }
55
 
56
+ a:hover {
57
+ text-decoration: underline;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
  }
59
  </style>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
60
  <script>
61
+ (function redirect() {
62
+ const target = 'https://huggingface.co/spaces/pollen-robotics/reachy-mini-landing-page#apps';
63
+ if (typeof window !== 'undefined') {
64
+ window.location.replace(target);
 
 
 
 
 
 
 
 
 
 
65
  }
66
+ })();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
67
  </script>
68
+ </head>
69
+ <body>
70
+ <main>
71
+ <h1>Redirecting you to Reachy Mini Apps</h1>
72
+ <p>If you are not redirected automatically, use the link below.</p>
73
+ <p><a href="https://huggingface.co/spaces/pollen-robotics/reachy-mini-landing-page#apps">Go to the Hugging Face landing page</a></p>
74
+ </main>
75
  </body>
76
+ </html>