import React from 'react'; import PropTypes from 'prop-types'; import TweenOne from 'rc-tween-one'; import QueueAnim from 'rc-queue-anim'; 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 BannerImage from './BannerImage'; import * as utils from '../utils'; const loop = { duration: 3000, yoyo: true, repeat: -1, }; class Banner extends React.PureComponent { static contextTypes = { intl: PropTypes.object.isRequired, } static propTypes = { className: PropTypes.string, } static defaultProps = { className: 'banner', } render() { const { className, isMobile } = this.props; const { intl: { locale } } = this.context; const isZhCN = locale === 'zh-CN'; return (
); } } export default Banner;