From f703e00c0f8a6a3509bf025efeb3fc428bd60125 Mon Sep 17 00:00:00 2001 From: jiang <155259966@qq.com> Date: Fri, 11 Nov 2016 17:56:05 +0800 Subject: [PATCH] Home fix (#3807) * fix home * update Banner min height --- package.json | 6 +++--- site/theme/static/home.less | 2 ++ site/theme/template/Home/Banner.jsx | 8 ++++---- site/theme/template/Home/Link.jsx | 10 +++++----- site/theme/template/Home/Page1.jsx | 6 +++--- site/theme/template/Home/Page2.jsx | 8 ++++---- site/theme/template/Home/Page3.jsx | 6 +++--- site/theme/template/Home/Page4.jsx | 7 ++++--- 8 files changed, 28 insertions(+), 25 deletions(-) diff --git a/package.json b/package.json index 9271550b9b..94112f5089 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,6 @@ "rc-notification": "~1.3.4", "rc-pagination": "~1.5.3", "rc-progress": "~2.0.1", - "rc-queue-anim": "~0.12.4", "rc-radio": "~2.0.0", "rc-rate": "~1.1.2", "rc-select": "~6.6.1", @@ -112,8 +111,9 @@ "moment-timezone": "^0.5.5", "pre-commit": "1.x", "querystring": "^0.2.0", - "rc-scroll-anim": "~0.3.0", - "rc-tween-one": "~0.6.20", + "rc-scroll-anim": "~0.5.0", + "rc-tween-one": "~0.11.0", + "rc-queue-anim": "~0.12.4", "react": "^15.0.0", "react-addons-test-utils": "^15.0.0", "react-copy-to-clipboard": "^4.0.1", diff --git a/site/theme/static/home.less b/site/theme/static/home.less index 7c5b82c31f..83aa2993ef 100644 --- a/site/theme/static/home.less +++ b/site/theme/static/home.less @@ -25,6 +25,7 @@ position: relative; height: 100%; width: 100%; + overflow: hidden; background: url("https://os.alipayobjects.com/rmsportal/GhjqstwSgxBXrZS.png") no-repeat center / cover; } .banner-text-wrapper { @@ -111,6 +112,7 @@ .content-wrapper { width: 100%; height: 100%; + max-width: 1500px; margin: auto; overflow: hidden; background: #fff; diff --git a/site/theme/template/Home/Banner.jsx b/site/theme/template/Home/Banner.jsx index 68c74ee4db..9eb5d8ae24 100644 --- a/site/theme/template/Home/Banner.jsx +++ b/site/theme/template/Home/Banner.jsx @@ -1,7 +1,7 @@ import React from 'react'; import { Link } from 'react-router'; 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 'react-github-button/assets/style.css'; import { Icon } from 'antd'; @@ -19,8 +19,8 @@ function typeFunc(a) { export default function Banner({ location, onEnterChange }) { const query = location.query; return ( -
); } diff --git a/site/theme/template/Home/Link.jsx b/site/theme/template/Home/Link.jsx index 32b4b7f221..f6d8f480f8 100644 --- a/site/theme/template/Home/Link.jsx +++ b/site/theme/template/Home/Link.jsx @@ -10,11 +10,11 @@ export default class Link extends React.Component { render() { return (