Browse Source

site: 📣 promote g2plot

pull/21188/head
afc163 5 years ago
parent
commit
e036e4c9a3
  1. 11
      site/theme/template/Home/Banner.jsx

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

@ -97,23 +97,20 @@ const Banner = ({ isMobile }) => {
<FormattedMessage id="app.home.recommend" />
</Divider>
<a
href="https://www.yuque.com/e/que?chInfo=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://www.yuque.com/e/que?chInfo=antd`,
event_label: `https://github.com/antvis/g2plot?from=antd`,
});
}
}}
>
<img
src="https://gw.alipayobjects.com/zos/rmsportal/XuVpGqBFxXplzvLjJBZB.svg"
alt="yuque logo"
/>
<FormattedMessage id="app.home.recommend.yuque" />
<img src="https://antv.vision/icons/icon-512x512.png" alt="antv logo" />
<FormattedMessage id="app.home.recommend.antv.g2plot" />
<Icon type="right" style={{ marginLeft: 6, fontSize: 12, opacity: 0.6 }} />
</a>
</div>

Loading…
Cancel
Save