From 6517e9e057810074ea95c63d4403c0e3cbd85d3d Mon Sep 17 00:00:00 2001 From: ai-qing-hai Date: Wed, 15 Nov 2023 14:30:59 +0800 Subject: [PATCH] feat(detail): update Antv home update dumi-theme-antv --- .dumi/theme/locales/en.json | 3 ++- .dumi/theme/locales/zh.json | 3 ++- package.json | 2 +- site/components/Banner/Banner.module.less | 1 + site/components/Banner/Banner.tsx | 4 ++-- site/data/complex-charts.json | 6 +++--- 6 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.dumi/theme/locales/en.json b/.dumi/theme/locales/en.json index a51a95bd..34b6beb9 100644 --- a/.dumi/theme/locales/en.json +++ b/.dumi/theme/locales/en.json @@ -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" } \ No newline at end of file diff --git a/.dumi/theme/locales/zh.json b/.dumi/theme/locales/zh.json index b63719da..3f209a0f 100644 --- a/.dumi/theme/locales/zh.json +++ b/.dumi/theme/locales/zh.json @@ -318,5 +318,6 @@ "主要用于描述分类数据,如苹果、香蕉、梨,常用一个颜色代表一个值以区分不同类型,取色时色相分布均衡,相邻颜色之间明暗需考虑差异性,常用于饼图的不同分类、填充地图中的不同国家、关系图中的不同角色等。": "主要用于描述分类数据,如苹果、香蕉、梨,常用一个颜色代表一个值以区分不同类型,取色时色相分布均衡,相邻颜色之间明暗需考虑差异性,常用于饼图的不同分类、填充地图中的不同国家、关系图中的不同角色等。", "单色顺序色板,均基于分类色板生长而来,一般使用同一色相,通过明度或饱和度的渐变,常用来表示同一事物中的数值大小或梯度变化,如排行榜等级变化、一个国家或地区的新增人口数对比、风险等级变化等。": "单色顺序色板,均基于分类色板生长而来,一般使用同一色相,通过明度或饱和度的渐变,常用来表示同一事物中的数值大小或梯度变化,如排行榜等级变化、一个国家或地区的新增人口数对比、风险等级变化等。", "邻近顺序色板,均基于分类色板生长而来,为加大辨识度也可使用邻近色相,通过明度或饱和度的渐变,常用来表示同一事物中的数值大小或梯度变化,如排行榜等级变化、一个国家或地区的新增人口数对比、风险等级变化等。": "邻近顺序色板,均基于分类色板生长而来,为加大辨识度也可使用邻近色相,通过明度或饱和度的渐变,常用来表示同一事物中的数值大小或梯度变化,如排行榜等级变化、一个国家或地区的新增人口数对比、风险等级变化等。", - "点再到正向值的连续变化区间,显示相对立的两个值的大小关系,常用于气温的冷热、海拔高低、股票涨跌等。": "点再到正向值的连续变化区间,显示相对立的两个值的大小关系,常用于气温的冷热、海拔高低、股票涨跌等。" + "点再到正向值的连续变化区间,显示相对立的两个值的大小关系,常用于气温的冷热、海拔高低、股票涨跌等。": "点再到正向值的连续变化区间,显示相对立的两个值的大小关系,常用于气温的冷热、海拔高低、股票涨跌等。", + "蚂蚁企业级数据可视化解决方案,让用户轻松看数收获工作意义": "蚂蚁企业级数据可视化解决方案,让用户轻松看数收获工作意义" } \ No newline at end of file diff --git a/package.json b/package.json index 4d214e3f..9a933a84 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/site/components/Banner/Banner.module.less b/site/components/Banner/Banner.module.less index 719ed7c6..f7da26d0 100644 --- a/site/components/Banner/Banner.module.less +++ b/site/components/Banner/Banner.module.less @@ -136,6 +136,7 @@ .design { font-size: 18px; background-color: #FFFFFF; + border: 1px solid #E8E8E8; &:hover { color: #691EFF; diff --git a/site/components/Banner/Banner.tsx b/site/components/Banner/Banner.tsx index 5eb26ddd..8cd2dfd5 100644 --- a/site/components/Banner/Banner.tsx +++ b/site/components/Banner/Banner.tsx @@ -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 ( @@ -39,7 +39,7 @@ export default () => {
AntV{useT("·让数据栩栩如生")}
-
{useT("让普通应用低成本享受 Serverless 体验,帮助企业降本增效!")}
+
{useT("蚂蚁企业级数据可视化解决方案,让用户轻松看数收获工作意义")}
diff --git a/site/data/complex-charts.json b/site/data/complex-charts.json index 9b25ba46..6fcdd9c7 100644 --- a/site/data/complex-charts.json +++ b/site/data/complex-charts.json @@ -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" }