Move customs errors to app directory
This commit is contained in:
+14
-15
@@ -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={192}
|
||||||
width={512}
|
height={192}
|
||||||
height={512}
|
src='/logo-192x192.png'
|
||||||
src='/logo-512x512.png'
|
quality={20}
|
||||||
quality={20}
|
/>
|
||||||
/>
|
<Typography variant='h2' align='center' >500 - Erreur du serveur 😭</Typography>
|
||||||
</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>
|
<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>
|
||||||
)
|
)
|
||||||
@@ -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>
|
||||||
Reference in New Issue
Block a user