Skip to content

Commit 115bb15

Browse files
committed
feat: 首页UI基本完成
1 parent 828184e commit 115bb15

File tree

6 files changed

+39
-21
lines changed

6 files changed

+39
-21
lines changed

.dumi/theme/locales/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"蚂蚁数据可视化": "AntV",
3-
"让数据栩栩如生": "Liven Data Lively",
3+
"·让AGI栩栩如生": "· Liven AGI Lively",
44
"蚂蚁集团全新一代数据可视化解决方案": "A new generation of data visualization solution from Ant Group",
55
"AntV 是蚂蚁集团全新一代数据可视化解决方案,致力于提供一套简单方便、专业可靠、无限可能的数据可视化最佳实践。": "AntV is a new generation of data visualization solution from Ant Group. We provide best practices of data visualization with simplicity, convenience, profession, reliability, and infinite possibilities.",
66
"立业・利业": "Found business・Help business",

.dumi/theme/locales/zh.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"蚂蚁数据可视化": "蚂蚁数据可视化",
3-
"让数据栩栩如生": "让数据栩栩如生",
3+
"·让AGI栩栩如生": "·让AGI栩栩如生",
44
"蚂蚁集团全新一代数据可视化解决方案": "蚂蚁集团全新一代数据可视化解决方案",
55
"AntV 是蚂蚁集团全新一代数据可视化解决方案,致力于提供一套简单方便、专业可靠、无限可能的数据可视化最佳实践。": "AntV 是蚂蚁集团全新一代数据可视化解决方案,致力于提供一套简单方便、专业可靠、无限可能的数据可视化最佳实践。",
66
"立业・利业": "立业・利业",

.dumirc.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,15 @@ export default defineConfig({
3131
apiKey: '9d1cd586972bb492b7b41b13a949ef30',
3232
indexName: 'antv_g6',
3333
},
34-
navs: [],
34+
navs: [
35+
{
36+
slug: 'docs/specification/principles/basic',
37+
title: {
38+
zh: '设计语言',
39+
en: 'Design',
40+
},
41+
},
42+
],
3543
ecosystems: [
3644
// 头部的菜单中的「周边生态」
3745
],

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
"url": "https://github.com/antvis/antvis.github.io/issues"
1919
},
2020
"dependencies": {
21+
"ahooks": "^3.9.5",
22+
"@tanstack/react-query": "^5.90.2",
2123
"@ant-design/icons": "^4.8.3",
2224
"@antv/dumi-theme-antv": "0.7.9",
2325
"@antv/g2plot": "^2.3.1",

site/components/Banner/Banner.module.less

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
}
109109

110110
.header {
111-
height: 670px;
111+
height: 1130px;
112112
position: relative;
113113
font-family: PingFangSC;
114114
}
@@ -127,7 +127,7 @@
127127
font-size: 64px;
128128
color: #000;
129129
text-align: center;
130-
margin-top: 138px;
130+
margin-top: 108px;
131131
font-family: AlibabaPuHuiTiRHeavy;
132132

133133
> span {
@@ -218,7 +218,7 @@
218218
z-index: 10;
219219
width: 100%;
220220
position: absolute;
221-
top: 506px;
221+
top: 966px;
222222

223223
.message {
224224
&:extend(.commonFlexConfig);
@@ -299,3 +299,7 @@
299299
background-position-y: -100px, -80px, -60px, -40px, -20px, 0px;
300300
}
301301
}
302+
303+
//:root {
304+
// --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji' !important;
305+
//}

site/components/Banner/Banner.tsx

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { ActiveIcon } from '../common';
44
import { ANCHORNAME } from '../ProjectCard';
55

66
import styles from './Banner.module.less';
7+
import { HomeDialog } from '@antv/dumi-theme-antv/dist/components/AI/HomeDialog';
78

89
export default () => {
910
const [message, setMessage] = useState([]);
@@ -64,33 +65,36 @@ export default () => {
6465
<div className={styles.top}>
6566
<div className={styles.mainTitle}>
6667
<span>AntV</span>
67-
{useT(让数据栩栩如生')}
68+
{useT(让AGI栩栩如生')}
6869
</div>
6970
<div className={styles.subTitle}>
7071
{useT(
7172
'蚂蚁企业级数据可视化解决方案,让人们在数据世界里获得视觉化思考能力',
7273
)}
7374
</div>
7475
</div>
75-
<div className={styles.buttons}>
76-
<div className={styles.start} onClick={scrollToAnchor}>
77-
<div className={styles.startIcon} />
78-
{useT('开始使用')}
79-
</div>
80-
<ActiveIcon
81-
href="/specification/principles/basic"
82-
className={styles.design}
83-
img="https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*_xFsQbWE_AYAAAAAAAAAAAAADmJ7AQ/original"
84-
activeImg="https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*A9VnTpferioAAAAAAAAAAAAADmJ7AQ/original"
85-
text={useT('设计语言')}
86-
/>
87-
</div>
76+
<HomeDialog className={styles.top}
77+
promptTextareaStyle={{margin: "0 auto", width: "760px"}}
78+
style={{margin: "270px auto", width: "unset"}}/>
79+
{/*<div className={styles.buttons}>*/}
80+
{/* <div className={styles.start} onClick={scrollToAnchor}>*/}
81+
{/* <div className={styles.startIcon} />*/}
82+
{/* {useT('开始使用')}*/}
83+
{/* </div>*/}
84+
{/* <ActiveIcon*/}
85+
{/* href="/specification/principles/basic"*/}
86+
{/* className={styles.design}*/}
87+
{/* img="https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*_xFsQbWE_AYAAAAAAAAAAAAADmJ7AQ/original"*/}
88+
{/* activeImg="https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*A9VnTpferioAAAAAAAAAAAAADmJ7AQ/original"*/}
89+
{/* text={useT('设计语言')}*/}
90+
{/* />*/}
91+
{/*</div>*/}
8892
<div className={styles.bottom}>
8993
{message.map(({ title, subTitle, img, link }) => {
9094
return (
9195
<a
9296
className={styles.message}
93-
key={title}
97+
key={JSON.stringify(title)}
9498
target="_blank"
9599
href={link}
96100
>

0 commit comments

Comments
 (0)