Browse Source

💄 site: use Button in home page

pull/13919/head
afc163 6 years ago
parent
commit
911f32c44f
No known key found for this signature in database GPG Key ID: 5F00908D72002306
  1. 19
      site/theme/template/Home/Banner.jsx

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

@ -6,6 +6,7 @@ import ScrollParallax from 'rc-scroll-anim/lib/ScrollParallax';
import { Link } from 'bisheng/router';
import { FormattedMessage } from 'react-intl';
import GitHubButton from 'react-github-button';
import { Button } from 'antd';
import BannerImage from './BannerImage';
import * as utils from '../utils';
@ -67,17 +68,15 @@ class Banner extends React.PureComponent {
<FormattedMessage id="app.home.introduce" />
</p>
<div className="banner-btns" key="buttons">
<Link
className="banner-btn components"
to={utils.getLocalizedPathname('/docs/react/introduce', isZhCN)}
>
<FormattedMessage id="app.home.getting-started" />
<Link to={utils.getLocalizedPathname('/docs/react/introduce', isZhCN)}>
<Button type="primary" className="banner-btn components">
<FormattedMessage id="app.home.getting-started" />
</Button>
</Link>
<Link
className="banner-btn language"
to={utils.getLocalizedPathname('/docs/spec/introduce', isZhCN)}
>
<FormattedMessage id="app.home.design-language" />
<Link to={utils.getLocalizedPathname('/docs/spec/introduce', isZhCN)}>
<Button className="banner-btn language">
<FormattedMessage id="app.home.design-language" />
</Button>
</Link>
{!isMobile && (
<GitHubButton

Loading…
Cancel
Save