Skip to content

Commit eb78efd

Browse files
committed
add 404 page and style
1 parent 35b48a0 commit eb78efd

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

pages/404.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import Link from 'next/link'
2+
const NotFound = () => {
3+
return (
4+
<div className="not-found">
5+
<h1>Ooops...</h1>
6+
<h2>That page cannot be found :(</h2>
7+
<p>Go back to the <Link href="/"><a>Homepage</a></Link></p>
8+
</div>
9+
);
10+
}
11+
export default NotFound;

styles/globals.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,14 @@ a {
2020
box-sizing: border-box;
2121
}
2222

23+
.not-found {
24+
text-align: center;
25+
}
26+
27+
.not-found a {
28+
color: $accent-color;
29+
30+
&:hover {
31+
opacity: 0.6;
32+
}
33+
}

0 commit comments

Comments
 (0)