ant-design/site/theme/template/NotFound.jsx
Benjy Cui 60da9909d3 site: improve loading performance (#4112)
* site: should generate html file for both of en and cn, ref: #3934

* site: remove loading animation

* site: fix header menu highlight

* site: improve detail

* deps: update
2016-12-09 13:02:16 +08:00

23 lines
569 B
JavaScript

import React from 'react';
import { Link } from 'react-router';
import * as utils from './utils';
export default function NotFound({ location }) {
return (
<div id="page-404">
<section>
<h1>404</h1>
<p>
你要找的页面不存在
<Link to={utils.getLocalizedPathname('/', utils.isZhCN(location.pathname))}>返回首页</Link>
</p>
</section>
<style
dangerouslySetInnerHTML={{
__html: '#react-content { height: 100%; background-color: #fff }',
}}
/>
</div>
);
}