404.tsx 579 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
import React from 'react';
import { Button } from 'antd';

// 这里应该使用 antd 的 404 result 组件,
// 但是还没发布,先来个简单的。

const NoFoundPage: React.FC<{}> = () => (
  <div
    style={{
      height: '100vh',
      padding: 80,
      textAlign: 'center',
    }}
  >
    <img src="https://gw.alipayobjects.com/zos/antfincdn/wsE2Pw%243%26L/noFound.svg" alt="404" />
    <br />
    <br />
    <h1>404</h1>
    <p>Sorry, the page you visited does not exist.</p>
    <Button type="primary">Back Home</Button>
  </div>
);

export default NoFoundPage;