diff --git a/static/aerbimCSS.css b/static/aerbimCSS.css index 84d2bba..e45892d 100644 --- a/static/aerbimCSS.css +++ b/static/aerbimCSS.css @@ -29,12 +29,12 @@ body.n_scroll{ } .header{ - height: 60px; + height: 50px; width: 100%; background: #FFFFFF; position: fixed; top: 0; - padding: 5px 0 5px 0; + padding: 10.5px 0 10.5px 0; z-index: 101; } @@ -68,7 +68,7 @@ body.n_scroll{ } .logo_header{ - height: 60px; + height: 49px; } .right_part_header { @@ -78,7 +78,7 @@ body.n_scroll{ display: flex; justify-content: right; align-items: center; - height: 60px; + height: 49px; } .right_part_header_mobile{ @@ -261,7 +261,7 @@ body.n_scroll{ text-align: -moz-center; position: absolute; padding: 10px 0; - top: 24px; + top: 34px; } .content_select_language > div{ @@ -1131,7 +1131,7 @@ body.n_scroll{ /* slider block */ .container_sliders{ - height: calc(100vh - 115px); + height: calc(100vh - 125px); margin-top: 60px; } @@ -1160,13 +1160,32 @@ body.n_scroll{ .slider_block_text_container{ width: 100%; + position: absolute; + top: 0; + height: 100%; + margin: auto; +} + +.cut_width_slider{ + height: 100%; position: relative; } +.bottom_part_container_slide{ + position: absolute; + bottom: 80px; +} +.top_part_container_slide{ + position: absolute; + top: 190px; + right: 0; + width: 40%; +} + .functions_btns_slider{ display: block; - position: absolute; - bottom: 25px; + position: relative; + bottom: 0; left: 0; color: #ffffff; } @@ -1180,11 +1199,7 @@ body.n_scroll{ .slider_block_text{ display: block; - position: absolute; - bottom: 80px; - right: 0; color: #ffffff; - width: 40%; } .title_slide{ diff --git a/static/aerbimJS.js b/static/aerbimJS.js index 2a1ed63..f16a22e 100644 --- a/static/aerbimJS.js +++ b/static/aerbimJS.js @@ -74,7 +74,9 @@ function renderContent (el=null) { replace_select_language() }, error: function (data){ - alert(data.errors) + if (data.status !== 0){ + alert(data.errors) + } } }); } @@ -235,7 +237,7 @@ function autoPlaySlider () { } } } - },2000) + },5000) } else { // autoPlaySlider() } diff --git a/templates/blocks/b_header.html b/templates/blocks/b_header.html index 54458ba..1f14ed6 100644 --- a/templates/blocks/b_header.html +++ b/templates/blocks/b_header.html @@ -14,16 +14,16 @@
-
RU
+
ru
-
RU
+
ru
-
EN
+
en
{# Личный кабинет#} diff --git a/templates/blocks/b_slider.html b/templates/blocks/b_slider.html index e51d245..60e6c06 100644 --- a/templates/blocks/b_slider.html +++ b/templates/blocks/b_slider.html @@ -9,26 +9,32 @@ {% endif %} {% if slide.name or slide.description %} -
-
- - - {{ forloop.counter }} / {{ page.get_slides|length }} - - -
-
- {% if slide.name %} -
{{ slide.name }}
- {% endif %} - {% if slide.description %} -
{{ slide.description|linebreaksbr }}
- {% endif %} - {% if slide.but_title %} - {% with widget=slide name_w='slide' %} - {% include 'blocks/block_elements/be_button.html' %} - {% endwith %} - {% endif %} +
+
+
+
+ + + {{ forloop.counter }} / {{ page.get_slides|length }} + + +
+
+
+
+ {% if slide.name %} +
{{ slide.name }}
+ {% endif %} + {% if slide.description %} +
{{ slide.description|linebreaksbr }}
+ {% endif %} + {% if slide.but_title %} + {% with widget=slide name_w='slide' %} + {% include 'blocks/block_elements/be_button.html' %} + {% endwith %} + {% endif %} +
+
{% endif %}