mirror of
https://github.com/zuiidea/antd-admin
synced 2026-11-27 16:50:56 +00:00
error page
This commit is contained in:
@@ -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;
|
||||
@@ -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;
|
||||
}
|
||||
@@ -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 />
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
.normal {
|
||||
width: 800px;
|
||||
margin: 20px auto;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user