akhaliq HF Staff commited on
Commit
4eb00b7
·
verified ·
1 Parent(s): 51aac93

Header: add Built-with-ML-Intern badge and Build-your-own-app CTA in studio style

Browse files
Files changed (1) hide show
  1. index.html +9 -1
index.html CHANGED
@@ -102,7 +102,13 @@ a { color: var(--accent-text); text-decoration: none; }
102
  @keyframes pulse { 50% { opacity: .35; } }
103
  .share-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-panel-raised); border: 1px solid var(--border-strong); border-radius: var(--r-sm); padding: 5px 12px; font-size: 12px; font-weight: 500; color: var(--text); }
104
  .share-btn:hover { background: var(--bg-hover); }
105
- @media (max-width: 640px) { .share-btn { display: none; } }
 
 
 
 
 
 
106
 
107
  /* ------- generic panel chrome ------- */
108
  .panel { background: var(--bg-panel); display: flex; flex-direction: column; min-height: 0; min-width: 0; }
@@ -378,6 +384,8 @@ body.in-session .steps { display: inline-flex; }
378
  <span class="spacer"></span>
379
  <span class="status" id="slots"><span class="dot"></span><span>Checking GPUs…</span></span>
380
  <button class="share-btn" id="share" type="button">⤴ Share</button>
 
 
381
  </header>
382
 
383
  <main class="studio-main">
 
102
  @keyframes pulse { 50% { opacity: .35; } }
103
  .share-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-panel-raised); border: 1px solid var(--border-strong); border-radius: var(--r-sm); padding: 5px 12px; font-size: 12px; font-weight: 500; color: var(--text); }
104
  .share-btn:hover { background: var(--bg-hover); }
105
+ .ml-badge { display: inline-flex; align-items: center; }
106
+ .ml-badge img { height: 20px; display: block; }
107
+ .ml-badge:hover { opacity: .85; }
108
+ .top-cta { color: #fff; text-decoration: none; font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: var(--r-sm); white-space: nowrap; background: linear-gradient(90deg, var(--accent), var(--accent-hover)); transition: filter .15s; }
109
+ .top-cta:hover { filter: brightness(1.12); }
110
+ @media (max-width: 900px) { .ml-badge { display: none; } }
111
+ @media (max-width: 640px) { .share-btn, .top-cta { display: none; } }
112
 
113
  /* ------- generic panel chrome ------- */
114
  .panel { background: var(--bg-panel); display: flex; flex-direction: column; min-height: 0; min-width: 0; }
 
384
  <span class="spacer"></span>
385
  <span class="status" id="slots"><span class="dot"></span><span>Checking GPUs…</span></span>
386
  <button class="share-btn" id="share" type="button">⤴ Share</button>
387
+ <a class="ml-badge" href="https://hf.co/chat?mode=ml-intern" target="_blank" rel="noopener" title="Built with ML Intern"><img src="https://huggingface.co/datasets/huggingface/badges/resolve/main/built-with-ml-intern-sm.svg" alt="Built with ML Intern"></a>
388
+ <a class="top-cta" href="https://hf.co/chat?mode=ml-intern" target="_blank" rel="noopener">Build your own app here</a>
389
  </header>
390
 
391
  <main class="studio-main">