fdaudens HF staff commited on
Commit
0d4f2e7
1 Parent(s): 953b5c2

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +342 -18
index.html CHANGED
@@ -1,19 +1,343 @@
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>A look back before 2025</title>
7
+ <style>
8
+ body {
9
+ font-family: system-ui, -apple-system, sans-serif;
10
+ background: #f8f9fa;
11
+ margin: 0;
12
+ padding: 20px;
13
+ min-height: 100vh;
14
+ }
15
+
16
+ h1 {
17
+ color: #1a1a1a;
18
+ margin-bottom: 20px;
19
+ }
20
+
21
+ .intro {
22
+ max-width: 800px;
23
+ margin: 0 auto 40px;
24
+ text-align: center;
25
+ line-height: 1.6;
26
+ color: #374151;
27
+ }
28
+
29
+ .calendar {
30
+ display: grid;
31
+ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
32
+ gap: 20px;
33
+ max-width: 1200px;
34
+ margin: 0 auto;
35
+ padding: 20px;
36
+ }
37
+
38
+ .card {
39
+ aspect-ratio: 1;
40
+ background: #6B7280;
41
+ border-radius: 12px;
42
+ display: flex;
43
+ align-items: center;
44
+ justify-content: center;
45
+ font-size: 24px;
46
+ font-weight: bold;
47
+ color: white;
48
+ cursor: pointer;
49
+ transition: all 0.3s ease;
50
+ position: relative;
51
+ overflow: hidden;
52
+ }
53
+
54
+ .card.active {
55
+ background: #FFD21E;
56
+ transform: translateY(-2px);
57
+ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
58
+ }
59
+
60
+ .card.opened {
61
+ background: #FF9D00;
62
+ }
63
+
64
+ .card-content {
65
+ display: none;
66
+ padding: 20px;
67
+ text-align: center;
68
+ }
69
+
70
+ .modal {
71
+ display: none;
72
+ position: fixed;
73
+ top: 0;
74
+ left: 0;
75
+ width: 100%;
76
+ height: 100%;
77
+ background: rgba(0, 0, 0, 0.8);
78
+ z-index: 1000;
79
+ justify-content: center;
80
+ align-items: center;
81
+ }
82
+
83
+ .modal-content {
84
+ background: white;
85
+ padding: 40px;
86
+ border-radius: 12px;
87
+ max-width: 800px;
88
+ width: 90%;
89
+ max-height: 90vh;
90
+ overflow-y: auto;
91
+ position: relative;
92
+ }
93
+
94
+ .close-button {
95
+ position: absolute;
96
+ top: 20px;
97
+ right: 20px;
98
+ background: none;
99
+ border: none;
100
+ font-size: 24px;
101
+ cursor: pointer;
102
+ }
103
+ .responsive-iframe-container {
104
+ position: relative;
105
+ width: 100%;
106
+ padding-top: 56.25%; /* 16:9 aspect ratio */
107
+ }
108
+ .responsive-iframe-container iframe {
109
+ position: absolute;
110
+ top: 0;
111
+ left: 0;
112
+ width: 100%;
113
+ height: 100%;
114
+ border: 0;
115
+ }
116
+ </style>
117
+ </head>
118
+ <body>
119
+ <div class="intro">
120
+ <h1>🤗 Open-source AI: year in review 2024</h1>
121
+ <p>We're excited to share what's been happening in AI this year—with a twist! In collaboration with aiworld.eu, starting December 2, we'll release fresh content daily to share insights on what happened in open-source AI in 2024. Follow along to stay on top of the biggest AI trends! <img src="logos/huggingface_logo-noborder.svg" width="20"> <img src="logos/aiworld.svg" width="20"></p>
122
+ </div>
123
+
124
+ <div class="calendar">
125
+ <!-- Cards will be generated here -->
126
+ </div>
127
+
128
+ <div class="modal">
129
+ <div class="modal-content">
130
+ <button class="close-button">&times;</button>
131
+ <div class="modal-body"></div>
132
+ </div>
133
+ </div>
134
+
135
+ <script>
136
+ const calendar = document.querySelector('.calendar');
137
+ const modal = document.querySelector('.modal');
138
+ const modalContent = document.querySelector('.modal-body');
139
+ const closeButton = document.querySelector('.close-button');
140
+
141
+ // Add the cardContents object here
142
+ const cardContents = {
143
+ 1: `
144
+ <h2>Day 1 - Six Predictions for AI in 2025 (and a review of how my 2024 predictions turned out)</h2>
145
+ <div style="display: flex; align-items: center; margin-bottom: 20px;">
146
+ <img src="https://cdn-avatars.huggingface.co/v1/production/uploads/1583857146757-5e67bdd61009063689407479.jpeg" style="width: 60px; height: 60px; border-radius: 50%; margin-right: 15px;">
147
+ <div>
148
+ <strong><a href="https://huggingface.co/clem" style="color: inherit; text-decoration: underline;">Clément Delangue</a></strong><br>
149
+ <em>Hugging Face CEO</em>
150
+ </div>
151
+ </div>
152
+ <h3>Predictions for 2025</h3>
153
+ <ol>
154
+ <li>There will be the first major public protest related to AI</li>
155
+ <li>A big company will see its market cap divided by two or more because of AI</li>
156
+ <li>At least 100,000 personal AI robots will be pre-ordered</li>
157
+ <li>China will start to lead the AI race (as a consequence of leading the open-source AI race)</li>
158
+ <li>There will be big breakthroughs in AI for biology and chemistry</li>
159
+ <li>We will begin to see the economic and employment growth potential of AI, with 15M AI builders on Hugging Face</li>
160
+ </ol>
161
+
162
+ <h3>2024 Predictions Review</h3>
163
+ <ul>
164
+ <li>A hyped AI company will go bankrupt or get acquired for a ridiculously low price<br>
165
+ ✅ (Inflexion, AdeptAI,...)</li>
166
+ <li>Open-source LLMs will reach the level of the best closed-source LLMs<br>
167
+ ✅ with QwQ and dozens of others</li>
168
+ <li>Big breakthroughs in AI for video, time-series, biology and chemistry<br>
169
+ ✅ for video 🔴for time-series, biology and chemistry</li>
170
+ <li>We will talk much more about the cost (monetary and environmental) of AI<br>
171
+ ✅Monetary 🔴Environmental (😢)</li>
172
+ <li>A popular media will be mostly AI-generated<br>
173
+ ✅ with NotebookLM by Google</li>
174
+ <li>10 millions AI builders on Hugging Face leading to no increase of unemployment<br>
175
+ 🔜currently 7M of AI builders on Hugging Face</li>
176
+ </ul>
177
+
178
+ <p style="margin-top: 30px;"><i>Join the conversation about Clem's predictions for 2025:</i></p>
179
+ <ul style="list-style-type: none; padding-left: 0;">
180
+ <li>✦ <a href="https://huggingface.co/posts/clem/703679306559358" style="color: inherit; text-decoration: underline;">Hugging Face</a></li>
181
+ <li>✦ <a href="https://x.com/ClementDelangue/status/1863576648253091934" style="color: inherit; text-decoration: underline;">X</a></li>
182
+ <li>✦ <a href="https://www.linkedin.com/in/clementdelangue/" style="color: inherit; text-decoration: underline;">LinkedIn</a></li>
183
+ <li>✦ <a href="https://bsky.app/profile/clem.hf.co/post/3lcdceiv7vk2h" style="color: inherit; text-decoration: underline;">Bluesky</a></li>
184
+ </ul>
185
+ `,
186
+ 2: `
187
+ <h2>Day 2</h2>
188
+ <p>Come back tomorrow for more data 🤗</p>
189
+ `,
190
+ 3: `
191
+ <h2>Day 3</h2>
192
+ <p>Come back tomorrow for more data 🤗</p>
193
+ `,
194
+ 4: `
195
+ <h2>Day 4</h2>
196
+ <p>Come back tomorrow for more data 🤗</p>
197
+ `,
198
+ 5: `
199
+ <h2>Day 5</h2>
200
+ <p>Come back tomorrow for more data 🤗</p>
201
+ `,
202
+ 6: `
203
+ <h2>Day 6</h2>
204
+ <p>Come back tomorrow for more data 🤗</p>
205
+ `,
206
+ 7: `
207
+ <h2>Day 7</h2>
208
+ <p>Come back tomorrow for more data 🤗</p>
209
+ `,
210
+ 8: `
211
+ <h2>Day 8</h2>
212
+ <p>Come back tomorrow for more data 🤗</p>
213
+ `,
214
+ 9: `
215
+ <h2>Day 9</h2>
216
+ <p>Come back tomorrow for more data 🤗</p>
217
+ `,
218
+ 10: `
219
+ <h2>Day 10</h2>
220
+ <p>Come back tomorrow for more data 🤗</p>
221
+ `,
222
+ 11: `
223
+ <h2>Day 11</h2>
224
+ <p>Come back tomorrow for more data 🤗</p>
225
+ `,
226
+ 12: `
227
+ <h2>Day 12</h2>
228
+ <p>Come back tomorrow for more data 🤗</p>
229
+ `,
230
+ 13: `
231
+ <h2>Day 13</h2>
232
+ <p>Come back tomorrow for more data 🤗</p>
233
+ `,
234
+ 14: `
235
+ <h2>Day 14</h2>
236
+ <p>Come back tomorrow for more data 🤗</p>
237
+ `,
238
+ 15: `
239
+ <h2>Day 15</h2>
240
+ <p>Come back tomorrow for more data 🤗</p>
241
+ `,
242
+ 16: `
243
+ <h2>Day 16</h2>
244
+ <p>Come back tomorrow for more data 🤗</p>
245
+ `,
246
+ 17: `
247
+ <h2>Day 17</h2>
248
+ <p>Come back tomorrow for more data 🤗</p>
249
+ `,
250
+ 18: `
251
+ <h2>Day 18</h2>
252
+ <p>Come back tomorrow for more data 🤗</p>
253
+ `,
254
+ 19: `
255
+ <h2>Day 19</h2>
256
+ <p>Come back tomorrow for more data 🤗</p>
257
+ `,
258
+ 20: `
259
+ <h2>Day 20</h2>
260
+ <p>Come back tomorrow for more data 🤗</p>
261
+ `,
262
+ 21: `
263
+ <h2>Day 21</h2>
264
+ <p>Come back tomorrow for more data 🤗</p>
265
+ `,
266
+ 22: `
267
+ <h2>Day 22</h2>
268
+ <p>Come back tomorrow for more data 🤗</p>
269
+ `,
270
+ 23: `
271
+ <h2>Day 23</h2>
272
+ <p>Come back tomorrow for more data 🤗</p>
273
+ `,
274
+ 24: `
275
+ <h2>Day 24</h2>
276
+ <p>Come back tomorrow for more data 🤗</p>
277
+ `
278
+ };
279
+
280
+ // Create cards using the cardContents
281
+ for (let i = 1; i <= 24; i++) {
282
+ const card = document.createElement('div');
283
+ card.className = 'card';
284
+ card.dataset.day = i;
285
+ card.innerHTML = `
286
+ ${i}
287
+ <div class="card-content">
288
+ ${cardContents[i]}
289
+ </div>
290
+ `;
291
+ calendar.appendChild(card);
292
+ }
293
+
294
+ // // Handle card clicks
295
+ // const cards = document.querySelectorAll('.card');
296
+ // const currentDate = new Date();
297
+ // const currentDay = currentDate.getDate();
298
+ // const isDecember = currentDate.getMonth() === 11;
299
+
300
+ // cards.forEach(card => {
301
+ // const day = parseInt(card.dataset.day);
302
+ // card.classList.add('active');
303
+
304
+ // card.addEventListener('click', () => {
305
+ // card.classList.add('opened');
306
+ // modalContent.innerHTML = card.querySelector('.card-content').innerHTML;
307
+ // modal.style.display = 'flex';
308
+ // });
309
+ // });
310
+
311
+ // Handle card clicks
312
+ const cards = document.querySelectorAll('.card');
313
+ const activeDays = [1]; // Add the day numbers you want to highlight
314
+
315
+ cards.forEach(card => {
316
+ const day = parseInt(card.dataset.day);
317
+
318
+ // Only add active class to specific cards
319
+ if (activeDays.includes(day)) {
320
+ card.classList.add('active');
321
+ }
322
+
323
+ // Keep click functionality for all cards
324
+ card.addEventListener('click', () => {
325
+ card.classList.add('opened');
326
+ modalContent.innerHTML = card.querySelector('.card-content').innerHTML;
327
+ modal.style.display = 'flex';
328
+ });
329
+ });
330
+
331
+ // Close modal
332
+ closeButton.addEventListener('click', () => {
333
+ modal.style.display = 'none';
334
+ });
335
+
336
+ modal.addEventListener('click', (e) => {
337
+ if (e.target === modal) {
338
+ modal.style.display = 'none';
339
+ }
340
+ });
341
+ </script>
342
+ </body>
343
  </html>