Skip to content

Commit

Permalink
go back to home button on 404
Browse files Browse the repository at this point in the history
  • Loading branch information
KishiTheMechanic committed Oct 8, 2024
1 parent e6625c5 commit 7b01772
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions src/app/not-found.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
export const runtime = 'edge'

export default function NotFound() {
return (
<>
Expand All @@ -20,6 +18,10 @@ export default function NotFound() {
<h2 style={styles.h2}>This page could not be found.</h2>
</div>
</div>

<a href="/" style={styles.button}>
Go back to Home
</a>
</div>
</body>
</html>
Expand Down Expand Up @@ -59,4 +61,18 @@ const styles = {
lineHeight: '49px',
margin: 0,
},

button: {
display: 'inline-block',
marginTop: '20px',
padding: '10px 20px',
backgroundColor: '#18181b',
color: '#fff',
fontSize: '16px',
fontWeight: '500',
borderRadius: '6px',
textDecoration: 'none',
transition: 'background-color 0.2s ease',
cursor: 'pointer',
},
} as const

0 comments on commit 7b01772

Please sign in to comment.