Skip to content

Commit 8a30ebd

Browse files
chen201724babydog-ai
andauthored
feat: add platform-specific guides to MCP Quick Start section (#49)
- Add Windows user guide link (Yuque blog post) - Add macOS user guide link (GitHub installation docs) - Display as card-style links with icons and hover effects - Positioned below installation options with visual separator Co-authored-by: babydog-ai <willchen.babydog@gmail.com>
1 parent 61eb1de commit 8a30ebd

2 files changed

Lines changed: 88 additions & 0 deletions

File tree

website/src/components/McpQuickStart/McpQuickStart.module.css

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,64 @@
210210
color: var(--color-primary);
211211
}
212212

213+
/* Platform Guides */
214+
.platformGuides {
215+
margin-bottom: 36px;
216+
}
217+
218+
.platformGuidesTitle {
219+
font-size: 13px;
220+
font-weight: 600;
221+
color: var(--color-text-muted);
222+
text-align: center;
223+
margin-bottom: 14px;
224+
}
225+
226+
.platformLinks {
227+
display: flex;
228+
gap: 12px;
229+
justify-content: center;
230+
}
231+
232+
.platformLink {
233+
display: flex;
234+
align-items: center;
235+
gap: 8px;
236+
padding: 10px 18px;
237+
border-radius: 10px;
238+
border: 1px solid var(--color-border);
239+
background: var(--color-bg-secondary);
240+
text-decoration: none;
241+
transition: all 0.2s ease;
242+
}
243+
244+
.platformLink:hover {
245+
border-color: var(--color-primary);
246+
background: rgba(0, 185, 107, 0.04);
247+
}
248+
249+
.platformIcon {
250+
font-size: 18px;
251+
flex-shrink: 0;
252+
}
253+
254+
.platformName {
255+
font-size: 14px;
256+
font-weight: 500;
257+
color: var(--color-text);
258+
}
259+
260+
.platformArrow {
261+
font-size: 14px;
262+
color: var(--color-text-muted);
263+
transition: all 0.2s ease;
264+
}
265+
266+
.platformLink:hover .platformArrow {
267+
color: var(--color-primary);
268+
transform: translateX(2px);
269+
}
270+
213271
@media (max-width: 640px) {
214272
.section {
215273
padding: 60px 16px;
@@ -233,4 +291,7 @@
233291
.optionDesc {
234292
font-size: 13px;
235293
}
294+
.platformLinks {
295+
flex-direction: column;
296+
}
236297
}

website/src/components/McpQuickStart/McpQuickStart.tsx

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,33 @@ function McpQuickStart() {
4343
选择你的 MCP 客户端,一键接入语雀 AI 能力。支持所有主流编辑器和 AI 工具。
4444
</p>
4545

46+
{/* Platform Guides - moved to top */}
47+
<div className={styles.platformGuides}>
48+
<p className={styles.platformGuidesTitle}>📚 平台特定指南</p>
49+
<div className={styles.platformLinks}>
50+
<a
51+
href="https://www.yuque.com/yuque/blog/lh9nfocqh1nqf0c0"
52+
target="_blank"
53+
rel="noopener noreferrer"
54+
className={styles.platformLink}
55+
>
56+
<span className={styles.platformIcon}>🪟</span>
57+
<span className={styles.platformName}>Windows 用户上手指南</span>
58+
<span className={styles.platformArrow}></span>
59+
</a>
60+
<a
61+
href="https://github.com/yuque/yuque-mcp-server#installation"
62+
target="_blank"
63+
rel="noopener noreferrer"
64+
className={styles.platformLink}
65+
>
66+
<span className={styles.platformIcon}>🍎</span>
67+
<span className={styles.platformName}>macOS 用户上手指南</span>
68+
<span className={styles.platformArrow}></span>
69+
</a>
70+
</div>
71+
</div>
72+
4673
{/* Prerequisites - inline chips */}
4774
<div className={styles.prerequisites}>
4875
<span className={styles.prereqTitle}>前置条件:</span>

0 commit comments

Comments
 (0)