Skip to content

Commit 24825a1

Browse files
committed
feat(ui): add GitHub badge linking to repo
Closes #5
1 parent 0840170 commit 24825a1

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@
4141
</select>
4242
<div class="tb-sep"></div>
4343
<span id="time-display">--</span>
44+
<a id="github-link" href="https://github.com/ethp2p/netviz" target="_blank" rel="noopener" title="View on GitHub">
45+
<svg width="18" height="18" viewBox="0 0 16 16" fill="currentColor"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0016 8c0-4.42-3.58-8-8-8z"/></svg>
46+
<span>ethp2p/netviz</span>
47+
</a>
4448
</div>
4549

4650
<!-- Main area -->

src/style.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ html, body { height: 100%; background: var(--bg); color: var(--text); font-famil
3131
#timeline-bar { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); width: 60%; max-width: 600px; min-width: 280px; background: rgba(12,10,9,0.9); backdrop-filter: blur(8px); border: 1px solid var(--border); border-radius: 0; padding: 16px 20px; display: flex; flex-direction: column; gap: 8px; z-index: 20; }
3232

3333
/* Toolbar */
34+
#github-link { margin-left: auto; color: var(--text2); display: flex; align-items: center; gap: 8px; font-family: var(--font); font-size: 12px; text-decoration: none; transition: color 0.15s; padding-left: 24px; }
35+
#github-link:hover { color: var(--text); }
3436
#toolbar label { font-family: var(--font); font-size: 13px; font-weight: 400; color: var(--text2); text-transform: uppercase; letter-spacing: 0.06em; cursor: pointer; }
3537
#toolbar input[type="file"] { display: none; }
3638
#file-label { padding: 4px 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-family: var(--font); font-size: 13px; font-weight: 500; cursor: pointer; transition: border-color 0.15s; }

0 commit comments

Comments
 (0)