📝 change home page promote url

This commit is contained in:
afc163 2019-11-30 00:03:16 +08:00
parent b022eaf9c2
commit 815d52558b
No known key found for this signature in database
GPG Key ID: 5F00908D72002306
3 changed files with 5 additions and 5 deletions

View File

@ -50,7 +50,7 @@ module.exports = {
'app.home.getting-started': 'Getting Started',
'app.home.recommend': 'Recommend',
'app.home.recommend.yuque': 'Yuque, our favorite documentation tool',
'app.home.recommend.antv': 'AntV: brand new data visualization solution',
'app.home.recommend.antv': 'G2Plot, the new charting library',
'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,20 @@ const Banner = ({ isMobile }) => {
<FormattedMessage id="app.home.recommend" />
</Divider>
<a
href={`https://antv.vision/${isZhCN ? 'zh' : 'en'}?from=antd`}
href="https://github.com/antvis/g2plot?from=antd"
target="_blank"
rel="noopener noreferrer"
onClick={() => {
if (window.gtag) {
window.gtag('event', '点击', {
event_category: '首页推广',
event_label: `https://antv.vision/${isZhCN ? 'zh' : 'en'}?from=antd`,
event_label: `https://github.com/antvis/g2plot?from=antd`,
});
}
}}
>
<img src="https://antv.vision/icons/icon-512x512.png" alt="AntV logo" />
<FormattedMessage id="app.home.recommend.antv" />
<FormattedMessage id="app.home.recommend.antv.g2plot" />
<Icon type="right" style={{ marginLeft: 6, fontSize: 12, opacity: 0.6 }} />
</a>
</div>

View File

@ -47,7 +47,7 @@ module.exports = {
'app.home.getting-started': '开始使用',
'app.home.recommend': '推荐',
'app.home.recommend.yuque': '语雀,我们都喜欢的文档工具',
'app.home.recommend.antv': 'AntV全新的蚂蚁金服数据可视化解决方案',
'app.home.recommend.antv.g2plot': 'G2Plot全新企业级图表',
'app.home.more': '查看更多',
'app.home.more-mobile-react': 'Ant Design Mobile of React',
'app.home.more-mobile-angular': 'Ant Design Mobile of Angular',