|
1 | | -import Link from 'next/link' |
2 | | -import { |
3 | | - capabilityCards, |
4 | | - heroProofPoints, |
5 | | - homeEntryCards, |
6 | | - readingPath, |
7 | | - siteConfig |
8 | | -} from '../lib/site' |
| 1 | +import HomePageContent from './home-page.mdx' |
9 | 2 |
|
10 | 3 | export default function HomePage() { |
11 | | - return ( |
12 | | - <main className="docs-home"> |
13 | | - <header className="home-topbar"> |
14 | | - <Link href="/" className="home-brand"> |
15 | | - <strong>{siteConfig.productName}</strong> |
16 | | - <span>Docs</span> |
17 | | - </Link> |
18 | | - |
19 | | - <nav className="home-topbar-nav" aria-label="Primary"> |
20 | | - <Link href="/docs">文档</Link> |
21 | | - <a href={siteConfig.repoUrl} target="_blank" rel="noreferrer"> |
22 | | - GitHub |
23 | | - </a> |
24 | | - </nav> |
25 | | - </header> |
26 | | - |
27 | | - <section className="home-hero"> |
28 | | - <div className="home-hero-copy motion-rise"> |
29 | | - <p className="section-kicker">Documentation</p> |
30 | | - <h1>面向多 AI 工具的 prompt 与 config sync 文档。</h1> |
31 | | - <p className="home-hero-lead"> |
32 | | - {siteConfig.productName} |
33 | | - {' '} |
34 | | - 以 MDX 维护源内容,通过 Rust-first / NAPI-first pipeline 将 prompts、rules、skills、commands |
35 | | - 与 workspace memory 物化为目标工具原生配置。 |
36 | | - </p> |
37 | | - |
38 | | - <div className="home-actions"> |
39 | | - <Link href="/docs" className="hero-button hero-button-primary"> |
40 | | - 打开文档 |
41 | | - </Link> |
42 | | - <a href={siteConfig.repoUrl} target="_blank" rel="noreferrer" className="hero-button hero-button-secondary"> |
43 | | - 查看 GitHub |
44 | | - </a> |
45 | | - <a href={siteConfig.issueUrl} target="_blank" rel="noreferrer" className="hero-button hero-button-secondary"> |
46 | | - 报告问题 |
47 | | - </a> |
48 | | - </div> |
49 | | - |
50 | | - <ul className="home-proof-strip" aria-label="Core proof points"> |
51 | | - {heroProofPoints.map(point => ( |
52 | | - <li key={point.label} className="proof-pill"> |
53 | | - <span>{point.label}</span> |
54 | | - <strong>{point.value}</strong> |
55 | | - </li> |
56 | | - ))} |
57 | | - </ul> |
58 | | - </div> |
59 | | - </section> |
60 | | - |
61 | | - <section className="home-section"> |
62 | | - <div className="section-heading"> |
63 | | - <p className="section-kicker">Start Here</p> |
64 | | - <h2>从最短路径进入,而不是先读背景叙事</h2> |
65 | | - <p className="section-summary"> |
66 | | - 首页只负责建立能力边界与入口,具体行为、配置和命令都落回文档页。 |
67 | | - </p> |
68 | | - </div> |
69 | | - |
70 | | - <div className="home-link-grid motion-stagger"> |
71 | | - {homeEntryCards.map(link => ( |
72 | | - <Link key={link.href} href={link.href} className="home-link-card"> |
73 | | - <strong>{link.title}</strong> |
74 | | - <p>{link.detail}</p> |
75 | | - <span>Open</span> |
76 | | - </Link> |
77 | | - ))} |
78 | | - </div> |
79 | | - </section> |
80 | | - |
81 | | - <section className="home-section"> |
82 | | - <div className="section-heading"> |
83 | | - <p className="section-kicker">Capabilities</p> |
84 | | - <h2>文档重点覆盖的能力边界</h2> |
85 | | - <p className="section-summary"> |
86 | | - 先明确项目能做什么,再进入具体配置字段、命令表面与实现边界。 |
87 | | - </p> |
88 | | - </div> |
89 | | - |
90 | | - <div className="capability-grid motion-stagger"> |
91 | | - {capabilityCards.map(card => ( |
92 | | - <article key={card.title} className="capability-card"> |
93 | | - <span>{card.label}</span> |
94 | | - <h3>{card.title}</h3> |
95 | | - <p>{card.detail}</p> |
96 | | - </article> |
97 | | - ))} |
98 | | - </div> |
99 | | - </section> |
100 | | - |
101 | | - <section className="home-section"> |
102 | | - <div className="section-heading"> |
103 | | - <p className="section-kicker">Recommended Path</p> |
104 | | - <h2>按这条路线进入,能最快建立正确心智模型</h2> |
105 | | - <p className="section-summary"> |
106 | | - 路线从运行前提开始,经过源文件模型,最后落到 dry-run、同步与边界验证。 |
107 | | - </p> |
108 | | - </div> |
109 | | - |
110 | | - <div className="reading-path-grid motion-stagger"> |
111 | | - {readingPath.map(item => ( |
112 | | - <Link key={item.href} href={item.href} className="reading-path-card"> |
113 | | - <small>{item.step}</small> |
114 | | - <strong>{item.title}</strong> |
115 | | - <p>{item.description}</p> |
116 | | - </Link> |
117 | | - ))} |
118 | | - </div> |
119 | | - </section> |
120 | | - </main> |
121 | | - ) |
| 4 | + return <HomePageContent /> |
122 | 5 | } |
0 commit comments