Improve home page style in Mobile device
parent
c0e9f8c52e
commit
752392a964
@ -1,21 +1,12 @@
|
||||
import React from 'react';
|
||||
import ScrollLink from 'rc-scroll-anim/lib/ScrollLink';
|
||||
import scrollScreen from 'rc-scroll-anim/lib/ScrollScreen';
|
||||
|
||||
export default class Link extends React.Component {
|
||||
componentDidMount() {
|
||||
scrollScreen.init();
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
<div id="list">
|
||||
<ScrollLink className="list-point" to="banner" toHash={false} />
|
||||
<ScrollLink className="list-point" to="page1" toHash={false} />
|
||||
<ScrollLink className="list-point" to="page2" toHash={false} />
|
||||
<ScrollLink className="list-point" to="page3" toHash={false} />
|
||||
<ScrollLink className="list-point" to="page4" toHash={false} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
export default () => (
|
||||
<div id="list">
|
||||
<ScrollLink className="list-point" to="banner" toHash={false} />
|
||||
<ScrollLink className="list-point" to="page1" toHash={false} />
|
||||
<ScrollLink className="list-point" to="page2" toHash={false} />
|
||||
<ScrollLink className="list-point" to="page3" toHash={false} />
|
||||
<ScrollLink className="list-point" to="page4" toHash={false} />
|
||||
</div>
|
||||
);
|
||||
|
Loading…
Reference in New Issue