Skip to content

Commit 2d7b829

Browse files
imguoguoclaude
andauthored
feat(header): add repo, docs, and sipeed buttons with icons (#2)
- Replace single Sipeed button with three header buttons (PicoClaw Repo, Documentation, Visit Sipeed) on a separate row with inline SVG icons - Align subscribe card buttons to bottom with flex layout - Add picoclaw.io site source link to footer - Add i18n support for all new elements Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ae99762 commit 2d7b829

1 file changed

Lines changed: 47 additions & 14 deletions

File tree

index.html

Lines changed: 47 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -96,26 +96,35 @@
9696
.badge-link { display: inline-flex; text-decoration: none; }
9797
.badge-link img { display: block; border-radius: 4px; }
9898

99-
.btn-sipeed {
99+
.header-buttons {
100+
position: relative; z-index: 1;
101+
display: flex;
102+
align-items: center;
103+
justify-content: center;
104+
gap: 10px;
105+
margin-top: 12px;
106+
}
107+
108+
.btn-header {
100109
display: inline-flex;
101110
align-items: center;
102-
gap: 6px;
103-
padding: 6px 16px;
111+
gap: 7px;
112+
padding: 8px 20px;
104113
border-radius: 8px;
105114
border: 1px solid rgba(255, 255, 255, 0.22);
106-
background: linear-gradient(140deg, #2d78e8, #0099c2);
107-
color: #fff;
108-
font-size: 0.82rem;
115+
background: rgba(255, 255, 255, 0.06);
116+
color: var(--accent);
117+
font-size: 0.92rem;
109118
font-weight: 600;
110119
text-decoration: none;
111-
transition: transform .2s, box-shadow .2s, border-color .2s;
112-
box-shadow: 0 4px 14px rgba(45, 120, 232, 0.3);
120+
transition: transform .2s, box-shadow .2s, border-color .2s, background .2s, color .2s;
113121
}
114-
.btn-sipeed:hover {
122+
.btn-header:hover {
115123
transform: translateY(-2px);
116-
border-color: rgba(255, 255, 255, 0.5);
117-
box-shadow: 0 8px 22px rgba(45, 120, 232, 0.45);
124+
border-color: var(--accent);
125+
background: var(--accent);
118126
color: #fff;
127+
box-shadow: 0 8px 22px rgba(88, 166, 255, 0.3);
119128
}
120129

121130
/* ─── MAIN ───────────────────────────────────────────────── */
@@ -384,6 +393,8 @@
384393
}
385394

386395
.form-card {
396+
display: flex;
397+
flex-direction: column;
387398
background: var(--bg-card);
388399
border: 1px solid var(--border);
389400
border-radius: 16px;
@@ -396,12 +407,13 @@
396407
.form-card:hover { border-color: var(--border-h); background: var(--bg-card-h); }
397408

398409
.form-card h3 { font-size: 0.92rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
399-
.form-card p { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 14px; line-height: 1.5; }
410+
.form-card p { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0; line-height: 1.5; flex: 1; }
411+
.form-card .form-link { margin-top: 14px; align-self: flex-start; }
400412

401413
.form-link {
402414
display: inline-flex;
403415
align-items: center;
404-
padding: 7px 14px;
416+
padding: 9px 14px;
405417
border-radius: 8px;
406418
border: 1px solid var(--accent);
407419
background: transparent;
@@ -503,7 +515,20 @@
503515
<img src="https://img.shields.io/github/stars/sipeed/picoclaw?style=flat-square&logo=github&color=f5a623&labelColor=0d1117&logoColor=white"
504516
alt="GitHub Stars" height="24" />
505517
</a>
506-
<a class="btn-sipeed" href="https://www.sipeed.com" target="_blank" rel="noopener noreferrer" data-i18n="sipeed-visit">Visit Sipeed</a>
518+
</div>
519+
<div class="header-buttons reveal d3">
520+
<a class="btn-header" href="https://github.com/sipeed/picoclaw" target="_blank" rel="noopener noreferrer">
521+
<svg width="16" height="16" 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 0 0 24 12c0-6.63-5.37-12-12-12z"/></svg>
522+
<span data-i18n="btn-repo">PicoClaw Repo</span>
523+
</a>
524+
<a class="btn-header" href="https://docs.picoclaw.io" target="_blank" rel="noopener noreferrer">
525+
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"/><path d="M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"/></svg>
526+
<span data-i18n="btn-docs">Documentation</span>
527+
</a>
528+
<a class="btn-header" href="https://www.sipeed.com" target="_blank" rel="noopener noreferrer">
529+
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/><polyline points="15 3 21 3 21 9"/><line x1="10" y1="14" x2="21" y2="3"/></svg>
530+
<span data-i18n="sipeed-visit">Visit Sipeed</span>
531+
</a>
507532
</div>
508533
</header>
509534

@@ -571,6 +596,8 @@ <h3 data-i18n="subscribe-cn">Mainland China · Feishu</h3>
571596
<a href="https://github.com/sipeed/picoclaw/releases" target="_blank" rel="noopener noreferrer" data-i18n="footer-releases">All Releases</a>
572597
<span class="footer-sep">·</span>
573598
<a href="https://github.com/sipeed/picoclaw/issues" target="_blank" rel="noopener noreferrer" data-i18n="footer-issues">Issues</a>
599+
<span class="footer-sep">·</span>
600+
<a href="https://github.com/sipeed/picoclaw.io" target="_blank" rel="noopener noreferrer" data-i18n="footer-site-repo">Site Source</a>
574601
</div>
575602
<div id="footer-credit">PicoClaw is open-source software by <a href="https://github.com/sipeed" target="_blank" rel="noopener noreferrer">Sipeed</a></div>
576603
</footer>
@@ -588,11 +615,14 @@ <h3 data-i18n="subscribe-cn">Mainland China · Feishu</h3>
588615
'footer-docs': 'Docs',
589616
'footer-releases': 'All Releases',
590617
'footer-issues': 'Issues',
618+
'footer-site-repo': 'Site Source',
591619
'footer-credit': 'PicoClaw is open-source software by <a href="https://github.com/sipeed" target="_blank" rel="noopener noreferrer">Sipeed</a>',
592620
'load-error': 'Failed to load release info.',
593621
'view-github': 'View on GitHub →',
594622
'arch-count': n => `${n} architecture${n > 1 ? 's' : ''}`,
595623
'sipeed-visit': 'Visit Sipeed',
624+
'btn-repo': 'PicoClaw Repo',
625+
'btn-docs': 'Documentation',
596626
'subscribe-title': 'Stay Connected',
597627
'subscribe-desc': 'Subscribe for news and product updates.',
598628
'subscribe-global': 'Global · Google Form',
@@ -612,11 +642,14 @@ <h3 data-i18n="subscribe-cn">Mainland China · Feishu</h3>
612642
'footer-docs': '文档',
613643
'footer-releases': '所有版本',
614644
'footer-issues': '问题反馈',
645+
'footer-site-repo': '网站源码',
615646
'footer-credit': 'PicoClaw 是由 <a href="https://github.com/sipeed" target="_blank" rel="noopener noreferrer">Sipeed</a> 开发的开源软件',
616647
'load-error': '加载发布信息失败。',
617648
'view-github': '在 GitHub 上查看 →',
618649
'arch-count': n => `${n} 个架构`,
619650
'sipeed-visit': '访问 Sipeed',
651+
'btn-repo': 'PicoClaw 仓库',
652+
'btn-docs': '文档',
620653
'subscribe-title': '保持联系',
621654
'subscribe-desc': '订阅最新动态和产品更新。',
622655
'subscribe-global': '全球用户 · Google 表单',

0 commit comments

Comments
 (0)