Skip to content

Commit 558c7d4

Browse files
committed
lesson-7
1 parent 8e5cd62 commit 558c7d4

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

pages/404.js

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

styles/globals.css

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,10 @@ footer {
3535
color: #777;
3636
border-top: 1px solid #eaeaea;
3737
}
38-
38+
.not-found {
39+
text-align: center;
40+
}
41+
.not-found a{
42+
color: #4979ff;
43+
text-decoration: underline;
44+
}

0 commit comments

Comments
 (0)