TRI-283: add benefits animate about
This commit is contained in:
@@ -4,5 +4,8 @@
|
|||||||
@import url('./moover/easy.css');
|
@import url('./moover/easy.css');
|
||||||
@import url('./moover/use.css');
|
@import url('./moover/use.css');
|
||||||
@import url('./moover/chatterbox.css');
|
@import url('./moover/chatterbox.css');
|
||||||
|
@import url('./moover/animate.css');
|
||||||
|
@import url('./moover/about.css');
|
||||||
|
@import url('./moover/benefits.css');
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
42
static/css/moover/about.css
Normal file
42
static/css/moover/about.css
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
.about {
|
||||||
|
margin-bottom: 168px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.about .title {
|
||||||
|
margin-bottom: 60px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.about__grid {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(2, 1fr);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.about__img {
|
||||||
|
box-shadow: inset 18.19px 1.21px 18.19px 0 #FFFFFFCC,
|
||||||
|
inset -18.19px -1.21px 18.19px 0 #4052801A,
|
||||||
|
48.5px 36.38px 36.38px 0 #6B7F9933;
|
||||||
|
border-radius: 31px;
|
||||||
|
margin-left: 8px;
|
||||||
|
margin-top: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.about__right {
|
||||||
|
text-align: left;
|
||||||
|
padding-top: 43px;
|
||||||
|
padding-left: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.about__half {
|
||||||
|
max-width: 50%;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.about__half:last-child {
|
||||||
|
padding-left: 16px;
|
||||||
|
max-width: 47%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.about b {
|
||||||
|
letter-spacing: 0.4px;
|
||||||
|
}
|
||||||
24
static/css/moover/animate.css
vendored
Normal file
24
static/css/moover/animate.css
vendored
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
.animate {
|
||||||
|
padding: 60px 40px 49px;
|
||||||
|
opacity: 0;
|
||||||
|
transform: translateX(-180px);
|
||||||
|
background-color: var(--color-black2);
|
||||||
|
border-radius: 30px;
|
||||||
|
color: white;
|
||||||
|
margin-bottom: 160px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.animate .title {
|
||||||
|
margin-bottom: 25px;
|
||||||
|
max-width: 87%;
|
||||||
|
/*width: 90%;*/
|
||||||
|
}
|
||||||
|
.animate .subtitle {
|
||||||
|
width: 47%;
|
||||||
|
margin: 0 auto 23px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.animate__link {
|
||||||
|
color: var(--color-orange);
|
||||||
|
text-decoration: underline !important;
|
||||||
|
}
|
||||||
37
static/css/moover/benefits.css
Normal file
37
static/css/moover/benefits.css
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
.benefits {
|
||||||
|
/*padding: 0 50px;*/
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.benefits .title {
|
||||||
|
margin-bottom: 76px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.benefits__grid {
|
||||||
|
text-align: left;
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1.5fr 3fr 1.5fr;
|
||||||
|
}
|
||||||
|
|
||||||
|
.benefits__col {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.benefits__item {
|
||||||
|
margin-bottom: 54px;
|
||||||
|
padding-right: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.benefits img {
|
||||||
|
position: relative;
|
||||||
|
top: 14px;
|
||||||
|
right: -11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.benefits__third {
|
||||||
|
padding-left: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.benefits__third .benefits__item {
|
||||||
|
margin-bottom: 22px;
|
||||||
|
}
|
||||||
@@ -1,4 +1,6 @@
|
|||||||
.chatterbox {}
|
.chatterbox {
|
||||||
|
margin-bottom: 160px;
|
||||||
|
}
|
||||||
|
|
||||||
.chatterbox .title {
|
.chatterbox .title {
|
||||||
margin-bottom: 60px;
|
margin-bottom: 60px;
|
||||||
@@ -52,6 +54,11 @@
|
|||||||
z-index: 1;
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.slick-center .chatterbox__vbox video {
|
||||||
|
pointer-events: initial;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
.chatterbox__vbtn {
|
.chatterbox__vbtn {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0;
|
left: 0;
|
||||||
@@ -63,10 +70,6 @@
|
|||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.loaded .chatterbox__vbtn {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.chatterbox__vbtn::before {
|
.chatterbox__vbtn::before {
|
||||||
width: 20px;
|
width: 20px;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
@@ -113,5 +116,17 @@
|
|||||||
|
|
||||||
.chatterbox video {
|
.chatterbox video {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
|
opacity: 0;
|
||||||
|
transition: opacity 0.2s ease-in-out;
|
||||||
|
pointer-events: none;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.loaded .chatterbox__vbtn {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.loaded video {
|
||||||
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.easy .subtitle {
|
.easy .subtitle {
|
||||||
margin-bottom: 42px;
|
margin-bottom: 41px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.easy__grid {
|
.easy__grid {
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
'a c';
|
'a c';
|
||||||
grid-column-gap: 20px;
|
grid-column-gap: 20px;
|
||||||
grid-row-gap: 80px;
|
grid-row-gap: 80px;
|
||||||
margin-bottom: 48px;
|
margin-bottom: 46px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.easy__item {
|
.easy__item {
|
||||||
|
|||||||
@@ -22,11 +22,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.presentation__title {
|
.presentation__title {
|
||||||
margin-bottom: 21px;
|
margin-bottom: 23px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.presentation__subtitle {
|
.presentation__subtitle {
|
||||||
margin-bottom: 39px;
|
margin-bottom: 41px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -27,17 +27,23 @@
|
|||||||
--color-primary: #FF613A;
|
--color-primary: #FF613A;
|
||||||
--color-white: #FFFFFF;
|
--color-white: #FFFFFF;
|
||||||
--color-black: #000000;
|
--color-black: #000000;
|
||||||
|
--color-black2: #272424;
|
||||||
--color-grey: #F1F1F1;
|
--color-grey: #F1F1F1;
|
||||||
--color-grey2: #7A7979;
|
--color-grey2: #7A7979;
|
||||||
|
--color-orange: #FF613A;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
--box-shadow-primary: -1px 4px 10px 0 rgba(198, 199, 203, 0.20),
|
--box-shadow-primary: -1px 4px 10px 0 rgba(198, 199, 203, 0.20),
|
||||||
0 -1px 10px 0 rgba(198, 199, 203, 0.20);
|
0 -1px 10px 0 rgba(198, 199, 203, 0.20);
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
color: var(--color-black2);
|
||||||
}
|
}
|
||||||
|
|
||||||
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
|
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
h1, .title {
|
h1, .title {
|
||||||
@@ -68,6 +74,10 @@ p {
|
|||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
b {
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
@@ -99,6 +109,7 @@ p {
|
|||||||
|
|
||||||
.subtitle {
|
.subtitle {
|
||||||
margin-bottom: 81px;
|
margin-bottom: 81px;
|
||||||
|
line-height: 22px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hide {
|
.hide {
|
||||||
|
|||||||
@@ -18,22 +18,39 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.use__link {
|
.use__link {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
line-height: 26px;
|
line-height: 26px;
|
||||||
color:var(--color-grey2);
|
color: var(--color-grey2);
|
||||||
}
|
}
|
||||||
|
|
||||||
.use.use--diff .title {
|
.use.use--diff .title {
|
||||||
width: 60%;
|
width: 60%;
|
||||||
margin-bottom: 60px;
|
margin-bottom: 60px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.use.use--diff .use__img {
|
.use.use--diff .use__img {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
margin-bottom: 17px;
|
margin-bottom: 17px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.use.use--lett {
|
||||||
|
margin-bottom: 120px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.use.use--lett .title {
|
||||||
|
margin-bottom: 51px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.use.use--lett .use__img {
|
||||||
|
margin-left: -5px;
|
||||||
|
margin-right: -5px;
|
||||||
|
max-width: 110%;
|
||||||
|
width: 1290px;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -139,4 +139,8 @@
|
|||||||
.slick-next {
|
.slick-next {
|
||||||
right: 0;
|
right: 0;
|
||||||
transform: rotate(180deg) translate(0, 50%);
|
transform: rotate(180deg) translate(0, 50%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.slick-disabled {
|
||||||
|
display: none !important;
|
||||||
}
|
}
|
||||||
BIN
static/img/png/about.png
Normal file
BIN
static/img/png/about.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 25 KiB |
BIN
static/img/png/benefits.png
Normal file
BIN
static/img/png/benefits.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 168 KiB |
BIN
static/img/png/use-letterss.png
Normal file
BIN
static/img/png/use-letterss.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 109 KiB |
@@ -136,12 +136,15 @@
|
|||||||
{% for media_item in page.get_media_items %}
|
{% for media_item in page.get_media_items %}
|
||||||
<div class="slick-slide">
|
<div class="slick-slide">
|
||||||
<div class="chatterbox__slide">
|
<div class="chatterbox__slide">
|
||||||
<div class="chatterbox__vicon"></div>
|
<div class="chatterbox__vbtn"></div>
|
||||||
|
<div class="chatterbox__wrap">
|
||||||
|
<div class="chatterbox__vbox">
|
||||||
|
|
||||||
<video src="{{ MEDIA_URL }}{{ media_item.video }}"></video>
|
<video data-src="{{ MEDIA_URL }}{{ media_item.video }}" autoplay></video>
|
||||||
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{# <div class="slick-slide">#}
|
{# <div class="slick-slide">#}
|
||||||
{# <div class="chatterbox__slide">#}
|
{# <div class="chatterbox__slide">#}
|
||||||
@@ -203,8 +206,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
console.log('run');
|
|
||||||
|
|
||||||
function handlerVideos() {
|
function handlerVideos() {
|
||||||
const vtns = $('.chatterbox__vbtn');
|
const vtns = $('.chatterbox__vbtn');
|
||||||
if (!vtns.length) return;
|
if (!vtns.length) return;
|
||||||
@@ -226,13 +227,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
handlerVideos();
|
handlerVideos();
|
||||||
|
|
||||||
$('.slick-slider')
|
$('.slick-slider')
|
||||||
.slick({
|
.slick({
|
||||||
centerMode: true,
|
centerMode: true,
|
||||||
{#centerPadding: '160px',#}
|
{#centerPadding: '160px',#}
|
||||||
slidesToShow: 3,
|
slidesToShow: 3,
|
||||||
lazyLoad: 'ondemand',
|
infinite: false,
|
||||||
|
initialSlide: 1,
|
||||||
|
{#lazyLoad: 'ondemand',#}
|
||||||
{#lazyLoad: 'progressive',#}
|
{#lazyLoad: 'progressive',#}
|
||||||
responsive: [
|
responsive: [
|
||||||
{
|
{
|
||||||
@@ -259,15 +261,101 @@
|
|||||||
slick.$slides[currentSlide]?.querySelector('video')?.pause();
|
slick.$slides[currentSlide]?.querySelector('video')?.pause();
|
||||||
console.log('edge was hit', slick.$slides[currentSlide]);
|
console.log('edge was hit', slick.$slides[currentSlide]);
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</section>
|
</section>
|
||||||
|
<section class="use use--lett">
|
||||||
|
<div class="title">{% translate "Что о нас пишут люди" %}</div>
|
||||||
|
<img src="{% static "img/png/use-letterss.png" %}" alt="list letters" class="use__img">
|
||||||
|
</section>
|
||||||
|
<section class="animate">
|
||||||
|
<div class="title">
|
||||||
|
{% translate "Хочешь отправить посылку партнеру, родным или знакомым людям быстро и недорого?" %}
|
||||||
|
</div>
|
||||||
|
<div class="subtitle">
|
||||||
|
{% translate "Зарегистрируйся на <a href='#' class='animate__link'>Trip With Bonus</a> прямо сейчас, размести бесплатно объявление и получи запросы на перевозку твоей посылки" %}
|
||||||
|
</div>
|
||||||
|
<a href="#form" class="use__btn btn btn--primary">{% translate "Разместить объявление" %}</a>
|
||||||
|
<script>
|
||||||
|
document.addEventListener("DOMContentLoaded", () => {
|
||||||
|
const animate = document.querySelector('.animate');
|
||||||
|
const observer = new IntersectionObserver(
|
||||||
|
(entries, interserctionObserver) => {
|
||||||
|
entries.forEach(entry => {
|
||||||
|
console.log('or', entry)
|
||||||
|
if (entry.isIntersecting) {
|
||||||
|
const el = entry.target;
|
||||||
|
interserctionObserver.disconnect();
|
||||||
|
(() => {
|
||||||
|
el.style.opacity = 1;
|
||||||
|
el.style.transform = 'translateX(0)';
|
||||||
|
el.style.transition = 'opacity 1.3s ease, transform 1.5s ease';
|
||||||
|
})();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}, {root: null, rootMargin: '0px'},
|
||||||
|
);
|
||||||
|
observer.observe(animate);
|
||||||
|
}
|
||||||
|
)
|
||||||
|
;
|
||||||
|
</script>
|
||||||
|
</section>
|
||||||
|
<section class="about">
|
||||||
|
<div class="title">{% translate "О сервисе Trip With Bonus" %}</div>
|
||||||
|
<div class="about__grid">
|
||||||
|
<img src="{% static "/img/png/about.png" %}" alt="" class="about__img">
|
||||||
|
<div class="about__right">
|
||||||
|
<p>{% translate "TripWB - это сервис попутных посылок, который <b>соединяет отправителя посылки</b> того, кому нужно что-то передать в другой город или страну, и <b>перевозчика посылки</b>, а именно попутчика или путешественника, который следует по пути назначения." %}</p>
|
||||||
|
<p>{% translate "<b>Тебе не нужно больше бежать в чаты и группы</b> в социальных сетях и искать тех, кто сможет перевезти посылку, а достаточно просто зайти на сайт, разместить объявление в пару кликов и дождаться откликов от попутчиков." %}
|
||||||
|
<p class="about__half">{% translate "Мы <b>не являемся почтовым сервисом</b>, т.к. мы не доставляем посылки, а только даем возможность отправителю и перевозчику найти друг друга." %}</p>
|
||||||
|
<p class="about__half">{% translate "Если не хочешь размещать объявление и ждать, то можешь <b>самостоятельно на нашем сайте найти перевозчика</b> через удобную систему поиска" %}</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{# </div>#}
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="benefits">
|
||||||
|
<div class="title">{% translate "Преимущества сервиса" %}</div>
|
||||||
|
<div class="benefits__grid">
|
||||||
|
<div class="benefits__first benefits__col">
|
||||||
|
<div class="benefits__item">
|
||||||
|
<h2>{% translate "Прямой контакт" %}</h2>
|
||||||
|
<p>{% translate "Общаешься напрямую с перевозчиком, никаких посредников" %}</p>
|
||||||
|
</div>
|
||||||
|
<div class="benefits__item">
|
||||||
|
<h2>{% translate "Своя цена" %}</h2>
|
||||||
|
<p>{% translate "Стоимость перевозки самостоятельно обговариваете с перевозчиком." %}</p>
|
||||||
|
</div>
|
||||||
|
<div class="benefits__item">
|
||||||
|
<h2>{% translate "Нет доп. расходов" %}</h2>
|
||||||
|
<p>{% translate "Никаких комиссий, переплат и дополнительных расходов за отправку." %}</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="benefits__second">
|
||||||
|
<img src="{% static "/img/png/benefits.png" %}" alt="benefits">
|
||||||
|
</div>
|
||||||
|
<div class="benefits__third benefits__col">
|
||||||
|
<div class="benefits__item">
|
||||||
|
<h2>{% translate "Уведомления" %}</h2>
|
||||||
|
<p>{% translate "Можешь самостоятельно найти перевозчиков или разместить объявление на сайте." %}</p>
|
||||||
|
</div>
|
||||||
|
<div class="benefits__item">
|
||||||
|
<h2>{% translate "Удобный поиск" %}</h2>
|
||||||
|
<p>{% translate "Как только по твоему объявлению найдется перевозчик мы сообщим на E-mail." %}</p>
|
||||||
|
</div>
|
||||||
|
<div class="benefits__item">
|
||||||
|
<h2>{% translate "Экономия времени" %}</h2>
|
||||||
|
<p>{% translate "Не нужно искать группы, чаты, и кидать «клич», а просто достаточно разместить объявление на сайте." %}</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
Reference in New Issue
Block a user