0.0.160 routes

This commit is contained in:
SBD
2025-02-17 16:53:45 +03:00
parent 8119955f52
commit e3fd8457c0
10 changed files with 140 additions and 14 deletions

View File

@@ -0,0 +1,107 @@
.b_dont_found_anth{
padding: 9px 60px;
background: #fff;
border-radius: 10px;
position: relative;
min-height: 254px;
.first_imgs_line, .second_imgs_line {
display: flex;
align-items: center;
justify-content: space-between;
position: absolute;
&.first_imgs_line{
top: 9px;
left: 190px;
width: calc(100% - 380px);
}
&.second_imgs_line{
top: 117px;
left: 60px;
width: calc(100% - 120px);
}
}
.container_content{
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
min-height: 254px;
width: 100%;
}
.title{
font-size: 44px;
font-weight: 700;
margin: 0;
}
.description{
font-size: 16px;
font-weight: 400;
margin: 20px 0;
}
@media (max-width: 1440px) {
padding: 9px 25px;
.first_imgs_line, .second_imgs_line {
&.first_imgs_line{
top: 9px;
left: 140px;
width: calc(100% - 280px);
}
&.second_imgs_line{
top: 117px;
left: 25px;
width: calc(100% - 50px);
}
}
}
@media (max-width: 1200px) {
padding: 9px 25px;
.first_imgs_line, .second_imgs_line {
&.first_imgs_line{
display: none;
}
&.second_imgs_line{
min-height: 254px;
top: 0;
img{
width: 165px;
}
}
}
}
@media (max-width: 1024px) {
padding: 9px 11px;
.first_imgs_line, .second_imgs_line {
&.second_imgs_line{
min-height: 254px;
top: 0;
left: 11px;
width: calc(100% - 22px);
img{
width: 140px;
}
}
}
}
@media (max-width: 950px) {
.title{
font-size: 32px;
}
.first_imgs_line, .second_imgs_line {
&.second_imgs_line{
img{
width: 100px;
}
}
}
}
@media (max-width: 879px) {
.first_imgs_line, .second_imgs_line {
&.second_imgs_line{
display: none;
img{
width: 100px;
}
}
}
}
}

View File

@@ -12,17 +12,14 @@
display: grid;
grid-template-columns: 30% calc(100% - 30% - 41px);
gap: 41px;
.routes_search_results{
@media (max-width: 1160px) {
width: calc(100dvw - 40px);
}
}
/*.routes_search_results{*/
/* @media (max-width: 1160px) {*/
/* width: calc(100dvw - 40px);*/
/* }*/
/*}*/
@media (max-width: 1440px) {
margin-top: 40px;
}
@media (max-width: 992px) {
grid-template-columns: 20px;
}
@media (max-width: 800px) {
grid-template-columns: 1fr;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

View File

@@ -10,7 +10,7 @@ $(document).ready(function() {
el: $(".b_filter_routes")[0],
recover_el_view: true,
ghost_block:{name: 'route_filters'},
$unnatach_bottom_el: $("footer")[0]
$unnatach_bottom_el: $(".b_dont_found_anth")[0]
})
_scroll.init()
$('body')[0].onscroll = function() {

View File

@@ -14,7 +14,8 @@ class scroll{
}
attachElementWhenScroll(){
if (!this.attached_by_bottom_el && this.$unnatach_bottom_el && this.$unnatach_bottom_el.getBoundingClientRect().top <= window.innerHeight && this.attached){
let bottom_el_in_screen = this.$unnatach_bottom_el.getBoundingClientRect().top <= window.innerHeight
if (!this.attached_by_bottom_el && this.$unnatach_bottom_el && bottom_el_in_screen && this.attached){
let $unnatach_bottom_el_margin_top= window.getComputedStyle(this.$unnatach_bottom_el)
$unnatach_bottom_el_margin_top = $unnatach_bottom_el_margin_top.getPropertyValue('margin-top');
$unnatach_bottom_el_margin_top = $unnatach_bottom_el_margin_top.split('p')
@@ -26,7 +27,7 @@ class scroll{
} else if (this.attached_by_bottom_el && this.$unnatach_bottom_el && this.$unnatach_bottom_el.getBoundingClientRect().top >= window.innerHeight) {
this.attachFunc(false)
}
if (!this.attached && this.$el.getBoundingClientRect().top <= this.attach_top) {
if (!this.attached && this.$el.getBoundingClientRect().top <= this.attach_top && !bottom_el_in_screen) {
this.attachFunc()
} else if ((this.$el.parentElement.getBoundingClientRect().top - this.attach_top) > 0){
this.$el.style.position = "unset";

View File

@@ -0,0 +1,23 @@
{% load static %}
{% load i18n %}
<link rel="stylesheet" href="{% static "v2/css/blocks/b_dont_found_anth.css" %}">
<div class="b_dont_found_anth">
<div class="first_imgs_line">
<img src="{% static "v2/icons/blocks/b_dont_found_anth/box1.png" %}" alt="">
<img src="{% static "v2/icons/blocks/b_dont_found_anth/box2.png" %}" alt="">
</div>
<div class="second_imgs_line">
<img src="{% static "v2/icons/blocks/b_dont_found_anth/box3.png" %}" alt="">
<img src="{% static "v2/icons/blocks/b_dont_found_anth/box4.png" %}" alt="">
</div>
<div class="container_content">
<div class="title">{% trans "Не нашли, что искали?" %}</div>
<div class="description">
{% trans "Создайте свое объявление и Вас начнут находить перевозчики со всего мира!" %}
</div>
<div class="container_btns" style="--justify: center;">
<a class="primary_btn" style="--padding: 19px 40px 21px 40px;">{% trans "Создать объявление" %}</a>
</div>
</div>
</div>

View File

@@ -28,7 +28,5 @@
{% include "v2/blocks/b_search_routes_result.html" %}
</div>
</div>
<div class="didnt_found_anth">
</div>
{% include 'v2/blocks/b_dont_found_anth.html' %}
{% endblock %}