antv-l7/site/pages/index.zh.tsx

252 lines
7.5 KiB
TypeScript
Raw Normal View History

2019-11-21 12:04:58 +08:00
import Banner from '@antv/gatsby-theme-antv/site/components/Banner';
import Cases from '@antv/gatsby-theme-antv/site/components/Cases';
import Companies from '@antv/gatsby-theme-antv/site/components/Companies';
import Features from '@antv/gatsby-theme-antv/site/components/Features';
import SEO from '@antv/gatsby-theme-antv/site/components/Seo';
import React from 'react';
import { useTranslation } from 'react-i18next';
import { Dipper } from '../components/Dipper';
import { DipperMap } from '../components/DipperMap';
2022-01-10 15:45:09 +08:00
import { L7React } from '../components/L7React'
import { L7Plot } from '../components/L7Plot'
import { L7Draw } from '../components/L7Draw'
2019-11-21 20:15:06 +08:00
import '../css/home.css';
2019-11-21 12:04:58 +08:00
2019-11-21 12:04:58 +08:00
const IndexPage = () => {
const { t, i18n } = useTranslation();
const L7Case = [
{
logo:
'https://antv-2018.alipay.com/assets/image/icon/l7.svg',
title: t('指挥分配场景'),
description: t(
'区域化网格化数据管理指挥分配场景',
),
link: `https://antv.vision/Dipper/~demos/docs-task`,
image:
'https://gw.alipayobjects.com/mdn/rms_08cc33/afts/img/A*scJBTq8PW7kAAAAAAAAAAAAAARQnAQ',
},
{
logo:
'https://antv-2018.alipay.com/assets/image/icon/l7.svg',
title: t('地图数据分析'),
description: t(
'区域化网格化数据分析场景',
),
link: `https://antv.vision/Dipper/~demos/docs-analysis`,
image:
'https://gw.alipayobjects.com/mdn/rms_08cc33/afts/img/A*OnGVRb_qWxcAAAAAAAAAAAAAARQnAQ',
},
{
logo:
'https://gw.alipayobjects.com/zos/bmw-prod/222865fc-15e9-44b9-b726-444e1512d937.ico',
title: t('DipperMap 地理分析工具'),
description: t(
'地图可视化配置分析类场景',
),
link: `/${i18n.language}/examples/gallery/basic`,
image:
'https://gw.alipayobjects.com/mdn/rms_e7e1c6/afts/img/A*MPWKQqh54vwAAAAAAAAAAAAAARQnAQ',
},
];
const companies = [{
name: '阿里云',
img:
'https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*V_xMRIvw2iwAAAAAAAAAAABkARQnAQ',
},
{
name: '支付宝',
img:
'https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*lYDrRZvcvD4AAAAAAAAAAABkARQnAQ',
},
{
name: '天猫',
img:
'https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*BQrxRK6oemMAAAAAAAAAAABkARQnAQ',
},
{
name: '淘宝网',
img:
'https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*1l8-TqUr7UcAAAAAAAAAAABkARQnAQ',
},
{
name: '网商银行',
img:
'https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*ZAKFQJ5Bz4MAAAAAAAAAAABkARQnAQ',
},
{
name: '盒马',
img:
'https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*ePJMQZCb8vkAAAAAAAAAAABkARQnAQ',
},
{
name: 'yunos',
img:
'https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*_js7SaNosUwAAAAAAAAAAABkARQnAQ',
},
{
name: '菜鸟',
img:
'https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*TgV-RZDODJIAAAAAAAAAAABkARQnAQ',
}
];
2019-11-21 12:04:58 +08:00
const bannerButtons = [
2019-11-21 12:04:58 +08:00
{
text: t('图表示例'),
link: `/${i18n.language}/examples/gallery`,
type: 'primary',
2019-11-21 12:04:58 +08:00
},
{
text: t('开始使用'),
link: `/${i18n.language}/docs/api/l7`,
2019-11-21 12:04:58 +08:00
},
];
const L7Features = [
{
icon:
'https://gw.alipayobjects.com/zos/basement_prod/ca2168d1-ae50-4929-8738-c6df62231de3.svg',
title: t('架构灵活且自由'),
description: t('支持地图底图,渲染引擎,图层自由定制、扩展,组合'),
},
{
2021-12-03 17:21:37 +08:00
icon:
'https://gw.alipayobjects.com/zos/basement_prod/0ccf4dcb-1bac-4f4e-8d8d-f1031c77c9c8.svg',
title: t('业务专业且通用'),
description: t(
'以图形符号学地理设计体系理论基础,易用、易理解、专业、专注',
),
},
{
2021-12-03 17:21:37 +08:00
icon:
'https://gw.alipayobjects.com/zos/basement_prod/fd232581-14b3-45ec-a85c-fb349c51b376.svg',
title: t('视觉酷炫且动感'),
description: t('支持海量数据2D、3D动态可交互高性能渲染'),
},
];
const notifications = [{
type: t('DipperMap'),
title: t('地理可视化工具'),
date: '2021.11.22',
link: 'https://dippermap.alipay.com/',
},
{
type: t('L7 一站式地理分析应用解决方案'),
title: t('L7Mini、Dipper、DipperMap'),
date: '2021.11.22',
link: 'https://www.yuque.com/antv/blog/xqslop',
},
]
const dipper = [
2019-11-21 20:15:06 +08:00
{
title: t('配置化'),
image: 'https://gw.alipayobjects.com/zos/bmw-prod/a8d32053-ef9d-485e-ae13-2b49535e6f4f.svg',
link: `/${i18n.language}/view`
2019-11-21 20:15:06 +08:00
},
{
title: t('组件化'),
image: 'https://gw.alipayobjects.com/zos/bmw-prod/4235cc53-ef5f-4a47-a33c-1623df19e4b7.svg',
link: `/${i18n.language}/task`
2019-11-21 20:15:06 +08:00
},
{
title: t('自由定制'),
image: 'https://gw.alipayobjects.com/zos/bmw-prod/29cbd68c-86ac-440c-a38d-792dbd8aea61.svg',
link: 'https://dippermap.alipay.com'
}
2019-11-21 17:52:18 +08:00
];
const dippermap = [
2019-11-21 12:04:58 +08:00
{
img: 'https://gw.alipayobjects.com/mdn/rms_e7e1c6/afts/img/A*6S8hQJAUB2oAAAAAAAAAAAAAARQnAQ',
alt: 'heat',
desc: '3D热力图',
2019-11-21 12:04:58 +08:00
},
{
img: 'https://gw.alipayobjects.com/mdn/rms_e7e1c6/afts/img/A*R8juSLJc86wAAAAAAAAAAAAAARQnAQ',
alt: '3DARC',
desc: '3D曲线',
2019-11-21 12:04:58 +08:00
},
2020-01-31 00:20:32 +08:00
{
img: 'https://gw.alipayobjects.com/mdn/rms_e7e1c6/afts/img/A*MDmtT6lRS6EAAAAAAAAAAAAAARQnAQ',
alt: 'trip',
desc: '路径图',
2020-01-31 00:20:32 +08:00
},
2019-11-21 12:04:58 +08:00
{
img: 'https://gw.alipayobjects.com/mdn/rms_e7e1c6/afts/img/A*lRdLQotjkKsAAAAAAAAAAAAAARQnAQ',
alt: 'point',
desc: '3D柱图',
2020-01-08 22:56:32 +08:00
},
2019-11-21 12:04:58 +08:00
{
img: 'https://gw.alipayobjects.com/mdn/rms_e7e1c6/afts/img/A*W_DMQ5DVmIsAAAAAAAAAAAAAARQnAQ',
alt: 'polygon',
desc: '中国3D地图',
2019-11-21 12:04:58 +08:00
},
{
img: 'https://gw.alipayobjects.com/mdn/rms_e7e1c6/afts/img/A*InJXT6G-l6UAAAAAAAAAAAAAARQnAQ',
alt: 'hex',
desc: '六边形图',
2019-11-21 20:15:06 +08:00
},
2019-11-21 12:04:58 +08:00
];
2022-01-10 15:45:09 +08:00
const draw = [
{
img: 'https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*jQKyTI4-hjAAAAAAAAAAAAAAARQnAQ',
alt: 'draw circle',
desc: '绘制圆形',
},
{
img: 'https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*PPZ2RJy6XxEAAAAAAAAAAAAAARQnAQ',
alt: 'draw line',
desc: '绘制折线',
},
{
img: 'https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*f64USbxQhiwAAAAAAAAAAAAAARQnAQ',
alt: 'draw polygon',
desc: '绘制几何图形',
}
];
2019-11-21 12:04:58 +08:00
return (
<>
<SEO title={t('蚂蚁地理空间数据可视化')} lang={i18n.language} />
<Banner
coverImage={
<img
2019-11-21 20:15:06 +08:00
width="100%"
2019-11-21 23:27:01 +08:00
className="Notification-module--number--31-3Z"
src="https://gw.alipayobjects.com/mdn/antv_site/afts/img/A*cCI7RaJs46AAAAAAAAAAAABkARQnAQ"
2019-11-21 12:04:58 +08:00
/>
}
title={t('L7 空间数据可视分析')}
2019-11-21 12:04:58 +08:00
description={t(
'蚂蚁金服 AntV 数据可视化团队推出的基于 WebGL 的开源大规模地理空间数据可视分析引擎。',
2019-11-21 12:04:58 +08:00
)}
buttons={bannerButtons}
2020-01-08 22:56:32 +08:00
notifications={notifications}
2019-11-21 12:04:58 +08:00
className="banner"
2022-01-10 15:45:09 +08:00
// @ts-ignore
2019-11-21 12:04:58 +08:00
githubStarLink="https://github.com/antvis/L7/stargazers"
/>
<Features features={L7Features} style={{ width: '100%' }} />
2022-01-10 15:45:09 +08:00
<Dipper dipper={dipper} />
2022-01-10 15:45:09 +08:00
<DipperMap dippermap={dippermap} />
2022-01-10 15:45:09 +08:00
<Cases cases={L7Case} />
<L7React />
2022-01-14 14:34:05 +08:00
<L7Plot/>
2022-01-10 15:45:09 +08:00
<L7Draw draw={draw}/>
2019-11-21 20:15:06 +08:00
<Companies title={t('感谢信赖')} companies={companies} />
2019-11-21 12:04:58 +08:00
</>
);
2019-11-14 11:50:12 +08:00
};
2019-11-21 12:04:58 +08:00
2019-11-14 11:50:12 +08:00
export default IndexPage;