From b0f138489d97ecc06084800286ffcb82c30f69ae Mon Sep 17 00:00:00 2001 From: borissedw Date: Fri, 8 Sep 2023 17:56:48 +0300 Subject: [PATCH] 0.0.234 --- static/css/styles(boris).css | 57 +++++++++++++++++++ static/img/boxes_for_not_found_routes/b_1.svg | 21 +++++++ static/img/boxes_for_not_found_routes/b_2.svg | 21 +++++++ static/js/filters_functions_find_route.js | 26 +++++++-- templates/blocks/b_finded_routes.html | 19 ++++++- 5 files changed, 136 insertions(+), 8 deletions(-) create mode 100644 static/img/boxes_for_not_found_routes/b_1.svg create mode 100644 static/img/boxes_for_not_found_routes/b_2.svg diff --git a/static/css/styles(boris).css b/static/css/styles(boris).css index 3c51f30..84481c2 100644 --- a/static/css/styles(boris).css +++ b/static/css/styles(boris).css @@ -16,16 +16,44 @@ } +.mb-10{ + margin-bottom: 10px; +} + .orange-text{ color: #FF613A; } +.fw-700{ + font-weight: 700; +} + +.fz-24{ + font-size: 24px; +} + +.c-txt-b2{ + color: #272424; +} + +.w-80{ + width: 80%; +} + +.m-a{ + margin: auto; +} + .title_page{ font-size: 44px; color: #272424; font-weight: 700; } +.m-t-8p{ + margin-top: 8%; +} + .cut-width{ max-width: 1280px; margin: auto; @@ -898,6 +926,35 @@ /*display: inline-block;*/ } +.not_found_routes{ + width: 98%; + height: 250px; + background: #FFFFFF; + box-shadow: -1px 4px 10px 0 rgba(198, 199, 203, 0.20), 0 -1px 10px 0 rgba(198, 199, 203, 0.20); + position: relative; + padding: 2%; + display: none; +} + +.not_found_routes.show{ + display: block; +} + + +.boxes_not_fond_routes{ + position: absolute; + width: 147px; + height: 129px; + bottom: 25%; +} +.boxes_not_fond_routes.left{ + left: -10px; +} + +.boxes_not_fond_routes.right{ + right: -10px; +} + .carrier-card{ width: 100%; /*height: 830px;*/ diff --git a/static/img/boxes_for_not_found_routes/b_1.svg b/static/img/boxes_for_not_found_routes/b_1.svg new file mode 100644 index 0000000..0e2a790 --- /dev/null +++ b/static/img/boxes_for_not_found_routes/b_1.svg @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/static/img/boxes_for_not_found_routes/b_2.svg b/static/img/boxes_for_not_found_routes/b_2.svg new file mode 100644 index 0000000..dd59f26 --- /dev/null +++ b/static/img/boxes_for_not_found_routes/b_2.svg @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/static/js/filters_functions_find_route.js b/static/js/filters_functions_find_route.js index f73b173..b0da044 100644 --- a/static/js/filters_functions_find_route.js +++ b/static/js/filters_functions_find_route.js @@ -48,18 +48,34 @@ function filters_func_find_route_main (el,owner_type=null,win_loc_replace=null){ document.querySelector(".loader_filters_routes").classList.toggle("show") document.querySelector(".block-finded-routes").innerHTML = data.html if (data.html === "\n\n\n\n\n"){ - document.querySelector(".block-finded-routes").innerHTML = "Нечего не найдено!" + // document.querySelector(".block-finded-routes").innerHTML = "Нечего не найдено!" + document.querySelector(".block-finded-routes").innerHTML = "
\n" + + "
\n" + + " Упс... Ничего не найдено, попробуйте\n" + + " изменить параметры поиска или оставьте заявку\n" + + " на перевозку посылки\n" + + "
\n" + + " \n" + + " \n" + + "
" + } else { document.querySelector(".block-finded-routes").innerHTML = data.html } // window.location.href = window.location.href + "?" + get_url // window.location.search = "?" + get_url history.pushState({'data':data_d,'str_data':get_url}, "state_filters", `?${get_url}`); - let element = document.createElement("img") - element.classList.add("loader_filters_routes") - element.src = "/static/img/svg/loader.svg" + // let element = document.createElement("img") + // element.classList.add("loader_filters_routes") + // element.src = "/static/img/svg/loader.svg" + let div = document.createElement("div") + div.classList.add("width-100") + div.classList.add("text-align-center") + div.classList.add("mb-10") + + div.innerHTML = "" let ins_bef_el = document.querySelector(".block-finded-routes").firstChild - $(element).insertBefore(ins_bef_el) + $(div).insertBefore(ins_bef_el) // window.history.pushState({data:get_url // },{}) }, diff --git a/templates/blocks/b_finded_routes.html b/templates/blocks/b_finded_routes.html index 20ead58..d34e246 100644 --- a/templates/blocks/b_finded_routes.html +++ b/templates/blocks/b_finded_routes.html @@ -2,9 +2,20 @@
{% if not routes %} - Нечего не найдено! +{# Нечего не найдено!#} +
+
+ Упс... Ничего не найдено, попробуйте + изменить параметры поиска или оставьте заявку + на перевозку посылки +
+ + +
{% endif %} - +
+ +
{% include "blocks/b_search_routes.html" %}
@@ -14,7 +25,9 @@ {% if last_block_routes == false %}
- +
+ +
{% endif %}