mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
added 404 page
This commit is contained in:
parent
f837924ad4
commit
f0acb1ee66
5 changed files with 53 additions and 3 deletions
|
@ -18,6 +18,7 @@ import { PageCover } from '~/components/containers/PageCover';
|
|||
import { NodeLayout } from './node/NodeLayout';
|
||||
import { BottomContainer } from '~/containers/main/BottomContainer';
|
||||
import { BorisLayout } from './node/BorisLayout';
|
||||
import { ErrorNotFound } from './pages/ErrorNotFound';
|
||||
|
||||
const mapStateToProps = state => ({
|
||||
modal: selectModal(state),
|
||||
|
@ -40,9 +41,9 @@ const Component: FC<IProps> = ({ modal: { is_shown } }) => {
|
|||
<Route exact path={URLS.BASE} component={FlowLayout} />
|
||||
<Route path={URLS.EXAMPLES.IMAGE} component={ImageExample} />
|
||||
<Route path={URLS.EXAMPLES.EDITOR} component={EditorExample} />
|
||||
<Route path="/examples/horizontal" component={HorizontalExample} />
|
||||
<Route path="/post:id" component={NodeLayout} />
|
||||
<Route path="/boris" component={BorisLayout} />
|
||||
<Route path={URLS.NODE_URL(':id')} component={NodeLayout} />
|
||||
<Route path={URLS.BORIS} component={BorisLayout} />
|
||||
<Route path={URLS.ERRORS.NOT_FOUND} component={ErrorNotFound} />
|
||||
|
||||
<Redirect to="/" />
|
||||
</Switch>
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
box-sizing: border-box;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
min-height: 100vh;
|
||||
|
||||
@include tablet {
|
||||
padding: 0;
|
||||
|
|
16
src/containers/pages/ErrorNotFound/index.tsx
Normal file
16
src/containers/pages/ErrorNotFound/index.tsx
Normal file
|
@ -0,0 +1,16 @@
|
|||
import React, { FC } from 'react';
|
||||
import styles from './styles.scss';
|
||||
|
||||
interface IProps {}
|
||||
|
||||
const ErrorNotFound: FC<IProps> = ({}) => (
|
||||
<div className={styles.wrap}>
|
||||
<div className={styles.content}>
|
||||
<div className={styles.sign}>НЕ НАЙДЕН</div>
|
||||
<div>Нам очень жаль.</div>
|
||||
</div>
|
||||
<div className={styles.image} />
|
||||
</div>
|
||||
);
|
||||
|
||||
export { ErrorNotFound };
|
27
src/containers/pages/ErrorNotFound/styles.scss
Normal file
27
src/containers/pages/ErrorNotFound/styles.scss
Normal file
|
@ -0,0 +1,27 @@
|
|||
.wrap {
|
||||
@include outer_shadow();
|
||||
|
||||
flex: 1;
|
||||
display: flex;
|
||||
align-items: stretch;
|
||||
justify-content: flex-start;
|
||||
background: $content_bg;
|
||||
border-radius: $radius;
|
||||
}
|
||||
|
||||
.content {
|
||||
flex: 2;
|
||||
padding: $gap * 4;
|
||||
}
|
||||
|
||||
.image {
|
||||
flex: 1 1;
|
||||
background: red;
|
||||
display: flex;
|
||||
border-radius: 0 $radius $radius 0;
|
||||
}
|
||||
|
||||
.sign {
|
||||
font: $font_24_semibold;
|
||||
font-size: 72px;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue