404.tsx 657 Bytes
Newer Older
1 2
import React from 'react';
import { Button } from 'antd';
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
3
import router from 'umi/router';
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

// ่ฟ™้‡Œๅบ”่ฏฅไฝฟ็”จ 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>
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
21 22 23
    <Button type="primary" onClick={() => router.push('/')}>
      Back Home
    </Button>
24 25 26 27
  </div>
);

export default NoFoundPage;