2016-04-27 10:56:17 +08:00
|
|
|
import React from 'react';
|
2017-01-17 15:24:13 +08:00
|
|
|
import { Link } from 'bisheng/router';
|
2016-12-09 13:02:16 +08:00
|
|
|
import * as utils from './utils';
|
2016-04-27 10:56:17 +08:00
|
|
|
|
2016-10-18 12:04:09 +08:00
|
|
|
export default function NotFound({ location }) {
|
2016-04-27 10:56:17 +08:00
|
|
|
return (
|
|
|
|
<div id="page-404">
|
|
|
|
<section>
|
|
|
|
<h1>404</h1>
|
2016-12-09 13:02:16 +08:00
|
|
|
<p>
|
|
|
|
你要找的页面不存在
|
|
|
|
<Link to={utils.getLocalizedPathname('/', utils.isZhCN(location.pathname))}>返回首页</Link>
|
|
|
|
</p>
|
2016-04-27 10:56:17 +08:00
|
|
|
</section>
|
2016-10-10 19:40:53 +08:00
|
|
|
<style
|
|
|
|
dangerouslySetInnerHTML={{
|
|
|
|
__html: '#react-content { height: 100%; background-color: #fff }',
|
|
|
|
}}
|
|
|
|
/>
|
2016-04-27 10:56:17 +08:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|