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
+10 -11
View File
@@ -1,20 +1,19 @@
import {Container, Typography} from '@mui/material' 'use client'
import Link from 'next/link'
import Image from 'next/image'
export default function Custom500() { import Image from 'next/image'
import {Container, Typography} from '@mui/material'
export default function Error() {
return ( return (
<Container maxWidth='sm'> <Container sx={{textAlign: 'center', minHeight: '100vh'}} maxWidth='sm'>
<Link passHref href='/'>
<Image <Image
alt='Logo OKI' alt='Logo OKI'
width={512} width={192}
height={512} height={192}
src='/logo-512x512.png' src='/logo-192x192.png'
quality={20} quality={20}
/> />
</Link> <Typography variant='h2' align='center' >500 - Erreur du serveur 😭</Typography>
<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> <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> </Container>
) )
+6 -6
View File
@@ -1,16 +1,16 @@
import {Container, Typography} from '@mui/material'
import Link from 'next/link' import Link from 'next/link'
import Image from 'next/image' import Image from 'next/image'
import {Container, Typography} from '@mui/material'
export default function Custom404() { export default function NotFound() {
return ( return (
<Container maxWidth='sm'> <Container sx={{textAlign: 'center'}} maxWidth='sm'>
<Link passHref href='/'> <Link passHref href='/'>
<Image <Image
alt='Logo OKI' alt='Logo OKI'
width={512} width={192}
height={512} height={192}
src='/logo-512x512.png' src='/logo-192x192.png'
quality={20} quality={20}
/> />
</Link> </Link>