build ok,
This commit is contained in:
53
002_source/cms/src/app/errors/internal-server-error/page.tsx
Normal file
53
002_source/cms/src/app/errors/internal-server-error/page.tsx
Normal file
@@ -0,0 +1,53 @@
|
||||
import * as React from 'react';
|
||||
import type { Metadata } from 'next';
|
||||
import RouterLink from 'next/link';
|
||||
import Box from '@mui/material/Box';
|
||||
import Button from '@mui/material/Button';
|
||||
import Container from '@mui/material/Container';
|
||||
import Stack from '@mui/material/Stack';
|
||||
import Typography from '@mui/material/Typography';
|
||||
|
||||
import { config } from '@/config';
|
||||
import { paths } from '@/paths';
|
||||
|
||||
export const metadata = { title: `Internal server error | Errors | ${config.site.name}` } satisfies Metadata;
|
||||
|
||||
export default function Page(): React.JSX.Element {
|
||||
return (
|
||||
<Box
|
||||
component="main"
|
||||
sx={{
|
||||
alignItems: 'center',
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
justifyContent: 'center',
|
||||
minHeight: '100%',
|
||||
py: '64px',
|
||||
}}
|
||||
>
|
||||
<Container maxWidth="lg">
|
||||
<Stack spacing={6}>
|
||||
<Box sx={{ display: 'flex', justifyContent: 'center' }}>
|
||||
<Box
|
||||
alt="Internal server error"
|
||||
component="img"
|
||||
src="/assets/error.svg"
|
||||
sx={{ height: 'auto', maxWidth: '100%', width: '200px' }}
|
||||
/>
|
||||
</Box>
|
||||
<Stack spacing={1} sx={{ textAlign: 'center' }}>
|
||||
<Typography variant="h4">500: Internal server error</Typography>
|
||||
<Typography color="text.secondary">
|
||||
You either tried some shady route or you came here by mistake. Whichever it is, try using the navigation.
|
||||
</Typography>
|
||||
</Stack>
|
||||
<Box sx={{ display: 'flex', justifyContent: 'center' }}>
|
||||
<Button component={RouterLink} href={paths.home} variant="contained">
|
||||
Back to home
|
||||
</Button>
|
||||
</Box>
|
||||
</Stack>
|
||||
</Container>
|
||||
</Box>
|
||||
);
|
||||
}
|
53
002_source/cms/src/app/errors/not-authorized/page.tsx
Normal file
53
002_source/cms/src/app/errors/not-authorized/page.tsx
Normal file
@@ -0,0 +1,53 @@
|
||||
import * as React from 'react';
|
||||
import type { Metadata } from 'next';
|
||||
import RouterLink from 'next/link';
|
||||
import Box from '@mui/material/Box';
|
||||
import Button from '@mui/material/Button';
|
||||
import Container from '@mui/material/Container';
|
||||
import Stack from '@mui/material/Stack';
|
||||
import Typography from '@mui/material/Typography';
|
||||
|
||||
import { config } from '@/config';
|
||||
import { paths } from '@/paths';
|
||||
|
||||
export const metadata = { title: `Not authorized | Errors | ${config.site.name}` } satisfies Metadata;
|
||||
|
||||
export default function Page(): React.JSX.Element {
|
||||
return (
|
||||
<Box
|
||||
component="main"
|
||||
sx={{
|
||||
alignItems: 'center',
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
justifyContent: 'center',
|
||||
minHeight: '100%',
|
||||
py: '64px',
|
||||
}}
|
||||
>
|
||||
<Container maxWidth="lg">
|
||||
<Stack spacing={6}>
|
||||
<Box sx={{ display: 'flex', justifyContent: 'center' }}>
|
||||
<Box
|
||||
alt="Not authorized"
|
||||
component="img"
|
||||
src="/assets/error.svg"
|
||||
sx={{ height: 'auto', maxWidth: '100%', width: '200px' }}
|
||||
/>
|
||||
</Box>
|
||||
<Stack spacing={1} sx={{ textAlign: 'center' }}>
|
||||
<Typography variant="h4">401: Authorization required</Typography>
|
||||
<Typography color="text.secondary">
|
||||
You either tried some shady route or you came here by mistake. Whichever it is, try using the navigation.
|
||||
</Typography>
|
||||
</Stack>
|
||||
<Box sx={{ display: 'flex', justifyContent: 'center' }}>
|
||||
<Button component={RouterLink} href={paths.home} variant="contained">
|
||||
Back to home
|
||||
</Button>
|
||||
</Box>
|
||||
</Stack>
|
||||
</Container>
|
||||
</Box>
|
||||
);
|
||||
}
|
53
002_source/cms/src/app/errors/not-found/page.tsx
Normal file
53
002_source/cms/src/app/errors/not-found/page.tsx
Normal file
@@ -0,0 +1,53 @@
|
||||
import * as React from 'react';
|
||||
import type { Metadata } from 'next';
|
||||
import RouterLink from 'next/link';
|
||||
import Box from '@mui/material/Box';
|
||||
import Button from '@mui/material/Button';
|
||||
import Container from '@mui/material/Container';
|
||||
import Stack from '@mui/material/Stack';
|
||||
import Typography from '@mui/material/Typography';
|
||||
|
||||
import { config } from '@/config';
|
||||
import { paths } from '@/paths';
|
||||
|
||||
export const metadata = { title: `Not found | Errors | ${config.site.name}` } satisfies Metadata;
|
||||
|
||||
export default function Page(): React.JSX.Element {
|
||||
return (
|
||||
<Box
|
||||
component="main"
|
||||
sx={{
|
||||
alignItems: 'center',
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
justifyContent: 'center',
|
||||
minHeight: '100%',
|
||||
py: '64px',
|
||||
}}
|
||||
>
|
||||
<Container maxWidth="lg">
|
||||
<Stack spacing={6}>
|
||||
<Box sx={{ display: 'flex', justifyContent: 'center' }}>
|
||||
<Box
|
||||
alt="Not found"
|
||||
component="img"
|
||||
src="/assets/not-found.svg"
|
||||
sx={{ height: 'auto', maxWidth: '100%', width: '200px' }}
|
||||
/>
|
||||
</Box>
|
||||
<Stack spacing={1} sx={{ textAlign: 'center' }}>
|
||||
<Typography variant="h4">404: The page you are looking for isn't here</Typography>
|
||||
<Typography color="text.secondary">
|
||||
You either tried some shady route or you came here by mistake. Whichever it is, try using the navigation.
|
||||
</Typography>
|
||||
</Stack>
|
||||
<Box sx={{ display: 'flex', justifyContent: 'center' }}>
|
||||
<Button component={RouterLink} href={paths.home} variant="contained">
|
||||
Back to home
|
||||
</Button>
|
||||
</Box>
|
||||
</Stack>
|
||||
</Container>
|
||||
</Box>
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user