diff --git a/src/components/Views/FourOuFour.tsx b/src/components/Views/FourOuFour.tsx index 50395001..df1770b9 100644 --- a/src/components/Views/FourOuFour.tsx +++ b/src/components/Views/FourOuFour.tsx @@ -1,5 +1,6 @@ import { t } from '../../utils/intl' import Icon from '../Nav/Icon' +import '../../styles/FourOuFour.scss' export const FourOuFour = (_props) => { return ( @@ -7,34 +8,34 @@ export const FourOuFour = (_props) => {
- - error - +
+ + error + +
-
+
-
{t('Empty')}
-
404
+
{t('Error')}
+
404
-
+
-

{t(`You've reached a non-existed page`)}

-

{t('Try to find another way')}:

-
-
-
- - - -
+

{t(`You've reached a non-existed page`)}

+

{t('Try to find another way')}:

+ +
+ + +

- - {t('Back to mainpage')} - + {t('Back to mainpage')}

diff --git a/src/locales/ru.json b/src/locales/ru.json index 4d436096..719f5eac 100644 --- a/src/locales/ru.json +++ b/src/locales/ru.json @@ -5,6 +5,7 @@ "All posts": "Все публикации", "All topics": "Все темы", "Authors": "Авторы", + "Back to mainpage": "Вернуться на главную", "Become an author": "Стать автором", "Bookmarked": "Сохранено", "By alphabet": "По алфавиту", diff --git a/src/styles/FourOuFour.scss b/src/styles/FourOuFour.scss new file mode 100644 index 00000000..e4223c79 --- /dev/null +++ b/src/styles/FourOuFour.scss @@ -0,0 +1,70 @@ +.error-page-wrapper { + height: 100vh; +} + +.error-page { + position: relative; + top: 35%; + transform: translateY(-40%); + + .error-image { + display: block; + margin: auto; + width: 85%; + } + + .error-text { + font-weight: 300; + font-size: 28px; + left: 80px; + position: absolute; + text-align: center; + top: -2.25em; + + .big { + font-weight: 900; + letter-spacing: 4px; + font-size: 60px; + } + } + + .error-explain { + font-size: 16px; + position: absolute; + top: -3.4em; + left: 65px; + + p { + margin: 0 0 0.3em; + } + } + + .image-link:hover { + background: none; + } + + .search-submit { + height: 100%; + padding: 0 1em; + position: absolute; + right: 0; + top: 0; + } + + .pretty-form { + margin-top: 0.5em; + } + + .pretty-form__item input { + padding-right: 2.7em; + } + + .text-center { + text-align: center; + } +} + +.error-text-container, +.search-form-container { + position: relative; +}