This repository has been archived by the owner on Jan 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(client): add routing for
404 error
- Loading branch information
Showing
3 changed files
with
35 additions
and
5 deletions.
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
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,26 @@ | ||
import React, { Component } from "react"; | ||
import HomeLayout from "@layouts/HomeLayout"; | ||
|
||
export class NotFound extends Component { | ||
static displayName = NotFound.name; | ||
|
||
componentDidMount() { | ||
document.title = "404 - Not Found"; | ||
} | ||
|
||
render() { | ||
return ( | ||
<HomeLayout> | ||
<div className="hero min-h-screen bg-base-200"> | ||
<div className="hero-content text-center"> | ||
<div className="max-w-md"> | ||
<h1 className="text-6xl font-bold">404 Not Found</h1> | ||
</div> | ||
</div> | ||
</div> | ||
</HomeLayout> | ||
); | ||
} | ||
} | ||
|
||
export default NotFound; |
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