docs: Update home for antd next link

This commit is contained in:
zombiej 2020-01-03 21:56:38 +08:00
parent 44c9bcafc9
commit 8dd91ca648
3 changed files with 9 additions and 4 deletions

View File

@ -54,6 +54,7 @@ module.exports = {
'app.home.recommend': 'Recommend',
'app.home.recommend.yuque': 'Yuque, our favorite documentation tool',
'app.home.recommend.antv.g2plot': 'G2Plot, the new charting library',
'app.home.recommend.antd.next': 'Ant Design 4.0: Creating happy work',
'app.home.more': 'Learn more',
'app.home.more-mobile-react': 'Ant Design Mobile of React',
'app.home.more-mobile-angular': 'Ant Design Mobile of Angular',

View File

@ -97,20 +97,23 @@ const Banner = ({ isMobile }) => {
<FormattedMessage id="app.home.recommend" />
</Divider>
<a
href="https://github.com/antvis/G2Plot?from=antd"
href="https://next.ant.design/"
target="_blank"
rel="noopener noreferrer"
onClick={() => {
if (window.gtag) {
window.gtag('event', '点击', {
event_category: '首页推广',
event_label: `https://github.com/antvis/G2Plot?from=antd`,
event_label: `https://next.ant.design/?from=antd`,
});
}
}}
>
<img src="https://antv.vision/icons/icon-512x512.png" alt="AntV logo" />
<FormattedMessage id="app.home.recommend.antv.g2plot" />
<img
src="https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg"
alt="antd logo"
/>
<FormattedMessage id="app.home.recommend.antd.next" />
<Icon type="right" style={{ marginLeft: 6, fontSize: 12, opacity: 0.6 }} />
</a>
</div>

View File

@ -51,6 +51,7 @@ module.exports = {
'app.home.recommend': '推荐',
'app.home.recommend.yuque': '语雀,我们都喜欢的文档工具',
'app.home.recommend.antv.g2plot': 'G2Plot全新企业级图表',
'app.home.recommend.antd.next': 'Ant Design 4.0:创造快乐工作',
'app.home.more': '查看更多',
'app.home.more-mobile-react': 'Ant Design Mobile of React',
'app.home.more-mobile-angular': 'Ant Design Mobile of Angular',