-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: Add 404 page and fix nav and mobile nav color
- Loading branch information
Showing
7 changed files
with
43 additions
and
3 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,20 @@ | ||
import Image from "next/image"; | ||
import styles from "./Error404.module.css"; | ||
|
||
const Error404 = () => { | ||
return ( | ||
<div className={styles.error404}> | ||
<Image | ||
src="/images/404-sad.png" | ||
width={600} | ||
height={400} | ||
alt="cat crying" | ||
/> | ||
<p className="text-lg md:text-xl xl:text-2xl 2xl:text-3xl"> | ||
404. Page Not Found. | ||
</p> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Error404; |
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,12 @@ | ||
.error404 { | ||
@apply flex flex-col gap-y-4 justify-center items-center basis-full; | ||
|
||
min-height: 100vh; | ||
min-height: 100dvh; | ||
} | ||
|
||
@media (min-width: 768px) { | ||
.error404 { | ||
min-height: calc(100vh - 108px); | ||
} | ||
} |
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 @@ | ||
export { default } from "./Error404"; |
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
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,7 @@ | ||
import Error404 from "@/components/common/Error404"; | ||
|
||
const NotFound = () => { | ||
return <Error404 />; | ||
}; | ||
|
||
export default NotFound; |
daa017f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
portfolio – ./
hafezfhmi.com
www.hafezfhmi.com
portfolio-five-wheat-48.vercel.app
portfolio-git-main-hafezfhmi.vercel.app
portfolio-hafezfhmi.vercel.app