File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 1+ import React from 'react' ;
2+ import { Link } from 'react-router-dom' ;
3+
4+ import { tr } from '../i18n' ;
5+
6+ function NotFoundPage ( ) {
7+ return (
8+ < div className = "container text-center" style = { { marginTop : '100px' } } >
9+ < h1 > 404</ h1 >
10+ < p > { tr ( 'Page not found.' , 'ページが見つかりません。' ) } </ p >
11+ < Link to = "/" > { tr ( 'Go to Home' , 'ホームへ戻る' ) } </ Link >
12+ </ div >
13+ ) ;
14+ }
15+
16+ export default NotFoundPage ;
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ import StandingsRevealPage from './standings/StandingsRevealPage';
2525import GA from './common/GA' ;
2626import LoadingCheck from './common/LoadingCheck' ;
2727import LoadingPage from './LoadingPage' ;
28+ import NotFoundPage from './NotFoundPage' ;
2829import siteconfig from '../siteconfig' ;
2930
3031function Routes ( ) {
@@ -42,6 +43,7 @@ function Routes() {
4243 { teamPageRoute }
4344 < Route path = "/settings/" component = { SettingsPage } />
4445 < Route path = "/reveal/" component = { StandingsRevealPage } />
46+ < Route component = { NotFoundPage } />
4547 </ Switch >
4648 </ Frame >
4749 </ LoadingCheck >
You can’t perform that action at this time.
0 commit comments