Skip to content

Commit

Permalink
#15- 404 Page
Browse files Browse the repository at this point in the history
  • Loading branch information
Saumy-m committed Sep 30, 2023
1 parent 916ba20 commit d949214
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 2 deletions.
Binary file added client/public/error.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions client/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
} from "./pages";
import { AccountProvider } from "./context";
import "./index.scss";
import PageError from "./pages/PageError/PageError";

const router = createBrowserRouter([
{
Expand Down Expand Up @@ -44,8 +45,8 @@ const router = createBrowserRouter([
element: <CreateProduct />,
},
{
path: "*",
element: <div>404</div>,
path: "/404-page",
element: <PageError />,
},
]);

Expand Down
Empty file.
17 changes: 17 additions & 0 deletions client/src/pages/PageError/PageError.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { Page } from "../../components";
import "./PageError.style.scss";

function PageError() {
return (
<Page>
<div className="404-page">
<center>
<h1>404:NOT FOUND</h1>
<img src="error.gif"></img>
</center>
</div>
</Page>
);
}

export default PageError;
1 change: 1 addition & 0 deletions client/src/pages/PageError/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default as PageError} from "./PageError";

0 comments on commit d949214

Please sign in to comment.