-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add 404 page -Add 404 page -Add 404 page styling -Add translations needed for 404 page fix #107 * Remove duplicate styles
- Loading branch information
1 parent
1caaeac
commit 20124b5
Showing
3 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// #region Global Imports | ||
import * as React from "react"; | ||
import { NextPage } from "next"; | ||
// #endregion Global Imports | ||
|
||
// #region Local Imports | ||
import { withTranslation } from "@Server/i18n"; | ||
import { Container, TopText, ApodButton } from "@Styled/Home"; | ||
import Link from "next/link"; | ||
// #endregion Local Imports | ||
|
||
// #region Interface Imports | ||
import { IErrorPage } from "@Interfaces"; | ||
// #endregion Interface Imports | ||
|
||
const Custom404: NextPage<IErrorPage.IProps> = ({ t }) => { | ||
return ( | ||
<Container> | ||
<TopText>{t("common:NotFound")}</TopText> | ||
<Link href="/"> | ||
<ApodButton>{t("common:BackHome")}</ApodButton> | ||
</Link> | ||
</Container> | ||
); | ||
}; | ||
|
||
export default withTranslation("common")(Custom404); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
{ | ||
"Hello": "Hello", | ||
"World": "World", | ||
"Error": "Errr!" | ||
"Error": "Errr!", | ||
"NotFound": "Page not found!", | ||
"BackHome": "Back to home" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters