kadirnar commited on
Commit
732cfdf
·
verified ·
1 Parent(s): 90a3beb

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +93 -30
index.html CHANGED
@@ -32,16 +32,49 @@
32
  letter-spacing: -1px;
33
  animation: fadeInDown 1.2s cubic-bezier(.18,.89,.32,1.28);
34
  }
35
- .modern-title .hf-logo {
36
- height: 2.7rem;
37
- width: 2.7rem;
38
- display: inline-block;
39
- vertical-align: middle;
40
  margin-right: 8px;
41
- filter: drop-shadow(0 2px 12px #0005);
42
- background: #fff;
43
- border-radius: 50%;
44
- padding: 3px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  }
46
  .card-grid {
47
  display: grid;
@@ -115,10 +148,6 @@
115
  display: inline-block;
116
  vertical-align: middle;
117
  }
118
- @keyframes arrowMove {
119
- from { transform: translateX(0);}
120
- to { transform: translateX(12px);}
121
- }
122
  iframe {
123
  width: 100%;
124
  height: 260px;
@@ -143,6 +172,9 @@
143
  iframe {
144
  height: 180px;
145
  }
 
 
 
146
  }
147
  /* Animations */
148
  @keyframes fadeInDown {
@@ -161,33 +193,30 @@
161
  0% { opacity: 0; transform: scale(0.98);}
162
  100% { opacity: 1; transform: scale(1);}
163
  }
 
 
 
 
164
  </style>
165
  </head>
166
  <body>
167
  <div class="container">
168
  <h1 class="modern-title">
169
- <span class="hf-logo">
170
- <svg viewBox="0 0 40 40" width="38" height="38" xmlns="http://www.w3.org/2000/svg">
171
- <circle cx="20" cy="20" r="20" fill="#fff" />
172
- <g>
173
- <ellipse cx="20" cy="20" rx="18" ry="18" fill="#ffd21e"/>
174
- <ellipse cx="14" cy="17" rx="2.5" ry="3" fill="#fff"/>
175
- <ellipse cx="26" cy="17" rx="2.5" ry="3" fill="#fff"/>
176
- <ellipse cx="14" cy="17" rx="1.2" ry="1.5" fill="#222"/>
177
- <ellipse cx="26" cy="17" rx="1.2" ry="1.5" fill="#222"/>
178
- <path d="M13 26 q7 5 14 0" stroke="#222" stroke-width="2" fill="none" stroke-linecap="round"/>
179
- </g>
180
- </svg>
181
- </span>
182
  My Hugging Face Heatmaps
183
  </h1>
184
 
185
- <div class="card-grid">
 
 
 
 
 
186
  <div class="heatmap-card">
187
  <div class="heatmap-label">Kadir Nar</div>
188
  <iframe src="https://cfahlgren1-model-release-heatmap.hf.space/kadirnar"></iframe>
189
  <div class="scroll-tip">
190
- <span>En güncel aktiviteler için sağa kaydırın</span>
191
  <span class="arrow">➡️</span>
192
  </div>
193
  </div>
@@ -195,7 +224,7 @@
195
  <div class="heatmap-label">OpenSpeechHub</div>
196
  <iframe src="https://cfahlgren1-model-release-heatmap.hf.space/OpenSpeechHub"></iframe>
197
  <div class="scroll-tip">
198
- <span>En güncel aktiviteler için sağa kaydırın</span>
199
  <span class="arrow">➡️</span>
200
  </div>
201
  </div>
@@ -203,11 +232,45 @@
203
  <div class="heatmap-label">Closed-TTS</div>
204
  <iframe src="https://cfahlgren1-model-release-heatmap.hf.space/Closed-TTS"></iframe>
205
  <div class="scroll-tip">
206
- <span>En güncel aktiviteler için sağa kaydırın</span>
207
  <span class="arrow">➡️</span>
208
  </div>
209
  </div>
210
  </div>
211
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
212
  </body>
213
  </html>
 
32
  letter-spacing: -1px;
33
  animation: fadeInDown 1.2s cubic-bezier(.18,.89,.32,1.28);
34
  }
35
+ .modern-title .emoji {
36
+ font-size: 2.3rem;
 
 
 
37
  margin-right: 8px;
38
+ vertical-align: middle;
39
+ }
40
+ .search-row {
41
+ display: flex;
42
+ gap: 12px;
43
+ align-items: center;
44
+ margin-bottom: 38px;
45
+ animation: fadeInDown 1.3s cubic-bezier(.18,.89,.32,1.28);
46
+ }
47
+ .search-row input[type="text"] {
48
+ font-family: inherit;
49
+ font-size: 1.1rem;
50
+ padding: 10px 16px;
51
+ border-radius: 12px;
52
+ border: 1.5px solid #222;
53
+ background: #232526;
54
+ color: #fff;
55
+ outline: none;
56
+ width: 240px;
57
+ transition: border 0.2s;
58
+ }
59
+ .search-row input[type="text"]:focus {
60
+ border: 1.5px solid #ffcc33;
61
+ }
62
+ .search-row button {
63
+ font-family: inherit;
64
+ font-size: 1.1rem;
65
+ padding: 10px 22px;
66
+ border-radius: 12px;
67
+ border: none;
68
+ background: linear-gradient(90deg, #ffb347 0%, #ffcc33 80%);
69
+ color: #222;
70
+ font-weight: 800;
71
+ cursor: pointer;
72
+ transition: background 0.2s, color 0.2s;
73
+ box-shadow: 0 2px 10px #ffb34722;
74
+ }
75
+ .search-row button:hover {
76
+ background: linear-gradient(90deg, #00c3ff 0%, #ffcc33 100%);
77
+ color: #fff;
78
  }
79
  .card-grid {
80
  display: grid;
 
148
  display: inline-block;
149
  vertical-align: middle;
150
  }
 
 
 
 
151
  iframe {
152
  width: 100%;
153
  height: 260px;
 
172
  iframe {
173
  height: 180px;
174
  }
175
+ .search-row input[type="text"] {
176
+ width: 120px;
177
+ }
178
  }
179
  /* Animations */
180
  @keyframes fadeInDown {
 
193
  0% { opacity: 0; transform: scale(0.98);}
194
  100% { opacity: 1; transform: scale(1);}
195
  }
196
+ @keyframes arrowMove {
197
+ from { transform: translateX(0);}
198
+ to { transform: translateX(12px);}
199
+ }
200
  </style>
201
  </head>
202
  <body>
203
  <div class="container">
204
  <h1 class="modern-title">
205
+ <span class="emoji">🤗</span>
 
 
 
 
 
 
 
 
 
 
 
 
206
  My Hugging Face Heatmaps
207
  </h1>
208
 
209
+ <form class="search-row" id="searchForm" autocomplete="off" onsubmit="return false;">
210
+ <input type="text" id="usernameInput" placeholder="Enter username or org..." required>
211
+ <button type="submit">Add Heatmap</button>
212
+ </form>
213
+
214
+ <div class="card-grid" id="cardGrid">
215
  <div class="heatmap-card">
216
  <div class="heatmap-label">Kadir Nar</div>
217
  <iframe src="https://cfahlgren1-model-release-heatmap.hf.space/kadirnar"></iframe>
218
  <div class="scroll-tip">
219
+ <span>Scroll right for the latest activity</span>
220
  <span class="arrow">➡️</span>
221
  </div>
222
  </div>
 
224
  <div class="heatmap-label">OpenSpeechHub</div>
225
  <iframe src="https://cfahlgren1-model-release-heatmap.hf.space/OpenSpeechHub"></iframe>
226
  <div class="scroll-tip">
227
+ <span>Scroll right for the latest activity</span>
228
  <span class="arrow">➡️</span>
229
  </div>
230
  </div>
 
232
  <div class="heatmap-label">Closed-TTS</div>
233
  <iframe src="https://cfahlgren1-model-release-heatmap.hf.space/Closed-TTS"></iframe>
234
  <div class="scroll-tip">
235
+ <span>Scroll right for the latest activity</span>
236
  <span class="arrow">➡️</span>
237
  </div>
238
  </div>
239
  </div>
240
  </div>
241
+ <script>
242
+ const cardGrid = document.getElementById('cardGrid');
243
+ const searchForm = document.getElementById('searchForm');
244
+ const usernameInput = document.getElementById('usernameInput');
245
+
246
+ searchForm.addEventListener('submit', function() {
247
+ const username = usernameInput.value.trim();
248
+ if (!username) return;
249
+
250
+ // Check if already exists
251
+ const exists = Array.from(cardGrid.querySelectorAll('.heatmap-label')).some(label =>
252
+ label.textContent.trim().toLowerCase() === username.toLowerCase()
253
+ );
254
+ if (exists) {
255
+ usernameInput.value = '';
256
+ return;
257
+ }
258
+
259
+ // Create card
260
+ const card = document.createElement('div');
261
+ card.className = 'heatmap-card';
262
+ card.innerHTML = `
263
+ <div class="heatmap-label">${username}</div>
264
+ <iframe src="https://cfahlgren1-model-release-heatmap.hf.space/${encodeURIComponent(username)}"></iframe>
265
+ <div class="scroll-tip">
266
+ <span>Scroll right for the latest activity</span>
267
+ <span class="arrow">➡️</span>
268
+ </div>
269
+ `;
270
+ cardGrid.appendChild(card);
271
+
272
+ usernameInput.value = '';
273
+ });
274
+ </script>
275
  </body>
276
  </html>