Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions .dumi/pages/case/index.en.tsx

This file was deleted.

28 changes: 0 additions & 28 deletions .dumi/pages/case/index.tsx

This file was deleted.

8 changes: 0 additions & 8 deletions .dumi/pages/quick/index.en.tsx

This file was deleted.

28 changes: 0 additions & 28 deletions .dumi/pages/quick/index.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion .dumi/theme/locales/en.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"蚂蚁数据可视化": "AntV",
"让数据栩栩如生": "Liven Data Lively",
"·让AGI栩栩如生": "· Liven AGI Lively",
"蚂蚁集团全新一代数据可视化解决方案": "A new generation of data visualization solution from Ant Group",
"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.",
"立业・利业": "Found business・Help business",
Expand Down
2 changes: 1 addition & 1 deletion .dumi/theme/locales/zh.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"蚂蚁数据可视化": "蚂蚁数据可视化",
"让数据栩栩如生": "让数据栩栩如生",
"·让AGI栩栩如生": "·让AGI栩栩如生",
"蚂蚁集团全新一代数据可视化解决方案": "蚂蚁集团全新一代数据可视化解决方案",
"AntV 是蚂蚁集团全新一代数据可视化解决方案,致力于提供一套简单方便、专业可靠、无限可能的数据可视化最佳实践。": "AntV 是蚂蚁集团全新一代数据可视化解决方案,致力于提供一套简单方便、专业可靠、无限可能的数据可视化最佳实践。",
"立业・利业": "立业・利业",
Expand Down
2 changes: 1 addition & 1 deletion .dumi/theme/slots/Detail/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import SEO from '@antv/dumi-theme-antv/dist/common/SEO';
import SEO from '@antv/dumi-theme-antv/dist/common/CommonHelmet';
import { useIntl, useLocale } from 'dumi';
import { debounce } from 'lodash';
import React, { useEffect, useRef } from 'react';
Expand Down
29 changes: 14 additions & 15 deletions .dumirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default defineConfig({
isAntVSite: true, // 是否是 AntV 的大官网
footerTheme: 'light',
siteUrl: homepage, // 官网地址
githubUrl: 'https://github.com/antvis', // GitHub 地址
githubUrl: 'https://github.com/antvis/antvis.github.io', // GitHub 地址
showSearch: true, // 是否显示搜索框
showGithubCorner: true, // 是否显示头部的 GitHub icon
showAntVProductsCard: true, // 是否显示 AntV 产品汇总的卡片
Expand All @@ -39,20 +39,6 @@ export default defineConfig({
en: 'Design',
},
},
{
slug: 'case',
title: {
zh: '场景案例',
en: 'Show Case',
},
},
{
slug: 'quick',
title: {
zh: '提交 Issue',
en: 'Quick Issue',
},
},
],
ecosystems: [
// 头部的菜单中的「周边生态」
Expand Down Expand Up @@ -145,6 +131,16 @@ export default defineConfig({
en: 'Ant Visualization solution',
},
},
metas: {
title: {
zh: "AntV",
en: "AntV"
},
description: {
zh: "让AGI栩栩如生",
en: "Ant Visualization solution"
}
},
},
alias: {
site: '/site',
Expand All @@ -160,4 +156,7 @@ export default defineConfig({
},
links: [],
scripts: [],
https: {
http2: false
}
});
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,4 @@ _site
# dumi tmp_production
.dumi/tmp
.dumi/tmp-production
.idea
15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,20 @@
"url": "https://github.com/antvis/antvis.github.io/issues"
},
"dependencies": {
"ahooks": "^3.9.5",
"@tanstack/react-query": "^5.90.2",
"@ant-design/icons": "^4.8.3",
"@antv/dumi-theme-antv": "^0.5.7",
"@antv/dumi-theme-antv": "beta",
"@antv/g2plot": "^2.3.1",
"@antv/g6": "3.3.7",
"@antv/util": "^3.3.1",
"antd": "5.10.2",
"chroma-js": "^2.1.0",
"classnames": "^2.2.6",
"d3": "^7.8.5",
"dumi": "~2.2.1",
"dumi": "~2.4.21",
"gh-pages": "^3.1.0",
"husky": "^8.0.2",
"lodash": "^4.17.20",
"new-github-issue-url": "^1.0.0",
"prettier": "^2.0.0",
"pretty-quick": "^3.1.3",
"react": "^18.3.1",
Expand All @@ -40,12 +40,13 @@
},
"devDependencies": {
"@types/classnames": "^2.2.9",
"@types/d3": "^7.4.2",
"@types/lodash": "^4.14.189",
"@types/parse-github-url": "^1.0.0",
"@types/react": "^16.9.5",
"@types/react": "^18.3.26",
"@types/react-dom": "^18.3.7",
"@types/react-github-button": "^0.1.0",
"@types/react-helmet": "^6.0.0"
"@types/react-helmet": "^6.0.0",
"typescript": "latest"
},
"license": "MIT",
"scripts": {
Expand Down
20 changes: 17 additions & 3 deletions site/components/Banner/Banner.module.less
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
}

.header {
height: 670px;
height: 1130px;
position: relative;
font-family: PingFangSC;
}
Expand All @@ -127,7 +127,7 @@
font-size: 64px;
color: #000;
text-align: center;
margin-top: 138px;
margin-top: 108px;
font-family: AlibabaPuHuiTiRHeavy;

> span {
Expand Down Expand Up @@ -218,7 +218,7 @@
z-index: 10;
width: 100%;
position: absolute;
top: 506px;
top: 966px;

.message {
&:extend(.commonFlexConfig);
Expand Down Expand Up @@ -299,3 +299,17 @@
background-position-y: -100px, -80px, -60px, -40px, -20px, 0px;
}
}

div.listContainer {
position: absolute;
left: 112px;
right: 112px;
width: calc(100vw - 224px);
min-width: 760px;

@media (max-width: 1023px) {
left: 24px;
right: 24px;
width: calc(100vw - 48px);
}
}
35 changes: 20 additions & 15 deletions site/components/Banner/Banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { ActiveIcon } from '../common';
import { ANCHORNAME } from '../ProjectCard';

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

export default () => {
const [message, setMessage] = useState([]);
Expand Down Expand Up @@ -64,33 +65,37 @@ export default () => {
<div className={styles.top}>
<div className={styles.mainTitle}>
<span>AntV</span>
{useT('·让数据栩栩如生')}
{useT('·让AGI栩栩如生')}
</div>
<div className={styles.subTitle}>
{useT(
'蚂蚁企业级数据可视化解决方案,让人们在数据世界里获得视觉化思考能力',
)}
</div>
</div>
<div className={styles.buttons}>
<div className={styles.start} onClick={scrollToAnchor}>
<div className={styles.startIcon} />
{useT('开始使用')}
</div>
<ActiveIcon
href="/specification/principles/basic"
className={styles.design}
img="https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*_xFsQbWE_AYAAAAAAAAAAAAADmJ7AQ/original"
activeImg="https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*A9VnTpferioAAAAAAAAAAAAADmJ7AQ/original"
text={useT('设计语言')}
/>
</div>
<HomeDialog className={styles.top}
promptTextareaStyle={{margin: "0 auto", width: "40vw", minWidth: "300px"}}
recommendCaseClassName={styles.listContainer}
style={{margin: "270px auto", width: "unset"}}/>
{/*<div className={styles.buttons}>*/}
{/* <div className={styles.start} onClick={scrollToAnchor}>*/}
{/* <div className={styles.startIcon} />*/}
{/* {useT('开始使用')}*/}
{/* </div>*/}
{/* <ActiveIcon*/}
{/* href="/specification/principles/basic"*/}
{/* className={styles.design}*/}
{/* img="https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*_xFsQbWE_AYAAAAAAAAAAAAADmJ7AQ/original"*/}
{/* activeImg="https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*A9VnTpferioAAAAAAAAAAAAADmJ7AQ/original"*/}
{/* text={useT('设计语言')}*/}
{/* />*/}
{/*</div>*/}
<div className={styles.bottom}>
{message.map(({ title, subTitle, img, link }) => {
return (
<a
className={styles.message}
key={title}
key={`${link}_${title[language]}_${subTitle[language]}`}
target="_blank"
href={link}
>
Expand Down
2 changes: 1 addition & 1 deletion site/components/Products/Products.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ const Products = () => {
};

const getDots = () => {
let dots: Array<Object> = [];
let dots: Array<React.ReactNode> = [];
const length = products.length;
const cols = 3;
const rows = Math.ceil(length / 2) + 1;
Expand Down
Loading