Hwihwa_Lab commited on
Commit
ec4a4a4
·
1 Parent(s): a41bf60

feat: add Hugging Face Model Hub and GitHub link buttons to header

Browse files
Files changed (2) hide show
  1. index.html +10 -0
  2. style.css +47 -0
index.html CHANGED
@@ -47,6 +47,16 @@
47
  <strong id="hdrBest" class="pill-v" style="color: var(--neon-cyan);">500.0 (SOLVED)</strong>
48
  </div>
49
  </div>
 
 
 
 
 
 
 
 
 
 
50
  </header>
51
 
52
  <!-- Main Unified Laboratory Viewport -->
 
47
  <strong id="hdrBest" class="pill-v" style="color: var(--neon-cyan);">500.0 (SOLVED)</strong>
48
  </div>
49
  </div>
50
+
51
+ <div class="header-actions">
52
+ <a href="https://huggingface.co/hwihwalab/cartpole-v1-ppo" target="_blank" class="header-link-btn hf-btn" title="View Model Card & Weights on Hugging Face">
53
+ <span>🤗 Model Hub</span>
54
+ </a>
55
+ <a href="https://github.com/Hwihwa-Lab/cartpole-v1-ppo" target="_blank" class="header-link-btn gh-btn" title="View Source & Star on GitHub">
56
+ <svg width="14" height="14" viewBox="0 0 24 24" fill="currentColor"><path d="M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0024 12c0-6.63-5.37-12-12-12z"/></svg>
57
+ <span>GitHub</span>
58
+ </a>
59
+ </div>
60
  </header>
61
 
62
  <!-- Main Unified Laboratory Viewport -->
style.css CHANGED
@@ -138,6 +138,53 @@ body {
138
  gap: 0.75rem;
139
  }
140
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
141
  .metric-pill {
142
  display: flex;
143
  align-items: center;
 
138
  gap: 0.75rem;
139
  }
140
 
141
+ .header-actions {
142
+ display: flex;
143
+ align-items: center;
144
+ gap: 0.5rem;
145
+ margin-left: 0.25rem;
146
+ }
147
+
148
+ .header-link-btn {
149
+ display: inline-flex;
150
+ align-items: center;
151
+ gap: 0.4rem;
152
+ padding: 5px 11px;
153
+ border-radius: 6px;
154
+ font-family: var(--font-mono);
155
+ font-size: 0.72rem;
156
+ font-weight: 700;
157
+ text-decoration: none;
158
+ transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
159
+ white-space: nowrap;
160
+ }
161
+
162
+ .header-link-btn.hf-btn {
163
+ background: rgba(255, 210, 30, 0.12);
164
+ border: 1px solid rgba(255, 210, 30, 0.35);
165
+ color: #fbbf24;
166
+ }
167
+
168
+ .header-link-btn.hf-btn:hover {
169
+ background: rgba(255, 210, 30, 0.22);
170
+ border-color: #fbbf24;
171
+ box-shadow: 0 0 12px rgba(251, 191, 36, 0.35);
172
+ transform: translateY(-1px);
173
+ }
174
+
175
+ .header-link-btn.gh-btn {
176
+ background: rgba(255, 255, 255, 0.08);
177
+ border: 1px solid rgba(255, 255, 255, 0.22);
178
+ color: #f1f5f9;
179
+ }
180
+
181
+ .header-link-btn.gh-btn:hover {
182
+ background: rgba(255, 255, 255, 0.16);
183
+ border-color: rgba(255, 255, 255, 0.45);
184
+ box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
185
+ transform: translateY(-1px);
186
+ }
187
+
188
  .metric-pill {
189
  display: flex;
190
  align-items: center;