diff --git a/static/css/styles.css b/static/css/styles.css index 0caa182..c07444e 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -691,7 +691,7 @@ section.register>form { /* Body text 3 */ height: 60px; - width: 100%; + width: 97%; background: #FF613A; color: #FFF; /* Heading 5 */ @@ -1850,7 +1850,7 @@ button#more_button{ .bottom_block_static img{ position: absolute; } -.bottom_block_static>#sub_title_static>p{ +#sub_title_static>p{ /*перенос строки в верстке из переноса в html*/ white-space: pre; } @@ -2017,11 +2017,123 @@ button#send_feedback_form{ margin-bottom: 20px; } - - /*end_static_pages*/ -/*my routes END*/ +/*Switcher*/ + +.checkbox-green { + display: block; + height: 28px; + line-height: 28px; + vertical-align: middle; + font-size: 14px; + user-select: none; + margin: auto; + text-align: center; +} +.checkbox-green .checkbox-green-switch { + display: inline-block; + height: 28px; + width: 90px; + box-sizing: border-box; + position: relative; + border-radius: 2px; + background: #848484; + transition: background-color 0.3s cubic-bezier(0, 1, 0.5, 1); +} +.checkbox-green .checkbox-green-switch:before { + content: attr(data-label-on); + display: inline-block; + box-sizing: border-box; + width: 45px; + padding: 0 12px; + position: absolute; + top: 0; + left: 45px; + text-transform: uppercase; + text-align: center; + color: rgba(255, 255, 255, 0.5); + font-size: 10px; + line-height: 28px; +} +.checkbox-green .checkbox-green-switch:after { + content: attr(data-label-off); + display: inline-block; + box-sizing: border-box; + width: 44px; + border-radius: 1px; + position: absolute; + top: 1px; + left: 1px; + z-index: 5; + text-transform: uppercase; + text-align: center; + background: white; + line-height: 26px; + font-size: 10px; + color: #777; + transition: transform 0.3s cubic-bezier(0, 1, 0.5, 1); +} +.checkbox-green input[type="checkbox"] { + display: block; + width: 0; + height: 0; + position: absolute; + z-index: -1; + opacity: 0; +} +.checkbox-green input[type="checkbox"]:checked + .checkbox-green-switch { + background-color: #70c767; +} +.checkbox-green input[type="checkbox"]:checked + .checkbox-green-switch:before { + content: attr(data-label-off); + left: 0; +} +.checkbox-green input[type="checkbox"]:checked + .checkbox-green-switch:after { + content: attr(data-label-on); + color: #4fb743; + transform: translate3d(44px, 0, 0); +} + +/* Hover */ +.checkbox-green input[type="checkbox"]:not(:disabled) + .checkbox-green-switch:hover { + cursor: pointer; +} +.checkbox-green input[type="checkbox"]:not(:disabled) + .checkbox-green-switch:hover:after { + box-shadow: 0 3px 3px rgba(0, 0, 0, 0.4); +} + +/* Disabled */ +.checkbox-green input[type=checkbox]:disabled + .checkbox-green-switch { + opacity: 0.6; + filter: grayscale(50%); +} + + +/*END Switcher*/ + +/*Confidential_ policy*/ +.wrapper_name_art { + font-size: 44px; + font-style: normal; + font-weight: 700; + line-height: 52px; + text-align: center; + margin-bottom: 40px; +} + +.wrapper_text_art{ + width: 1280px; + margin: auto; +} +.wrapper_text_art>p{ + font-size: 16px; + font-style: normal; + font-weight: 400; + line-height: 22px; +} + +/*END_Confidential_ policy*/ diff --git a/templates/blocks/static_pages_blocks/b_mover_search.html b/templates/blocks/static_pages_blocks/b_mover_search.html index f8af2ba..7b5b20f 100644 --- a/templates/blocks/static_pages_blocks/b_mover_search.html +++ b/templates/blocks/static_pages_blocks/b_mover_search.html @@ -212,11 +212,6 @@ - - - - -

{% translate "Оформи" %}

diff --git a/templates/pages/p_main.html b/templates/pages/p_main.html index fe85965..349af52 100644 --- a/templates/pages/p_main.html +++ b/templates/pages/p_main.html @@ -1,5 +1,6 @@ {% extends 'tb_base.html' %} {% load static %} +{% load i18n %} {% block meta %} @@ -8,7 +9,207 @@ {% endblock %} {% block content %} + +
+ +
+

{% translate "Отправляй" %}

+ {% translate "посылку" %} +

{% translate "в любую точку мира" %}

+

!

+
+ +

+ {% translate "Сервис, который позволяет передавать посылки с путешественниками" %} + {% translate "без посредников. Знакомьтесь, встречайтесь и передавайте посылки." %} +

+
+ +{#
#} +{#
#} +{##} +{# #} +{# #} +{#
#} +{#
#} +{# #} +{# #} +{#
#} +{#
#} + + + + + + + + +
+
{% include "blocks/b_find_route_form.html" %}
+ +
+ +

{% translate "О сервисе Trip With Bonus" %}

+ + +

{% translate "Как это работает?" %}

+
+ +
+ +
+ + + +
+ +
+ + + +
+ +
+ +
+ +
+
+ {% if page.url == 'for_customers' %} +

{% translate "Найдите перевозчика" %}

+ {% endif %} + {% if page.url == 'for_movers' %} +

{% translate "Разместите объявление" %}

+ {% endif %} + + {% if page.url == 'for_customers' %} + {% translate "Зайдите на сайт Trip With Bonus и в форме вверху страницы, заполните данные для поиска перевозчика." %} + {% endif %} + + {% if page.url == 'for_movers' %} + {% translate "Укажите откуда, куда хотите перевезти посылку, а также Вашу дату отправки и прибытия. При желании Вы можете указать дополнительные параметры: тип, вес, вид перевозки и т.д" %} + {% endif %} + +
+ +
+

{% translate "Свяжитесь с перевозчиком" %}

+ + {% if page.url == 'for_customers' %} + {% translate "Откройте контакты на сайте и договоритесь о месте встречи и условиях перевозки" %} + {% endif %} + + {% if page.url == 'for_movers' %} + {% translate "В отобразившемся списке выберите подходящего отправителя и посылку, откройте контакты и свяжитесь удобным способом. Если не нашли подходящего отправителя с посылкой, разместите объявление о возможности перевезти посылку и отправители Вас сами найдут" %} + {% endif %} + +
+ +
+

{% translate "Передайте посылку" %}

+ {% if page.url == 'for_customers' %} + {% translate "Встречайтесь, знакомьтесь и передавайте посылку" %} + {% endif %} + + {% if page.url == 'for_movers' %} + {% translate "Обсудите с отправителем все условия: время, место и прочие детали. Готово! Доставьте посылку из пункта А в пункт Б и получите благодарность отправителя!" %} + {% endif %} +
+ +
+ + +
+ + + +
+ {% if page.url == 'for_customers' %} + + {% endif %} + {% if page.url == 'for_movers' %} + + {% endif %} +
+
+

{% translate "Тарифы" %}

+ +
+ {% for subscribe in subscribes %} +
+
+
+ {{ subscribe.name }} +
+
+ {% if subscribe.price %} + {{ subscribe.price|floatformat }}$ + {% else %} + Бесплатно + {% endif %} +
+
+ Период: {{ subscribe.period_name }} +
+
+
+
+ Опции: +
+
+
    + {% for opt in subscribe.options.all %} +
  • {{ opt.name }}
  • + {% endfor %} + {% for opt_dis in subscribe.disabled_options %} +
  • {{ opt_dis.name }}
  • + {% endfor %} + +
+
+
+
+ +
+
+ {% endfor %} +
+ +
+ +
+
+

{% translate "Оформи" %}

+ {% translate "подписку" %} +

{% translate "сейчас и получи" %}

+
+ + +
+ {% translate "1 день" %} +

{% translate "пользования сервисом" %}

+ {% translate "в подарок" %} +

!

+
+ + + + +
+ +
+ + + + + +
+ + {% endblock %} \ No newline at end of file diff --git a/templates/pages/p_user_page.html b/templates/pages/p_user_page.html index c2000e4..4761e10 100644 --- a/templates/pages/p_user_page.html +++ b/templates/pages/p_user_page.html @@ -1,7 +1,9 @@ {% extends "tb_base.html" %} {% block content %} -
{{ art.name }}
-
{{ art.description }}
-
{{ art.text|safe }}
+
{{ art.name }}
+ {% if art.description != none %} +
{{ art.description }}
+ {% endif %} +
{{ art.text|safe }}
{% endblock %} \ No newline at end of file