diff --git a/project/templates/blocks/baner.html b/project/templates/blocks/baner.html index 5fd1aef6..9c2f5c0d 100644 --- a/project/templates/blocks/baner.html +++ b/project/templates/blocks/baner.html @@ -1,6 +1,6 @@ {% if baner %} -
- {{ baner.text }} - {{ baner.button_text }} + {% endif %} diff --git a/project/templates/lilcity/index.html b/project/templates/lilcity/index.html index a7269a0e..54918fbb 100644 --- a/project/templates/lilcity/index.html +++ b/project/templates/lilcity/index.html @@ -54,8 +54,8 @@ {% include "templates/blocks/mixpanel.html" %} + {% include "templates/blocks/baner.html" %}
- {% include "templates/blocks/baner.html" %} {% include "templates/blocks/header.html" %}
{% block content %}{% endblock content %} diff --git a/web/src/js/modules/common.js b/web/src/js/modules/common.js index a134cdf5..ca8f46f1 100644 --- a/web/src/js/modules/common.js +++ b/web/src/js/modules/common.js @@ -38,4 +38,14 @@ function updateHeader() { } else { headerElement.removeClass('header--shadow'); } + + if(scrollOffset > 0) { + if(scrollOffset <= 140) { + headerElement.css('top', (140-scrollOffset)+'px'); + } else { + headerElement.css('top', '0px'); + } + } else { + headerElement.css('top', ''); + } } \ No newline at end of file diff --git a/web/src/sass/_common.sass b/web/src/sass/_common.sass index 9b6230ca..1709a1e8 100755 --- a/web/src/sass/_common.sass +++ b/web/src/sass/_common.sass @@ -3989,3 +3989,23 @@ a &.pic position: relative width: 100% + +.banner + height: 140px + text-align: center + color: #fff + padding-top: 50px + background-repeat: no-repeat; + background-position: center; + background-size: cover; + &__text + //mix-blend-mode: difference + font-size: 30px + text-shadow: 0px 0px 3px rgba(0, 0, 0, 1) + &__link + //mix-blend-mode: difference + display: block + color: #fff + font-size: 20px + text-shadow: 0px 0px 3px rgba(0, 0, 0, 1) + margin-top: 20px \ No newline at end of file