Skip to content

Commit 3e4796e

Browse files
committed
feat(ui): enhance comparison table layout and update community support information
1 parent 911c278 commit 3e4796e

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

src/components/HomepageFeatures/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ function QuickLinks() {
8686
);
8787
}
8888

89-
// Comparison table section
9089
function ComparisonTable() {
9190
return (
9291
<section className={styles.comparisonSection}>
@@ -99,9 +98,9 @@ function ComparisonTable() {
9998
<table className={styles.comparisonTable}>
10099
<thead>
101100
<tr>
102-
<th>功能</th>
101+
<th className={styles.featureCell}>功能</th>
103102
<th>传统 AI 助手</th>
104-
<th>AutoDev</th>
103+
<th className={styles.advantageCell}>AutoDev</th>
105104
</tr>
106105
</thead>
107106
<tbody>
@@ -178,7 +177,7 @@ function Community() {
178177
const resources = [
179178
{ title: 'GitHub', description: '为我们的仓库加星标,报告问题,并为代码库做出贡献', link: 'https://github.com/username/autodev', icon: <div className={styles.communityIconGithub} /> },
180179
{ title: '研究论文', description: '阅读我们在 arXiv 上的学术论文,了解 AutoDev 背后的研究', link: '', icon: <div className={styles.communityIconPaper} /> },
181-
{ title: 'Discord', description: '加入我们的 Wechat 社区,与其他开发者交流并获取支持', link: '', icon: <div className={styles.communityIconDiscord} /> },
180+
{ title: '微信群', description: '加入我们的 Wechat 社区,与其他开发者交流并获取支持(添加 phodal02 为好友,注明:AutoDev)', link: '', icon: <div className={styles.communityIconDiscord} /> },
182181
];
183182

184183
return (
@@ -222,3 +221,4 @@ export default function HomepageFeatures(): ReactNode {
222221
</>
223222
);
224223
}
224+

src/components/HomepageFeatures/styles.module.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,21 +124,27 @@
124124
.comparisonSection {
125125
padding: 4rem 0;
126126
background-color: var(--ifm-color-emphasis-100);
127+
width: 100%;
127128
}
128129

129130
.tableWrapper {
130131
overflow-x: auto;
132+
width: 100%;
133+
display: flex;
134+
justify-content: center;
131135
}
132136

133137
.comparisonTable {
134138
width: 100%;
135139
border-collapse: collapse;
136140
margin: 0 auto;
137-
max-width: 900px;
141+
display: inline-table;
142+
table-layout: fixed; /* Add fixed layout for better width control */
138143
}
139144

140145
.comparisonTable th,
141146
.comparisonTable td {
147+
width: 35%;
142148
padding: 1rem;
143149
text-align: left;
144150
border-bottom: 1px solid var(--ifm-color-emphasis-200);
@@ -156,6 +162,7 @@
156162
.advantageCell {
157163
color: var(--ifm-color-primary);
158164
font-weight: 500;
165+
width: 40%; /* Set width for AutoDev column */
159166
}
160167

161168
.advantage,

0 commit comments

Comments
 (0)