error page

This commit is contained in:
zuiidea
2016-10-16 23:05:18 +08:00
parent 0255f197f4
commit 23b32b332e
18 changed files with 30 additions and 641 deletions
-14
View File
@@ -1,14 +0,0 @@
import React from 'react';
import { Button } from 'antd';
import styles from './NotFound.less';
const NotFound = () =>
<div className={styles.normal}>
<div className={styles.container}>
<h1 className={styles.title}>404</h1>
<p className={styles.desc}>未找到该页面</p>
<a href="/"><Button type="primary" style={{ marginTop: 5 }}>返回首页</Button></a>
</div>
</div>;
export default NotFound;
-25
View File
@@ -1,25 +0,0 @@
.normal {
width: 100%;
height: 100%;
min-height: 100vh;
padding-top: 120px;
}
.container {
padding: 0;
margin: 0 auto;
width: 620px;
height: 300px;
text-align: center;
}
.title {
font-size: 80px;
color: #666;
margin-top: 20px;
margin-bottom: 10px;
}
.desc {
font-size: 14px;
}
+1 -4
View File
@@ -79,14 +79,11 @@ function Users({ location, dispatch, users }) {
},
}
// 解决 Form.create initialValue 的问题
// 每次创建一个全新的组件, 而不做diff
// 如果你使用了redux, 请移步 http://react-component.github.io/form/examples/redux.html
const UserModalGen = () =>
<UserModal {...userModalProps} />
return (
<div className={styles.normal}>
<div>
<UserSearch {...userSearchProps} />
<UserList {...userListProps} />
<UserModalGen />
-4
View File
@@ -1,4 +0,0 @@
.normal {
width: 800px;
margin: 20px auto;
}
+10
View File
@@ -0,0 +1,10 @@
import React from 'react'
import {Icon} from 'antd'
import styles from './error.less'
const Error = () => <div className={styles.error}>
<Icon type="frown-o"/>
<h1>404 Not Found</h1>
</div>
export default Error
+17
View File
@@ -0,0 +1,17 @@
.error {
color: black;
text-align: center;
position: absolute;
top: 30%;
margin-top: -50px;
left: 50%;
margin-left: -100px;
width: 200px;
:global .anticon{
font-size: 48px;
margin-bottom: 16px;
}
h1 {
font-family: cursive;
}
}