Skip to content

Commit 3848a43

Browse files
committed
web: simplify GitHub links — icon-only nav, drop footer pill, add copyright link
- header nav: drop "GitHub" text label, keep round 32px icon-only button (mobile keeps text-row form via ::before) - footer tagline column: remove the canarybyte/veridrop pill (redundant with the nav button + copyright link) - footer copyright line: append small GitHub icon + repo link inline
1 parent 7387412 commit 3848a43

2 files changed

Lines changed: 50 additions & 36 deletions

File tree

web/static/style.css

Lines changed: 38 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -108,19 +108,16 @@ code {
108108
.nav-github {
109109
display: inline-flex;
110110
align-items: center;
111-
gap: 6px;
112-
padding: 5px 11px;
113-
border: 1px solid var(--line);
111+
justify-content: center;
112+
width: 32px;
113+
height: 32px;
114114
border-radius: 999px;
115115
color: var(--text) !important;
116-
font-weight: 500;
117-
font-size: 13px;
118116
margin-left: 6px;
119-
transition: background 0.15s, border-color 0.15s;
117+
transition: background 0.15s, color 0.15s;
120118
}
121119
.nav-github:hover {
122120
background: var(--bg-soft);
123-
border-color: var(--text);
124121
text-decoration: none;
125122
}
126123
.nav-github svg {
@@ -240,32 +237,29 @@ code {
240237
line-height: 1.6;
241238
max-width: 320px;
242239
}
243-
/* GitHub chip in footer tagline column — same shape as nav-github
244-
* but slightly bigger so it reads as a secondary CTA at footer level. */
245-
.footer-github-btn {
240+
.footer-copyright {
241+
text-align: center;
242+
margin: 8px 0 0;
243+
padding: 0 24px;
244+
}
245+
.footer-copyright-github {
246246
display: inline-flex;
247247
align-items: center;
248-
gap: 8px;
249-
padding: 7px 14px;
250-
border: 1px solid var(--line);
251-
border-radius: 6px;
252-
background: var(--bg);
253-
color: var(--text);
254-
font-size: 13px;
255-
font-weight: 500;
248+
gap: 4px;
249+
margin-left: 8px;
250+
color: inherit !important;
256251
font-family: ui-monospace, SFMono-Regular, "SF Mono", monospace;
257252
text-decoration: none;
258-
transition: background 0.15s, border-color 0.15s;
253+
vertical-align: middle;
254+
opacity: 0.85;
255+
transition: opacity 0.15s;
259256
}
260-
.footer-github-btn:hover {
261-
background: var(--bg-soft);
262-
border-color: var(--text);
257+
.footer-copyright-github:hover {
258+
opacity: 1;
263259
text-decoration: none;
264260
}
265-
.footer-copyright {
266-
text-align: center;
267-
margin: 8px 0 0;
268-
padding: 0 24px;
261+
.footer-copyright-github svg {
262+
flex-shrink: 0;
269263
}
270264
@media (max-width: 720px) {
271265
.footer-grid {
@@ -1564,6 +1558,24 @@ code {
15641558
/* Disable the underline animation in dropdown rows — it competes with
15651559
the row-tap highlight and looks busy. */
15661560
.site-nav a::after { display: none; }
1561+
/* Mobile: GitHub icon-only button sits as a normal-looking row, not a
1562+
32px circle in the corner of a dropdown. */
1563+
.site-nav .nav-github {
1564+
width: auto;
1565+
height: auto;
1566+
border-radius: 0;
1567+
margin-left: 0;
1568+
justify-content: flex-start;
1569+
gap: 10px;
1570+
padding: 14px 20px;
1571+
}
1572+
.site-nav .nav-github::before {
1573+
content: "GitHub";
1574+
font-size: 15px;
1575+
}
1576+
.site-nav .nav-github svg {
1577+
order: -1;
1578+
}
15671579
}
15681580

15691581
/* pre-submit /v1/models probe pill (web/static/app.js inserts it) */

web/templates/base.html

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<meta name="twitter:card" content="summary_large_image" />
1515
{% block og_image %}{% endblock %}
1616
<link rel="canonical" href="{% block canonical %}https://veridrop.org/{% endblock %}" />
17-
<link rel="stylesheet" href="/static/style.css?v=20260505-4" />
17+
<link rel="stylesheet" href="/static/style.css?v=20260505-5" />
1818
<link rel="icon" href="/static/favicon.svg" type="image/svg+xml" />
1919
{% block head_extra %}{% endblock %}
2020
</head>
@@ -47,11 +47,11 @@
4747
<a href="/faq">常见问题</a>
4848
<a class="nav-github" href="https://github.com/canarybyte/veridrop"
4949
target="_blank" rel="noopener noreferrer"
50+
aria-label="View source on GitHub"
5051
title="View source on GitHub · AGPL-3.0 开源">
51-
<svg viewBox="0 0 16 16" width="16" height="16" fill="currentColor" aria-hidden="true">
52+
<svg viewBox="0 0 16 16" width="18" height="18" fill="currentColor" aria-hidden="true">
5253
<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-.27.68 0 1.36.09 2 .27 1.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.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"></path>
5354
</svg>
54-
<span>GitHub</span>
5555
</a>
5656
</nav>
5757
</div>
@@ -69,13 +69,6 @@
6969
协议字段 + 加密签名 + 长上下文 needle-in-haystack 三层验证。
7070
代码完全开源,API key 永不落盘。
7171
</p>
72-
<a class="footer-github-btn" href="https://github.com/canarybyte/veridrop"
73-
target="_blank" rel="noopener" title="View source on GitHub">
74-
<svg viewBox="0 0 16 16" width="16" height="16" fill="currentColor" aria-hidden="true">
75-
<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-.27.68 0 1.36.09 2 .27 1.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.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"></path>
76-
</svg>
77-
<span>canarybyte/veridrop</span>
78-
</a>
7972
</div>
8073
<div class="footer-col">
8174
<h4>项目</h4>
@@ -105,6 +98,15 @@ <h4>资源</h4>
10598
</div>
10699
<p class="footer-copyright muted small">
107100
© Veridrop · 独立测评 · 字段级穿透 · AGPL-3.0 开源 · 代码可逐行审计
101+
<a class="footer-copyright-github" href="https://github.com/canarybyte/veridrop"
102+
target="_blank" rel="noopener noreferrer"
103+
aria-label="View source on GitHub"
104+
title="canarybyte/veridrop · AGPL-3.0">
105+
<svg viewBox="0 0 16 16" width="14" height="14" fill="currentColor" aria-hidden="true">
106+
<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-.27.68 0 1.36.09 2 .27 1.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.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"></path>
107+
</svg>
108+
<span>canarybyte/veridrop</span>
109+
</a>
108110
</p>
109111
</footer>
110112
<script src="/static/app.js?v=20260505-3" defer></script>

0 commit comments

Comments
 (0)