Skip to content

Commit 62bd301

Browse files
committed
refactor(site): optimize site
1 parent d684d07 commit 62bd301

4 files changed

Lines changed: 18 additions & 8 deletions

File tree

packages/site/docusaurus.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { themes as prismThemes } from 'prism-react-renderer';
77
const config: Config = {
88
title: '@antv/infographic',
99
tagline: '新一代信息图可视化引擎 - 让数据叙事更简单、更优雅、更高效',
10-
favicon: 'img/favicon.ico',
10+
favicon: 'img/logo.svg',
1111

1212
// Future flags, see https://docusaurus.io/docs/api/docusaurus-config#future
1313
future: {

packages/site/src/pages/index.module.css

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,18 +118,28 @@
118118
color: white;
119119
border: none;
120120
box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
121+
transition: all 0.3s ease;
121122
}
122123

123124
.buttonBrand:hover {
124-
background: linear-gradient(135deg, #1890ff, #1366d9);
125+
background: linear-gradient(135deg, #40a9ff, #1890ff);
125126
color: white;
126127
transform: translateY(-2px);
127128
box-shadow: 0 8px 24px rgba(24, 144, 255, 0.4);
128129
}
129130

131+
.buttonAlt {
132+
border-color: var(--ifm-color-primary);
133+
color: var(--ifm-color-primary);
134+
transition: all 0.3s ease;
135+
}
136+
130137
.buttonAlt:hover {
138+
background-color: transparent;
139+
border-color: var(--ifm-color-primary-dark);
140+
color: var(--ifm-color-primary-dark);
131141
transform: translateY(-2px);
132-
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
142+
box-shadow: 0 8px 20px rgba(24, 144, 255, 0.15);
133143
}
134144

135145
.heroStats {

packages/site/src/pages/index.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ const stats = [
1111
{ number: '30+', label: '数据项设计' },
1212
{ number: '20+', label: '结构布局' },
1313
{ number: '70+', label: '内置模版' },
14-
{ number: '100%', label: 'TypeScript' },
14+
{ number: '100%', label: '开源免费' },
1515
];
1616

1717
const features = [
1818
{
1919
icon: '🚀',
2020
title: '开箱即用',
21-
details: '30+ 内置组件,15+ 结构布局,几分钟即可创建信息图',
21+
details: '30+ 内置组件,20+ 结构布局,几分钟即可创建信息图',
2222
},
2323
{
2424
icon: '🎨',
@@ -32,9 +32,9 @@ const features = [
3232
details: '数据、结构、样式完全解耦,支持自定义扩展',
3333
},
3434
{
35-
icon: '💎',
36-
title: 'TypeScript',
37-
details: '完整的类型定义和智能提示',
35+
icon: '✍️',
36+
title: '编辑器能力',
37+
details: '支持交互式编辑,所见即所得,提升创作效率(后续推出)',
3838
},
3939
{
4040
icon: '⚡',
-4.19 KB
Binary file not shown.

0 commit comments

Comments
 (0)