Browse Source

site: 📣 promote yuque activity

pull/20717/head
afc163 5 years ago
parent
commit
e5dd231aaa
  1. 10
      site/theme/template/Home/Banner.jsx
  2. 2
      site/theme/zh-CN.js

10
site/theme/template/Home/Banner.jsx

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

2
site/theme/zh-CN.js

@ -49,7 +49,7 @@ module.exports = {
'app.home.tool-kitchen-content': '一个为设计师提效的 Sketch 工具集',
'app.home.getting-started': '开始使用',
'app.home.recommend': '推荐',
'app.home.recommend.yuque': '语雀,我们都喜欢的文档工具',
'app.home.recommend.yuque': '语雀:2020 领福蛋有大奖',
'app.home.recommend.antv.g2plot': 'G2Plot:全新企业级图表',
'app.home.recommend.antd.next': 'Ant Design 4.0:创造快乐工作',
'app.home.more': '查看更多',

Loading…
Cancel
Save