mirror of
https://github.com/MedzikUser/portfolio
synced 2024-08-15 03:26:01 +00:00
feat: add 404 and 500 pages
This commit is contained in:
parent
4883e505f1
commit
475fee14a3
2 changed files with 39 additions and 0 deletions
23
pages/404.tsx
Normal file
23
pages/404.tsx
Normal file
|
@ -0,0 +1,23 @@
|
|||
import Head from 'next/head'
|
||||
import { Home } from '@mui/icons-material'
|
||||
import { IconButton } from '@mui/material'
|
||||
import config from '../config'
|
||||
import Title from '../components/title'
|
||||
import Container from '../components/container'
|
||||
|
||||
export default function NotFoundPage() {
|
||||
return (
|
||||
<Container>
|
||||
<Head>
|
||||
<title>404 | {config.title}</title>
|
||||
</Head>
|
||||
|
||||
<Title>404 | This page could not be found</Title>
|
||||
|
||||
<IconButton color="inherit" href="/">
|
||||
<Home />
|
||||
</IconButton>
|
||||
|
||||
</Container>
|
||||
)
|
||||
}
|
16
pages/500.tsx
Normal file
16
pages/500.tsx
Normal file
|
@ -0,0 +1,16 @@
|
|||
import Head from 'next/head'
|
||||
import config from '../config'
|
||||
import Title from '../components/title'
|
||||
import Container from '../components/container'
|
||||
|
||||
export default function NotFoundPage() {
|
||||
return (
|
||||
<Container>
|
||||
<Head>
|
||||
<title>500 | {config.title}</title>
|
||||
</Head>
|
||||
|
||||
<Title>500 | Server-side error occurred</Title>
|
||||
</Container>
|
||||
)
|
||||
}
|
Loading…
Reference in a new issue