Skip to content

Commit

Permalink
📝 change home page promote url
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Nov 29, 2019
1 parent b022eaf commit 815d525
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion site/theme/en-US.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
6 changes: 3 additions & 3 deletions site/theme/template/Home/Banner.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion site/theme/zh-CN.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 815d525

Please sign in to comment.