-
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.
feat: customize 404 not found page with background and message (#219)
* feat: customize 404 not found page with background and message * chore: resolve prettier formatting
- Loading branch information
Showing
3 changed files
with
66 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
@use "zothacks-theme" as theme; | ||
@use "bootstrap-utils" as utils; | ||
|
||
.not-found-page { | ||
display: flex; | ||
align-items: start; | ||
justify-content: center; | ||
height: 80vh; | ||
background: url("~@/assets/background/anteater-fishing-background.png") center / | ||
cover; | ||
} | ||
|
||
.content { | ||
margin-top: 22vh; | ||
text-align: center; | ||
line-height: 1.5; | ||
} | ||
|
||
.heading, | ||
.subtext { | ||
margin: 0 auto; | ||
text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.5); | ||
} | ||
|
||
.heading { | ||
font-size: 2.5rem; | ||
font-weight: 700; | ||
color: theme.$yellow; | ||
|
||
@include utils.media-breakpoint-up(lg) { | ||
font-size: 3rem; | ||
} | ||
|
||
@include utils.media-breakpoint-up(xl) { | ||
font-size: 4rem; | ||
} | ||
} | ||
|
||
.subtext { | ||
font-size: 1.5rem; | ||
font-weight: 400; | ||
color: theme.$white; | ||
max-width: 60%; | ||
|
||
@include utils.media-breakpoint-up(lg) { | ||
font-size: 1.75rem; | ||
} | ||
|
||
@include utils.media-breakpoint-up(xl) { | ||
font-size: 2.25rem; | ||
} | ||
} |
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,14 @@ | ||
import styles from "./not-found.module.scss"; | ||
|
||
export default function NotFoundPage() { | ||
return ( | ||
<div className={styles["not-found-page"]}> | ||
<div className={styles.content}> | ||
<h1 className={styles.heading}>404</h1> | ||
<p className={styles.subtext}> | ||
Gone fishing! Seems this page got away… | ||
</p> | ||
</div> | ||
</div> | ||
); | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.