This commit is contained in:
root 2021-06-18 12:46:56 +00:00
commit c97fb7540d
5 changed files with 253 additions and 1 deletions

View File

@ -731,4 +731,99 @@
} }
} }
} }
.popUp {
display: flex;
transform: translateY(100%);
position: fixed;
bottom: 0;
left: 0;
background: #f7f7f7;
z-index: 11;
animation: popUp 0.2s linear;
border-radius: 20px 20px 0 0;
padding: 40px 20px;
width: calc(100% - 40px);
@include transition;
&__inner {
width: 100%;
&-header {
display: flex;
align-items: center;
justify-content: space-between;
&-logo {
width: 75px;
img {
width: 100%;
}
}
&-close {
display: flex;
align-items: flex-end;
justify-content: flex-end;
svg {
width: 18px;
height: 18px;
fill: #000;
}
}
}
&-body {
margin: 15px 0;
&-subtitle {
font-size: 16px;
line-height: 20px;
font-weight: 400;
color: #000000;
text-align: center;
}
&-title {
font-size: 20px;
line-height: 24px;
font-weight: 700;
color: #000000;
text-align: center;
margin-bottom: 15px;
}
}
&-footer {
&-btn {
width: 80%;
margin: 0 auto;
padding: 15px 0;
align-items: center;
justify-content: center;
color: #fff;
text-align: center;
font-size: 16px;
line-height: 20px;
border-radius: 15px;
background: $main-color;
display: flex;
}
&-close {
text-align: center;
font-size: 16px;
line-height: 20px;
font-weight: 400;
color: $main-color;
margin-top: 15px;
}
}
}
&.active {
transform: translateY(0%);
}
}
@keyframes popUp {
0% {
opacity: 0;
transform: translateY(100%);
}
100% {
opacity: 1;
transform: translateY(0%);
}
}
} }

View File

@ -377,6 +377,9 @@
} }
} }
// partner end // partner end
.popUp {
display: none;
}
/* progressive image CSS */ /* progressive image CSS */
@keyframes reveal { @keyframes reveal {

View File

@ -1586,6 +1586,10 @@ li {
margin-bottom: 80px; margin-bottom: 80px;
} }
.popUp {
display: none;
}
/* progressive image CSS */ /* progressive image CSS */
@keyframes reveal { @keyframes reveal {
0% { 0% {
@ -2713,4 +2717,98 @@ li {
.main__body-card { .main__body-card {
margin: 0 0 0 0; margin: 0 0 0 0;
} }
.popUp {
display: flex;
transform: translateY(100%);
position: fixed;
bottom: 0;
left: 0;
background: #f7f7f7;
z-index: 11;
animation: popUp 0.2s linear;
border-radius: 20px 20px 0 0;
padding: 40px 20px;
width: calc(100% - 40px);
transition: all 0.2s ease-in-out 0s;
-moz-transition: all 0.2s ease-in-out 0s;
}
.popUp__inner {
width: 100%;
}
.popUp__inner-header {
display: flex;
align-items: center;
justify-content: space-between;
}
.popUp__inner-header-logo {
width: 75px;
}
.popUp__inner-header-logo img {
width: 100%;
}
.popUp__inner-header-close {
display: flex;
align-items: flex-end;
justify-content: flex-end;
}
.popUp__inner-header-close svg {
width: 18px;
height: 18px;
fill: #000;
}
.popUp__inner-body {
margin: 15px 0;
}
.popUp__inner-body-subtitle {
font-size: 16px;
line-height: 20px;
font-weight: 400;
color: #000000;
text-align: center;
}
.popUp__inner-body-title {
font-size: 20px;
line-height: 24px;
font-weight: 700;
color: #000000;
text-align: center;
margin-bottom: 15px;
}
.popUp__inner-footer-btn {
width: 80%;
margin: 0 auto;
padding: 15px 0;
align-items: center;
justify-content: center;
color: #fff;
text-align: center;
font-size: 16px;
line-height: 20px;
border-radius: 15px;
background: #fd4c24;
display: flex;
}
.popUp__inner-footer-close {
text-align: center;
font-size: 16px;
line-height: 20px;
font-weight: 400;
color: #fd4c24;
margin-top: 15px;
}
.popUp.active {
transform: translateY(0%);
}
@keyframes popUp {
0% {
opacity: 0;
transform: translateY(100%);
}
100% {
opacity: 1;
transform: translateY(0%);
}
}
} }

View File

@ -44,6 +44,17 @@ $(".newsSlider").slick({
}, },
], ],
}); });
// popUp start
var popUp = document.getElementById("popUp");
var popUpClose1 = document.getElementById("popUpClose1");
var popUpClose2 = document.getElementById("popUpClose2");
popUpClose1.onclick = function () {
popUp.classList.remove("active");
};
popUpClose2.onclick = function () {
popUp.classList.remove("active");
};
// popUp end
$(".marquee").slick({ $(".marquee").slick({
speed: 8000, speed: 8000,
autoplay: true, autoplay: true,

View File

@ -146,7 +146,52 @@ random = 0
</div> </div>
</div> </div>
</section> </section>
<!-- popUp end
================================================ -->
<section class="popUp active" id="popUp">
<div class="popUp__inner">
<div class="popUp__inner-header">
<div class="popUp__inner-header-logo">
<img src="images/logo.svg" alt="">
</div>
<div class="popUp__inner-header-close" id="popUpClose1">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 492 492"
style="enable-background:new 0 0 492 492;" xml:space="preserve">
<g>
<g>
<path fill="" d="M300.188,246L484.14,62.04c5.06-5.064,7.852-11.82,7.86-19.024c0-7.208-2.792-13.972-7.86-19.028L468.02,7.872
c-5.068-5.076-11.824-7.856-19.036-7.856c-7.2,0-13.956,2.78-19.024,7.856L246.008,191.82L62.048,7.872
c-5.06-5.076-11.82-7.856-19.028-7.856c-7.2,0-13.96,2.78-19.02,7.856L7.872,23.988c-10.496,10.496-10.496,27.568,0,38.052
L191.828,246L7.872,429.952c-5.064,5.072-7.852,11.828-7.852,19.032c0,7.204,2.788,13.96,7.852,19.028l16.124,16.116
c5.06,5.072,11.824,7.856,19.02,7.856c7.208,0,13.968-2.784,19.028-7.856l183.96-183.952l183.952,183.952
c5.068,5.072,11.824,7.856,19.024,7.856h0.008c7.204,0,13.96-2.784,19.028-7.856l16.12-16.116
c5.06-5.064,7.852-11.824,7.852-19.028c0-7.204-2.792-13.96-7.852-19.028L300.188,246z" />
</g>
</g>
</svg>
</div>
</div>
<div class="popUp__inner-body">
<div class="popUp__inner-body-title">
{{"Приложение"|_}} Orient news
</div>
<div class="popUp__inner-body-subtitle">
{{"Будьте в курсе новостей с нами"|_}}
</div>
</div>
<div class="popUp__inner-footer">
<a href="#" class="popUp__inner-footer-btn">
{{"Скачать"|_}}
</a>
<div class="popUp__inner-footer-close" id="popUpClose2">
Спасибо, не надо.
</div>
</div>
</div>
</section>
<!-- popUp end
================================================ -->
<!-- main end <!-- main end
================================================ --> ================================================ -->