Skip to content

Commit

Permalink
update NotFoundPage
Browse files Browse the repository at this point in the history
  • Loading branch information
Irina-anat committed Feb 24, 2024
1 parent 18ad993 commit 705cb93
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/components/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ export const App = () => {
<Route path="reviews" element={<Reviews />} />
</Route>
</Route>
{/* <Route path="*" element={<div><h1 className={css.not__found}>Ooooops, page not found</h1></div>} /> */}
<Route path="*" element={<NotFoundPage/>} />
</Routes>
</div>
Expand Down
7 changes: 4 additions & 3 deletions src/pages/NotFound/NotFound.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ const NotFoundPage = () => {
return (
<div className={css.page}>
<div className={css.container}>
<h1 className={css.not__title}>404 Not Found</h1>
<p className={css.not__text}>
Oops! The page you are looking for might be in another castle.
<h1 className={css.notFound__title}>404 Not Found</h1>
<p className={css.notFound__text}>
Oops! It looks like the page you are searching for might be located somewhere else(
</p>
<Link to={backLinkLocationRef.current}>
{' '}
Expand All @@ -23,3 +23,4 @@ const NotFoundPage = () => {
};

export default NotFoundPage;

4 changes: 2 additions & 2 deletions src/pages/NotFound/NotFound.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
text-align: center;
}

.not__title {
.notFound__title {
font-size: 3em;
color: #333;
margin-bottom: 20px;
}

.not__text {
.notFound__text {
font-size: 1.5em;
color: #555;
margin-bottom: 30px;
Expand Down

0 comments on commit 705cb93

Please sign in to comment.