|
|
@ -1,7 +1,7 @@
|
|
|
|
import React from 'react';
|
|
|
|
import React from 'react';
|
|
|
|
import { Link } from 'react-router';
|
|
|
|
import { Link } from 'react-router';
|
|
|
|
import { FormattedMessage } from 'react-intl';
|
|
|
|
import { FormattedMessage } from 'react-intl';
|
|
|
|
import ScrollOverPack from 'rc-scroll-anim/lib/ScrollOverPack';
|
|
|
|
import ScrollElement from 'rc-scroll-anim/lib/ScrollElement';
|
|
|
|
import GitHubButton from 'react-github-button';
|
|
|
|
import GitHubButton from 'react-github-button';
|
|
|
|
import 'react-github-button/assets/style.css';
|
|
|
|
import 'react-github-button/assets/style.css';
|
|
|
|
import { Icon } from 'antd';
|
|
|
|
import { Icon } from 'antd';
|
|
|
@ -19,8 +19,8 @@ function typeFunc(a) {
|
|
|
|
export default function Banner({ location, onEnterChange }) {
|
|
|
|
export default function Banner({ location, onEnterChange }) {
|
|
|
|
const query = location.query;
|
|
|
|
const query = location.query;
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<section id="banner">
|
|
|
|
<section id="banner" className="page">
|
|
|
|
<ScrollOverPack scrollName="banner" className="page" onChange={({ mode }) => onEnterChange(mode)} replay>
|
|
|
|
<ScrollElement id="banner" onChange={({ mode }) => onEnterChange(mode)}>
|
|
|
|
<QueueAnim className="banner-text-wrapper" type={typeFunc} delay={300} key="banner">
|
|
|
|
<QueueAnim className="banner-text-wrapper" type={typeFunc} delay={300} key="banner">
|
|
|
|
<h2 key="h2">ANT <p>DESIGN</p></h2>
|
|
|
|
<h2 key="h2">ANT <p>DESIGN</p></h2>
|
|
|
|
<p key="content"><FormattedMessage id="app.home.slogan" /></p>
|
|
|
|
<p key="content"><FormattedMessage id="app.home.slogan" /></p>
|
|
|
@ -38,7 +38,7 @@ export default function Banner({ location, onEnterChange }) {
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</QueueAnim>
|
|
|
|
</QueueAnim>
|
|
|
|
<Icon type="down" className="down" />
|
|
|
|
<Icon type="down" className="down" />
|
|
|
|
</ScrollOverPack>
|
|
|
|
</ScrollElement>
|
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|