diff --git a/package.json b/package.json
index 2524bab781..b8f5030497 100644
--- a/package.json
+++ b/package.json
@@ -70,7 +70,7 @@
"warning": "~2.1.0"
},
"devDependencies": {
- "rc-scroll-anim": "0.1.0",
+ "rc-scroll-anim": "0.1.1",
"rc-tween-one": "0.1.8",
"autoprefixer-loader": "^3.1.0",
"babel-cli": "^6.2.0",
diff --git a/scripts/home.js b/scripts/home.js
index 789f9b0136..716a469238 100644
--- a/scripts/home.js
+++ b/scripts/home.js
@@ -2,10 +2,12 @@ const React = require('react');
const ReactDOM = require('react-dom');
import { QueueAnim, Icon, Button } from '../index';
import ScrollOverPack from 'rc-scroll-anim/lib/ScrollOverPack';
+import ScrollLink from 'rc-scroll-anim/lib/ScrollLink';
+import ScrollElement from 'rc-scroll-anim/lib/ScrollElement';
import TweenOne from 'rc-tween-one';
-module.exports = function() {
- InstantClickChangeFns.push(function() {
+module.exports = function () {
+ InstantClickChangeFns.push(function () {
if (!document.getElementById('banner')) {
return;
}
@@ -23,6 +25,19 @@ module.exports = function() {
$(window).off('scroll.scrollNavEvent');
$(window).on('scroll.scrollNavEvent', scrollNavEvent);
+ // list point
+ ReactDOM.render((
+
+
+
+
+
+
+
+ ), document.getElementById('list'));
+
+ // banner
+
class Banner extends React.Component {
constructor() {
super(...arguments);
@@ -39,7 +54,7 @@ module.exports = function() {
render() {
return (
-
+
ANT
DESIGN
一个 UI 设计语言
@@ -49,7 +64,7 @@ module.exports = function() {
-
+
)
}
}
@@ -58,7 +73,7 @@ module.exports = function() {
// page1
ReactDOM.render((
-
+
+
设计模式
@@ -91,7 +106,7 @@ module.exports = function() {
// page3
ReactDOM.render((
-
+
+
微小·确定·幸福
diff --git a/site/templates/home.html b/site/templates/home.html
index 9e4a63d9b6..06618ae5be 100644
--- a/site/templates/home.html
+++ b/site/templates/home.html
@@ -4,6 +4,7 @@
{% block content %}
+
@@ -95,10 +96,10 @@
height: 76px;
position: absolute;
background: rgba(255, 255, 255, .44);
- background-image: -webkit-linear-gradient(top, rgba(255,255,255,0.03), rgba(255,255,255,0.6), rgba(255,255,255,0.03));
- background-image: -moz-linear-gradient(top, rgba(255,255,255,0.03), rgba(255,255,255,0.6), rgba(255,255,255,0.03));
- background-image: -ms-linear-gradient(top, rgba(255,255,255,0.03), rgba(255,255,255,0.6), rgba(255,255,255,0.03));
- background-image: -o-linear-gradient(top, rgba(255,255,255,0.03), rgba(255,255,255,0.6), rgba(255,255,255,0.03));
+ background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.03));
+ background-image: -moz-linear-gradient(top, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.03));
+ background-image: -ms-linear-gradient(top, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.03));
+ background-image: -o-linear-gradient(top, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.03));
top: 16px;
right: -25px;
}
@@ -246,5 +247,30 @@
footer ul li > a {
color: #eee;
}
+
+ #list {
+ position: fixed;
+ z-index: 9998;
+ top: 50%;
+ right: 20px;
+ width: 6px;
+ margin-top: -35px;
+ }
+
+ .list-point {
+ width: 6px;
+ height: 6px;
+ background: #00AAEE;
+ border-radius: 6px;
+ float: left;
+ margin: 4px auto;
+ opacity: 0.5;
+ cursor: pointer;
+ transition: opacity .3s;
+ }
+
+ .list-point:hover, .list-point.active {
+ opacity: 1;
+ }
{% endblock %}