Skip to content

Commit

Permalink
feat(detail): update Antv home update dumi-theme-antv
Browse files Browse the repository at this point in the history
  • Loading branch information
ai-qing-hai committed Nov 15, 2023
1 parent 15a7eec commit 6517e9e
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .dumi/theme/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -326,5 +326,6 @@
"主要用于描述分类数据,如苹果、香蕉、梨,常用一个颜色代表一个值以区分不同类型,取色时色相分布均衡,相邻颜色之间明暗需考虑差异性,常用于饼图的不同分类、填充地图中的不同国家、关系图中的不同角色等。": "It is mainly used to describe classified data, such as apples, bananas, pears, usually a color represents a value to distinguish different types, the color distribution is balanced, the difference between adjacent colors should be considered between the light and dark, often used for different pie chart classification, filling different countries in the map, different roles in the relationship chart, etc.",
"单色顺序色板,均基于分类色板生长而来,一般使用同一色相,通过明度或饱和度的渐变,常用来表示同一事物中的数值大小或梯度变化,如排行榜等级变化、一个国家或地区的新增人口数对比、风险等级变化等。": "Monochromatic sequential color palette, all based on the growth of classification swatches, generally use the same hue, through the gradual change of brightness or saturation, commonly used to represent the numerical size or gradient change in the same thing, such as ranking changes, comparison of the number of new people in a country or region, risk level changes, etc.",
"邻近顺序色板,均基于分类色板生长而来,为加大辨识度也可使用邻近色相,通过明度或饱和度的渐变,常用来表示同一事物中的数值大小或梯度变化,如排行榜等级变化、一个国家或地区的新增人口数对比、风险等级变化等。": "Adjacent sequential color palette, all based on the growth of the classification color palette, in order to increase the recognition can also use adjacent colors, through the gradual change of brightness or saturation, commonly used to represent the value size or gradient change in the same thing, such as ranking change, comparison of the number of new population in a country or region, risk level change.",
"点再到正向值的连续变化区间,显示相对立的两个值的大小关系,常用于气温的冷热、海拔高低、股票涨跌等。": "The continuous change interval from the point to the positive value shows the size relationship between the two opposite values, which is often used for the cold and hot temperature, altitude, stock rise and fall, etc."
"点再到正向值的连续变化区间,显示相对立的两个值的大小关系,常用于气温的冷热、海拔高低、股票涨跌等。": "The continuous change interval from the point to the positive value shows the size relationship between the two opposite values, which is often used for the cold and hot temperature, altitude, stock rise and fall, etc.",
"蚂蚁企业级数据可视化解决方案,让用户轻松看数收获工作意义": "Ant enterprise data visualization solution, so that users can easily see the number of harvest work significance"
}
3 changes: 2 additions & 1 deletion .dumi/theme/locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -318,5 +318,6 @@
"主要用于描述分类数据,如苹果、香蕉、梨,常用一个颜色代表一个值以区分不同类型,取色时色相分布均衡,相邻颜色之间明暗需考虑差异性,常用于饼图的不同分类、填充地图中的不同国家、关系图中的不同角色等。": "主要用于描述分类数据,如苹果、香蕉、梨,常用一个颜色代表一个值以区分不同类型,取色时色相分布均衡,相邻颜色之间明暗需考虑差异性,常用于饼图的不同分类、填充地图中的不同国家、关系图中的不同角色等。",
"单色顺序色板,均基于分类色板生长而来,一般使用同一色相,通过明度或饱和度的渐变,常用来表示同一事物中的数值大小或梯度变化,如排行榜等级变化、一个国家或地区的新增人口数对比、风险等级变化等。": "单色顺序色板,均基于分类色板生长而来,一般使用同一色相,通过明度或饱和度的渐变,常用来表示同一事物中的数值大小或梯度变化,如排行榜等级变化、一个国家或地区的新增人口数对比、风险等级变化等。",
"邻近顺序色板,均基于分类色板生长而来,为加大辨识度也可使用邻近色相,通过明度或饱和度的渐变,常用来表示同一事物中的数值大小或梯度变化,如排行榜等级变化、一个国家或地区的新增人口数对比、风险等级变化等。": "邻近顺序色板,均基于分类色板生长而来,为加大辨识度也可使用邻近色相,通过明度或饱和度的渐变,常用来表示同一事物中的数值大小或梯度变化,如排行榜等级变化、一个国家或地区的新增人口数对比、风险等级变化等。",
"点再到正向值的连续变化区间,显示相对立的两个值的大小关系,常用于气温的冷热、海拔高低、股票涨跌等。": "点再到正向值的连续变化区间,显示相对立的两个值的大小关系,常用于气温的冷热、海拔高低、股票涨跌等。"
"点再到正向值的连续变化区间,显示相对立的两个值的大小关系,常用于气温的冷热、海拔高低、股票涨跌等。": "点再到正向值的连续变化区间,显示相对立的两个值的大小关系,常用于气温的冷热、海拔高低、股票涨跌等。",
"蚂蚁企业级数据可视化解决方案,让用户轻松看数收获工作意义": "蚂蚁企业级数据可视化解决方案,让用户轻松看数收获工作意义"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
"dependencies": {
"@ant-design/icons": "^4.7.0",
"@antv/dumi-theme-antv": "^0.3.20-beta.1",
"@antv/dumi-theme-antv": "0.3.20-beta.1",
"@antv/g2plot": "^2.3.1",
"@antv/g6": "3.3.7",
"@antv/knowledge": "^0.1.3-alpha.17",
Expand Down
1 change: 1 addition & 0 deletions site/components/Banner/Banner.module.less
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@
.design {
font-size: 18px;
background-color: #FFFFFF;
border: 1px solid #E8E8E8;

&:hover {
color: #691EFF;
Expand Down
4 changes: 2 additions & 2 deletions site/components/Banner/Banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default () => {
// 跳转到 丰富图表,选用自如
const scrollToAnchor = () => {
const anchorElement = document.getElementById(ANCHORNAME);
if (anchorElement) { anchorElement.scrollIntoView({ block: 'start', behavior: 'auto' }); }
if (anchorElement) { anchorElement.scrollIntoView({ block: 'start', behavior: 'smooth' }); }
}

return (
Expand All @@ -39,7 +39,7 @@ export default () => {
<div className={styles.header}>
<div className={styles.top}>
<div className={styles.mainTitle}><span>AntV</span>{useT("·让数据栩栩如生")}</div>
<div className={styles.subTitle}>{useT("让普通应用低成本享受 Serverless 体验,帮助企业降本增效!")}</div>
<div className={styles.subTitle}>{useT("蚂蚁企业级数据可视化解决方案,让用户轻松看数收获工作意义")}</div>
</div>
<div className={styles.buttons}>
<div className={styles.start} onClick={scrollToAnchor} >
Expand Down
6 changes: 3 additions & 3 deletions site/data/complex-charts.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
{
"text": "超强性能",
"video": "https://gw.alipayobjects.com/v/huamei_qa8qxu/afts/video/l9viS4v0-fgAAAAAAAAAAAAAK4eUAQBr",
"link": "https://g6-next.antv.antgroup.com/zh/examples/feature/features/#rendererSwitch",
"link": "https://g6-next.antv.antgroup.com/examples/feature/features/#rendererSwitch",
"img": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*EZ7OTLICg8MAAAAAAAAAAAAADmJ7AQ/original",
"activeImg": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*2_soSbk9R-gAAAAAAAAAAAAADmJ7AQ/original"
},
{
"text": "叙事动画",
"video": "https://gw.alipayobjects.com/v/huamei_qa8qxu/afts/video/6aeMQqQag_4AAAAAAAAAAAAAK4eUAQBr",
"link": "https://g2.antv.antgroup.com/examples/storytelling/storytelling/#facet-keyframe",
"video": "https://mass-office.alipay.com/huamei_koqzbu/afts/file/5ZkPSY3Jbl0AAAAAAAAAABAADnV5AQBr",
"link": "https://g2.antv.antgroup.com/examples/storytelling/storytelling/#stocks-keyframe",
"img": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*yrlSTZeONjUAAAAAAAAAAAAADmJ7AQ/original",
"activeImg": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*HG6pSovStWgAAAAAAAAAAAAADmJ7AQ/original"
}
Expand Down

0 comments on commit 6517e9e

Please sign in to comment.