fix: 错误页面优化

This commit is contained in:
GraceWalk
2022-10-28 17:36:33 +08:00
committed by EricZeng
parent 941dd4fd65
commit 1a5e2c7309
9 changed files with 69 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

View File

@@ -0,0 +1,11 @@
import React from 'react';
import pageNoLicense from '@src/assets/page-no-license.png';
export default () => {
return (
<div className="error-page">
<img width={230} height={150} src={pageNoLicense} />
<div className="title">license </div>
</div>
);
};

View File

@@ -0,0 +1,14 @@
import React from 'react';
import page403 from '@src/assets/page403.png';
export default () => {
return (
<div className="error-page">
<img width={230} height={150} src={page403} />
<div className="title">访</div>
<a className="link" href="/">
</a>
</div>
);
};

View File

@@ -0,0 +1,15 @@
import React from 'react';
import page404 from '@src/assets/page404.png';
export default () => {
return (
<div className="error-page">
<img width={230} height={150} src={page404} />
<div className="title"></div>
<div className="desc"></div>
<a className="link" href="/">
</a>
</div>
);
};

View File

@@ -0,0 +1,25 @@
.error-page {
display: flex;
flex-direction: column;
align-items: center;
height: calc(100% - 48px);
> img {
margin-top: 165px;
}
.title {
margin: 16px 0;
font-family: @font-family-bold;
font-size: 18px;
color: #495057;
line-height: 25px;
}
.desc {
margin-bottom: 12px;
font-size: 13px;
color: #74788d;
font-weight: 400;
}
.link {
font-size: 15px;
}
}

View File

@@ -0,0 +1,4 @@
import './index.less';
export { default as Page403 } from './Page403';
export { default as Page404 } from './Page404';
export { default as NoLicense } from './NoLicense';

View File

@@ -1,4 +0,0 @@
import { Result } from 'knowdesign';
import React from 'react';
export default () => <Result status="403" title="No License" subTitle="很抱歉,您的 Licence 无法使用" />;