Move customs errors to app directory

This commit is contained in:
2023-07-22 13:05:50 +04:00
parent 19d61f7bc5
commit 9708330a04
2 changed files with 20 additions and 21 deletions
-23
View File
@@ -1,23 +0,0 @@
import {Container, Typography} from '@mui/material'
import Link from 'next/link'
import Image from 'next/image'
export default function Custom404() {
return (
<Container maxWidth='sm'>
<Link passHref href='/'>
<Image
alt='Logo OKI'
width={512}
height={512}
src='/logo-512x512.png'
quality={20}
/>
</Link>
<Typography variant='h2' align='center' >404 - La page nexiste pas 😔</Typography>
<Link passHref href='/' style={{textDecoration: 'none'}}>
<Typography style={{marginTop: '1em', color: 'green'}} variant='h3' align='center'>Retourner à laccueil 🏡</Typography>
</Link>
</Container>
)
}
-21
View File
@@ -1,21 +0,0 @@
import {Container, Typography} from '@mui/material'
import Link from 'next/link'
import Image from 'next/image'
export default function Custom500() {
return (
<Container maxWidth='sm'>
<Link passHref href='/'>
<Image
alt='Logo OKI'
width={512}
height={512}
src='/logo-512x512.png'
quality={20}
/>
</Link>
<Typography variant='h2' align='center' >500 - Erreur du serveur 🥺</Typography>
<Typography style={{marginTop: '1em', color: 'green'}} variant='h3' align='center'>Nous mettons tout en œuvre pour rétablir le site dans les plus brefs délais 💪🏾</Typography>
</Container>
)
}