0.0.140 routes

This commit is contained in:
SBD
2025-02-01 14:07:30 +03:00
parent 70dd911445
commit 293b7c9f6f
13 changed files with 188 additions and 15 deletions

View File

@@ -154,7 +154,7 @@ html, body{
.wrapper_content {
margin: 20px;
max-width: 1720px;
position: relative;
/*position: relative;*/
min-height: 695px;
max-height: 100%;
}

View File

@@ -0,0 +1,91 @@
.b_login_modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
--modal-width: 690px;
--modal-height: 492px;
--modal-padding: 28px 28.7px 40px 52px;
box-sizing: border-box;
z-index: 10000000;
.b_login_modal_container_content{
position: fixed;
background: #FFFFFF;
box-shadow: 0 3px 14px rgba(74, 58, 255, 0.03), 0 -2px 4px rgba(20, 20, 43, 0.12), 0 12px 44px rgba(20, 20, 43, 0.34);
border-radius: 30px;
width: var(--modal-width);
height: var(--modal-height);
padding: var(--modal-padding);
left: calc(50% - (var(--modal-width) / 2));
top: calc(50% - (var(--modal-height) / 2));
z-index: 1000000000;
box-sizing: border-box;
}
.b_login_modal_content{
position: relative;
text-align: -webkit-center;
}
.xmark{
position: absolute;
top: 0;
right: 0;
width: 16px;
height: 16px;
display: block;
cursor: pointer;
}
.lock_img_container{
position: relative;
background: #E1E1E1;
border-radius: 39px;
margin-top: 8px;
width: 140px;
height: 140px;
img{
width: 130px;
height: 130px;
position: absolute;
top: 5px;
left: 5px;
}
}
.modal_title{
margin-top: 40px;
font-size: 34px;
font-weight: 700;
color: #272424;
}
.modal_description{
margin: 20px 0;
font-size: 20px;
font-weight: 400;
color: #272424;
width: 495px;
overflow-wrap: break-word;
}
.registr_btn{
margin-top: 10px;
font-size: 18px;
font-weight: 600;
color: #27242499;
}
}

View File

@@ -0,0 +1,27 @@
.primary_btn{
--background: #FF613A;
--border: none;
--box-shadow: 0px 3px 12px rgba(74, 58, 255, 0.18);
--border-radius: 10px;
--margin: 0;
--padding: 19px 0 21px 0;
--font-size: 18px;
--font-weight: 700;
--color: #FFFFFF;
--text-align: center;
background: var(--background);
border: var(--border);
box-shadow: var(--box-shadow);
border-radius: var(--border-radius);
margin: var(--margin);
padding: var(--padding);
font-size: var(--font-size);
font-weight: var(--font-weight);
color: var(--color);
text-align: var(--text-align);
cursor: pointer;
}

View File

@@ -0,0 +1,15 @@
.modal {
display: none;
&.open{
display: block;
}
.overlay{
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: #0000009C;
z-index: 10000000;
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

View File

@@ -0,0 +1,4 @@
<svg width="19" height="18" viewBox="0 0 19 18" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M1.29785 17L17.2979 1" stroke="#272424" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M17.2979 17L1.29785 1" stroke="#272424" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>

After

Width:  |  Height:  |  Size: 333 B

View File

@@ -0,0 +1,6 @@
function closeModal(el) {
let $parent = el.closest('.modal');
$parent.classList.remove('open');
$("body")[0].style.overflow = "auto";
}

View File

@@ -116,14 +116,19 @@ function highlightRoute(el) {
request.ajaxRequest()
}
function respondBtnClickEvent(el) {
function respondBtnClickEvent(el, authentificated) {
if (!el) return;
let $parent = el.closest(".w_route_card")
let $responde_cont = $parent.querySelector(".respond_route_cont")
if (window.innerWidth < 1160) $responde_cont = $parent.querySelector(".respond_route_cont.mobile")
if (authentificated !== 'False') {
let $parent = el.closest(".w_route_card")
let $responde_cont = $parent.querySelector(".respond_route_cont")
if (window.innerWidth < 1160) $responde_cont = $parent.querySelector(".respond_route_cont.mobile")
$(el).fadeOut(500);
sleep(500).then(() => {
$($responde_cont).fadeIn(500);
})
$(el).fadeOut(500);
sleep(500).then(() => {
$($responde_cont).fadeIn(500);
})
} else {
$(".b_login_modal").addClass('open');
$("body")[0].style.overflow = "hidden";
}
}