diff --git a/dicquo/dicquo/urls.py b/dicquo/dicquo/urls.py index c6af8fe..3ab87c0 100644 --- a/dicquo/dicquo/urls.py +++ b/dicquo/dicquo/urls.py @@ -42,4 +42,7 @@ if settings.DEBUG: path('500/', TemplateView.as_view(template_name="500.html")), path('403/', TemplateView.as_view(template_name="403.html")), path('400/', TemplateView.as_view(template_name="400.html")), + # Для проверки статических страниц ошибок (Nginx) + path('static_404/', TemplateView.as_view(template_name="static_404.html")), + path('static_500/', TemplateView.as_view(template_name="static_500.html")), ] diff --git a/dicquo/templates/400.html b/dicquo/templates/400.html index bf83d51..abfc748 100644 --- a/dicquo/templates/400.html +++ b/dicquo/templates/400.html @@ -1,31 +1,44 @@ -{% extends "base.html" %} - -{% block Title %}400: Плохой запрос{% endblock %} - -{% block CONTENT %}{% include "blocks/header_nav.html" %} -
- -
- - -
- -
- «Вы спрашиваете меня о чем-то странном. Я не понимаю ваш запрос.» -
- - -
- Озадаченный Сервер (400) -
-
- -
- - -
- Сформулировать иначе (на главную) + + + + + + 400: Плохой запрос | DicQuo + + + +
+ +
+
+
+
+

Загадочно:

+
+ «Вы спрашиваете меня о чем-то странном. Я не понимаю + ваш запрос.» +
+ Озадаченный Сервер (400) +
+
+
+ - -{% endblock %} + + diff --git a/dicquo/templates/403.html b/dicquo/templates/403.html index e7fb3c8..c1be25d 100644 --- a/dicquo/templates/403.html +++ b/dicquo/templates/403.html @@ -1,31 +1,43 @@ -{% extends "base.html" %} - -{% block Title %}403: Доступ запрещен{% endblock %} - -{% block CONTENT %}{% include "blocks/header_nav.html" %} -
- -
- - -
- -
- «Вам сюда нельзя. Даже если очень хочется. Уходите!» -
- - -
- Строгий Вахтёр (403) -
-
- -
- - -
- Уйти по-добру по-здорову + + + + + + 403: Доступ запрещен | DicQuo + + + +
+ +
+
+
+
+

Категорически:

+
+ «Вам сюда нельзя. Даже если очень хочется. Уходите!» +
+ Строгий Вахтёр (403) +
+
+
+ - -{% endblock %} + + diff --git a/dicquo/templates/404.html b/dicquo/templates/404.html index 69d3109..1d7536b 100644 --- a/dicquo/templates/404.html +++ b/dicquo/templates/404.html @@ -1,31 +1,43 @@ -{% extends "base.html" %} - -{% block Title %}404: Страница не найдена{% endblock %} - -{% block CONTENT %}{% include "blocks/header_nav.html" %} -
- -
- - -
- -
- «Я искал везде. Даже под диваном. Этой страницы здесь нет.» -
- - -
- Системный Администратор (404) -
-
- -
- - -
- Вернуться на главную + + + + + + 404: Страница не найдена | DicQuo + + + +
+ +
+
+
+
+

Вздыхая:

+
+ «Я искал везде. Даже под диваном. Этой страницы здесь нет.» +
+ Системный Администратор (404) +
+
+
+ - -{% endblock %} + + diff --git a/dicquo/templates/500.html b/dicquo/templates/500.html index bfe3fa2..649ccb8 100644 --- a/dicquo/templates/500.html +++ b/dicquo/templates/500.html @@ -1,31 +1,44 @@ -{% extends "base.html" %} - -{% block Title %}500: Ошибка сервера{% endblock %} - -{% block CONTENT %}{% include "blocks/header_nav.html" %} -
- -
- - -
- -
- «Что-то пошло не так. Кажется, я уронил сервер. Подождите, пока я его подниму.» -
- - -
- Системный Администратор (500) -
-
- -
- - -
- Попробовать обновить страницу + + + + + + 500: Ошибка сервера DicQuo + + + +
+ +
+
+
+
+

Неожиданно:

+
+ «Что-то пошло не так. Кажется, я уронил сервер. + Подождите, пока я его подниму.» +
+ Системный Администратор (500) +
+
+
+ - -{% endblock %} + + diff --git a/dicquo/templates/static_404.html b/dicquo/templates/static_404.html index 4d1445f..dc0228d 100644 --- a/dicquo/templates/static_404.html +++ b/dicquo/templates/static_404.html @@ -1,27 +1,43 @@ - - - -
- Вернуться на главную - Системный Администратор (404) - - «Я искал везде. Даже под диваном. Этой страницы здесь нет.» -
-
- - - - a:hover { color: #999; border-bottom: 1px solid #999; } - a { color: #555; text-decoration: none; border-bottom: 1px dotted #555; transition: color 0.3s; font-size: 0.8em; margin-top: 30px; display: inline-block;} - cite { display: block; font-size: 0.9em; color: #777; margin-top: 15px; font-style: normal;} - blockquote span { margin-left: -0.44em; } - blockquote { font-size: 2em; margin: 0 0 20px 0; font-style: italic; line-height: 1.4; } - .container { max-width: 600px; padding: 20px; } - body { background-color: #111; color: #ccc; font-family: Georgia, serif; display: flex; align-items: center; justify-content: center; height: 100vh; margin: 0; text-align: center; } - + + +
+ +
+
+
+
+

Озадачено:

+
+ «Я искал везде. Даже под диваном. Этой страницы здесь нет.» +
+ Системный Администратор (404) +
+
+
+ + + diff --git a/dicquo/templates/static_500.html b/dicquo/templates/static_500.html index ad1399d..1d0c3f1 100644 --- a/dicquo/templates/static_500.html +++ b/dicquo/templates/static_500.html @@ -1,27 +1,45 @@ - - - 500: Ошибка сервера - + + + 500: Ошибка сервера | DicQuo + -
-
- «Что-то пошло не так. Кажется, я уронил сервер, контейнер или  случилось что-то ещё. Подождите, пока я его подниму.» -
- Системный Администратор (5xx) - Попробовать обновить через 5 минут. -
+
+ +
+
+
+
+

Неожиданно:

+
+ «Что-то пошло не так. Кажется, я уронил сервер. + Подождите, пока я его подниму.» +
+ Системный Администратор (500) +
+
+
+ diff --git a/public/static/css/dicquo.css b/public/static/css/dicquo.css index 6ef89ba..1ed431c 100644 --- a/public/static/css/dicquo.css +++ b/public/static/css/dicquo.css @@ -120,16 +120,11 @@ header > nav > #stats-menu > a:hover { /* MAIN ARTICLE CONTENT */ main { - /*justify-content: space-between;*/ - /*align-items: center;*/ padding: 1vh 8vw; display: flex; flex-direction: column; justify-content: center; min-height: 60vh; - /*width: 90%;*/ - /*max-width: 1200px;*/ - /*margin: 0 auto;*/ } main > article {