Fix login screen 404
This commit is contained in:
parent
d426887769
commit
c43bf39cfd
8 changed files with 115 additions and 94 deletions
|
@ -1,21 +1,17 @@
|
|||
import React from 'react';
|
||||
import PageContentBlock from '@/components/elements/PageContentBlock';
|
||||
import ScreenBlock from '@/components/screens/ScreenBlock';
|
||||
|
||||
interface Props {
|
||||
title?: string;
|
||||
message: string;
|
||||
message?: string;
|
||||
onBack?: () => void;
|
||||
}
|
||||
|
||||
export default ({ title, message }: Props) => (
|
||||
<PageContentBlock>
|
||||
<div className={'flex justify-center'}>
|
||||
<div className={'w-full sm:w-3/4 md:w-1/2 p-12 md:p-20 bg-neutral-100 rounded-lg shadow-lg text-center'}>
|
||||
<img src={'/assets/svgs/not_found.svg'} className={'w-2/3 h-auto select-none'}/>
|
||||
<h2 className={'mt-6 text-neutral-900 font-bold'}>404</h2>
|
||||
<p className={'text-sm text-neutral-700 mt-2'}>
|
||||
The requested resource was not found.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</PageContentBlock>
|
||||
export default ({ title, message, onBack }: Props) => (
|
||||
<ScreenBlock
|
||||
title={title || '404'}
|
||||
image={'/assets/svgs/not_found.svg'}
|
||||
message={message || 'The requested resource was not found.'}
|
||||
onBack={onBack}
|
||||
/>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue