Skip to content

Commit

Permalink
404 page added
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandyrzph committed Aug 12, 2022
1 parent c6ca4b6 commit 00190ed
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pixelplace/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
ProtectedRoute,
Home,
Posts,
NotFound,
} from "./components/index";
import { useUserAuth } from "./context/UserAuthContext";
import { BeatLoader } from "react-spinners";
Expand Down Expand Up @@ -52,6 +53,7 @@ function App() {
</ProtectedRoute>
}
/>
<Route path="*" element={<NotFound />} />
</Routes>
</div>
);
Expand Down
11 changes: 11 additions & 0 deletions pixelplace/src/components/NotFound/NotFound.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const NotFound = () => {
return (
<div className="flex justify-center text-7xl font-logo items-center max-w-md px-2 md:px-0 sm:max-w-lg md:max-w-xl lg:max-w-3xl xl:max-w-5xl 2xl:max-w-7xl mx-auto w-full mt-40">
<p>
Error Page <span className="text-stroke text-white">Not Found</span>
</p>
</div>
);
};

export default NotFound;
1 change: 1 addition & 0 deletions pixelplace/src/components/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export { default as SignUp } from "./Auth/SignUp";
export { default as Home } from "./Home/Home";
export { default as Like } from "./Like/Like";
export { default as Navbar } from "./Navbar/Navbar";
export { default as NotFound } from "./NotFound/NotFound";
export { default as PostDetails } from "./Posts/PostDetails/PostDetails";
export { default as PostItem } from "./Posts/PostItem/PostItem";
export { default as Posts } from "./Posts/Posts";
Expand Down

0 comments on commit 00190ed

Please sign in to comment.