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 2, 2023
1 parent 507f1ff commit 0a2eaba
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 18 deletions.
11 changes: 7 additions & 4 deletions site/components/ProjectCard/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import classNames from 'classnames';
import { useLocale, useIntl } from 'dumi';
import React, { useCallback, useState } from 'react';
import { Row, Col, Divider, Popover } from 'antd';
import { Row, Col, Divider, Popover, ConfigProvider } from 'antd';
import { useChinaMirrorHost } from '@antv/dumi-theme-antv/dist/slots/hooks';
import { ModuleTitle as Title, ActiveIcon } from '../common';
import ANTV_LINKS from '../../data/project-card-popover.json';
Expand Down Expand Up @@ -220,9 +220,12 @@ export function ProjectCard() {
key={title}
span={span}
>
{links ? <Popover arrow={false} content={getContent(newTitle, newSubTitle, img, links)} >
{children}
</Popover> :
{links ?
<ConfigProvider prefixCls="antd5">
<Popover content={getContent(newTitle, newSubTitle, img, links)} >
{children}
</Popover>
</ConfigProvider> :
children}
</Col>
})
Expand Down
36 changes: 22 additions & 14 deletions site/data/link-charts.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
[
{
"title": "统计图表",
"subTitle": "数据驱动,高度易用,可扩展的可视化图形语法",
"image": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*DupxTZqLShkAAAAAAAAAAAAADmJ7AQ/original",
"link": "https://g2.antv.antgroup.com/examples/general/pie/#spider-label",
"antv": "G2",
"color": "#2486FF"
},
{
"title": "统计图表",
"subTitle": "开箱即用的多维可视分析表格",
Expand All @@ -32,12 +24,20 @@
"color": "#2486FF"
},
{
"title": "地图",
"subTitle": "高性能/高渲染质量的地理空间数据可视化框架",
"image": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*JebxTo_rsngAAAAAAAAAAAAADmJ7AQ/original",
"link": "https://l7.antv.antgroup.com/examples/tile/vector/#chinamap",
"antv": "L7",
"color": "#1074FF"
"title": "关系图",
"subTitle": "便捷的关系数据可视化引擎与图分析工具",
"image": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*eXzfTbFrYjMAAAAAAAAAAAAADmJ7AQ/original",
"link": "https://g6-next.antv.antgroup.com/examples/tool/hull/#hull",
"antv": "G6",
"color": "#F58C58"
},
{
"title": "统计图表",
"subTitle": "数据驱动,高度易用,可扩展的可视化图形语法",
"image": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*DupxTZqLShkAAAAAAAAAAAAADmJ7AQ/original",
"link": "https://g2.antv.antgroup.com/examples/general/pie/#spider-label",
"antv": "G2",
"color": "#2486FF"
},
{
"title": "统计图表 (移动端)",
Expand All @@ -47,6 +47,14 @@
"antv": "F2",
"color": "#D580FF"
},
{
"title": "地图",
"subTitle": "高性能/高渲染质量的地理空间数据可视化框架",
"image": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*JebxTo_rsngAAAAAAAAAAAAADmJ7AQ/original",
"link": "https://l7.antv.antgroup.com/examples/tile/vector/#chinamap",
"antv": "L7",
"color": "#1074FF"
},
{
"title": "树形图表 (移动端)",
"subTitle": "一款可以快速、流畅运行于移动设备中的图可视化引擎",
Expand Down

0 comments on commit 0a2eaba

Please sign in to comment.