0.0.139 upd for_customer page

This commit is contained in:
2023-09-18 17:19:01 +03:00
parent de34cedacf
commit 914133e73e
7 changed files with 129 additions and 88 deletions

View File

@@ -1770,7 +1770,7 @@ button#more_button{
height: fit-content;
align-items: flex-start;
gap: 74px;
justify-content: center;
justify-content: space-around;
margin-bottom: 20px
}
@@ -1800,9 +1800,10 @@ button#more_button{
}
.bottom_block_static{
margin-top: 120px;
padding: 0px 40px 0px 40px;
padding: 40px 40px 0px 40px;
position: relative;
width: 80%;
margin: auto;
}
@@ -1826,15 +1827,15 @@ button#more_button{
.bottom_block_static img:nth-child(4) {
/* Положение нижнего левого изображения */
left: 3%;
left: -5%;
bottom: 0%;
}
.bottom_block_static img:nth-child(5) {
/* Положение верхнего левого изображения */
top: 4%;
left: 12%;
top: 13%;
left: 3%;
transform: scale(-1, 1);
@@ -1842,17 +1843,17 @@ button#more_button{
.bottom_block_static img:nth-child(6) {
/* Положение нижнего правого изображения */
right: 1%;
top: 60%;
transform: scale(1, -1);
right: -5%;
bottom: 0%;
transform: scale(1, -1);
}
.bottom_block_static img:nth-child(7) {
/* Положение верхнего правого изображения */
top: 11%;
right: 10%;
top: 18%;
right: 1%;
}
@@ -1954,6 +1955,12 @@ button#send_feedback_form{
margin-top: 13px;
}
.subscribes_container{
width: 80%;
margin: auto;
padding-top: 5%;
}
/*end_static_pages*/
/*my routes END*/

View File

@@ -11,11 +11,22 @@ window.onload = function (){
function middleWareJS(){
let footer = document.querySelector("footer")
let body = document.body.style;
if (document.querySelector(".block-list-of-users")){
footer.style.display = "none"
body.overflowY = "hidden"
} else {
footer.style.display = ""
}
// let window_messages = document.querySelector(".container-messages")
// let new_timeout_time;
// if (window_messages !== null){

View File

@@ -1,8 +1,8 @@
{% load static %}
<div class="title-profile-cont">
Подписка
</div>
{#<div class="title-profile-cont">#}
{# Подписка#}
{#</div>#}
<div class="subscribe_inf">
<div class="subscribe_inf_left_part">
<div class="text-align-center">

View File

@@ -16,6 +16,7 @@
</div>
</div>
<div class="type_of_subscribes">
{% for subscribe in subscribes %}
<div class="container_subscribe light" style="background: {{ subscribe.bg_color }}">

View File

@@ -6,9 +6,9 @@
{# <div class="insert-tech-place">#}
<div class="container-messenger">
<div class="title-profile-cont">
<h1>Техническая поддержка</h1>
</div>
{# <div class="title-profile-cont">#}
{# <h1>Техническая поддержка</h1>#}
{# </div>#}
{% if ticket %}
<div class="name_ticket">

View File

@@ -1,5 +1,8 @@
{% load static %}
{% load i18n %}
<div class="top_block_static">
<h2 id=title_static>{{ page.title }}</h2>
<span id="sub_title_static">{{ page.description }}</span>
@@ -16,6 +19,7 @@
</div>
<div class="mid_block_static">
<h2 id="title_static">{% translate "О сервисе Trip With Bonus" %}</h2>
<div class="text_wrapper">
@@ -58,21 +62,98 @@
<figcaption>{% translate "Общение и новые знакомства" %}</figcaption>
</figure>
</div>
<h2 id="title_static">{% translate "Как это работает?" %}</h2>
<div class="benefit_img">
<div class="benefit_img_item">
<img src="/static/img/svg/Find_carrier.svg" alt="">
<h3>{% translate "Разместите объявление" %}</h3>
<span>{% translate "Укажите откуда, куда хотите перевезти посылку, а также Вашу дату отправки и прибытия. При желании Вы можете указать дополнительные параметры: тип, вес, вид перевозки и т.д" %}</span>
</div>
<div class="benefit_img_item">
<img src="/static/img/svg/Contact_carrier.svg" alt="">
<h3>{% translate "Свяжитесь с перевозчиком" %}</h3>
<span>{% translate "В отобразившемся списке выберите подходящего отправителя и посылку, откройте контакты и свяжитесь удобным способом. Если не нашли подходящего отправителя с посылкой, разместите объявление о возможности перевезти посылку и отправители Вас сами найдут" %}</span>
</div>
<div class="benefit_img_item">
<img src="/static/img/svg/Pass_package.svg" alt="">
<h3>{% translate "Передайте посылку" %}</h3>
<span>{% translate "Обсудите с отправителем все условия: время, место и прочие детали. Готово! Доставьте посылку из пункта А в пункт Б и получите благодарность отправителя!" %}</span>
</div>
</div>
</div>
<div class="button_container">
<button id="more_button">{% translate "Перевезти посылку" %}</button>
</div>
<div class="subscribes_container">
<h2 id=title_static>{% translate "Тарифы" %}</h2>
<div class="type_of_subscribes">
{% for subscribe in subscribes %}
<div class="container_subscribe light" style="background: {{ subscribe.bg_color }}">
<div class="first-decr-subscribe">
<div style="color: {{ subscribe.text_color }}">
{{ subscribe.name }}
</div>
<div class="price_subscribe">
{% if subscribe.price %}
{{ subscribe.price|floatformat }}$
{% else %}
Бесплатно
{% endif %}
</div>
<div class="periud_subscribe" style="color: {{ subscribe.text_color }}">
Период: {{ subscribe.period_name }}
</div>
</div>
<div class="options_subscribe">
<div class="options_subscribe_title light" style="color: {{ subscribe.text_color }}">
Опции:
</div>
<div class="list_options_subscribe">
<ul class="option_list">
{% for opt in subscribe.options.all %}
<li class="items_subscribe select" style="color: {{ subscribe.text_color }}"><text>{{ opt.name }}</text></li>
{% endfor %}
{% for opt_dis in subscribe.disabled_options %}
<li class="items_subscribe unselect"><text>{{ opt_dis.name }}</text></li>
{% endfor %}
</ul>
</div>
</div>
<div class="text-align-center">
<button onclick="send_subscribe({{ subscribe.id }})" class="arrange_subscribe">Оформить подписку</button>
</div>
</div>
{% endfor %}
</div>
</div>
<div class="bottom_block_static">
<h2 id=title_static>{% translate "Станьте нашим партнером" %}</h2>
<span
id="sub_title_static">
<p>
{% translate "Приглашаем к сотрудничесту и развитию, вместе с большой и сильной командой. Мы предлагаем Вам" %}
{% translate "вместе с нами развивать сервис и стать партнером" %}
</p>
</span>
<h2 id=title_static>{% translate "Оформи подписку сейчас и получи" %}</h2>
<h2 id=title_static>{% translate "1 день пользования сервисом в подарок!" %}</h2>
<div class="button_container">
<button id="more_button">{% translate "Читать подробнее" %}</button>
<button id="more_button">{% translate "Получить" %}</button>
</div>
<img src="/static/img/png/Box5.png" alt="">
@@ -83,64 +164,7 @@
<div class="feedback_form">
<h2 id=title_static>{% translate "Мы всегда на связи!" %}</h2>
<span id="sub_title_static">{% translate "У вас есть вопрос? Отправьте нам сообщение" %}</span>
<form>
<div class="left_inputs_form">
<div class="inputs_l">
<input name="username" type="text" placeholder="Имя" {% if form.data.username %} value="{{ form.data.username }}"{% endif %}>
{% if form.username and form.errors.username %}
<span>{{ form.errors.username }}</span>
{% endif %}
</div>
<div class="inputs_l">
<input name="email" type="email" placeholder="Е-mail"{% if form.data.email %} value="{{ form.data.email }}"{% endif %}>
{% if form.email and form.errors.email %}
<span>{{ form.errors.email }}</span>
{% endif %}
</div>
<div class="inputs_l">
<input name="tel" type="number" placeholder="Телефон"{% if form.data.tel %} value="{{ form.data.tel }}"{% endif %}>
{% if form.tel and form.errors.tel %}
<span>{{ form.errors.tel }}</span>
{% endif %}
</div>
</div>
<div class="right_inputs_form">
<div class="counter-box">
<label for="id_text"></label>
<textarea
name="text"
onFocus="this.select()"
oninput="counterText(this)"
id="id_text" class="feedback_form_message"
placeholder= {% translate "Сообщение" %}
value="{% if form.adding_machine.text %}{{ form.initial.text }}{% endif %}"
maxlength="100"
>
</textarea>
<span class="counter-text">
<span class="counter-text__current">0</span>
/
<span class="counter-text__total">100</span>
</span>
</div>
<div class="button_feedback_form">
<button id="send_feedback_form">{% translate 'Отправить сообщение' %}</button>
</div>
</div>
</form>
<div class="clear_both"></div>
</div>

View File

@@ -2,12 +2,10 @@
{% block content %}
{% if page.url == 'for_customers' %}
{% include "blocks/static_pages_blocks/b_customer_search.html" %}
{% endif %}
{% if page.url == 'for_movers' %}
{% if page.url == 'for_customers' or page.url == 'for_movers' %}
{% include "blocks/static_pages_blocks/b_mover_search.html" %}
{% endif %}
{% if page.url == 'advertisement' %}
{% include "blocks/static_pages_blocks/b_advertisement.html" %}
{% endif %}