Новый дизайн / Курсы поиск

remotes/origin/features/course-search-16-08-19
gzbender 6 years ago
parent 0bad8845cf
commit bb20d6425f
  1. 14
      apps/course/templates/course/course.html
  2. 14
      web/src/sass/_common.sass

@ -23,7 +23,7 @@
{% block ogdescription %}{{ course.short_description | striptags }}{% endblock ogdescription %} {% block ogdescription %}{{ course.short_description | striptags }}{% endblock ogdescription %}
{% block content %} {% block content %}
<div class="section section_border course"> <div class="section section_course section_border course">
<div class="section__center center center_sm"> <div class="section__center center center_sm">
<div class="go"> <div class="go">
<a class="go__item" href="{% if next %}{{next}}{% else %}{% url 'courses' %}{% endif %}"> <a class="go__item" href="{% if next %}{{next}}{% else %}{% url 'courses' %}{% endif %}">
@ -39,9 +39,9 @@
{% endif %} {% endif %}
{% if not is_owner and course.price %} {% if not is_owner and course.price %}
{% if not paid or can_buy_again %} {% if not paid or can_buy_again %}
<div> <div class="section__course-buttons">
<a href="#" <a href="#"
class="btn{% if pending %} btn_gray{% endif %} btn_md" class="btn{% if pending %} btn_gray{% endif %}"
{% if user.is_authenticated %} {% if user.is_authenticated %}
{% if not pending %} {% if not pending %}
data-course-buy data-course-buy
@ -54,7 +54,7 @@
{% if paid and can_buy_again %}ПРОДЛИТЬ ДОСТУП{% else %}КУПИТЬ КУРС{% endif %} {% if paid and can_buy_again %}ПРОДЛИТЬ ДОСТУП{% else %}КУПИТЬ КУРС{% endif %}
{% endif %}</a> {% endif %}</a>
{% if not paid %} {% if not paid %}
<a class="main__btn btn btn_stroke-black" href="{% url 'gift-certificates' %}">Подарить другу</a> <a class="btn btn_stroke-black" href="{% url 'gift-certificates' %}">Подарить другу</a>
{% endif %} {% endif %}
</div> </div>
{% endif %} {% endif %}
@ -153,6 +153,7 @@
</div> </div>
<div class="meta__title">{{ course.lessons.count | rupluralize:"урок,урока,уроков" }}</div> <div class="meta__title">{{ course.lessons.count | rupluralize:"урок,урока,уроков" }}</div>
</div> </div>
{% if not request.user_agent.is_mobile %}
<div class="meta__item"> <div class="meta__item">
<div class="meta__icon"> <div class="meta__icon">
<svg class="icon icon-video"> <svg class="icon icon-video">
@ -161,6 +162,7 @@
</div> </div>
<div class="meta__title">{{ course.count_videos_in_lessons }} видео</div> <div class="meta__title">{{ course.count_videos_in_lessons }} видео</div>
</div> </div>
{% endif %}
</div> </div>
</div> </div>
<div class="course__actions"> <div class="course__actions">
@ -356,9 +358,9 @@
</div> </div>
{% if not is_owner and course.price %} {% if not is_owner and course.price %}
{% if not paid or can_buy_again %} {% if not paid or can_buy_again %}
<div> <div {% if request.user_agent.is_mobile %}style="margin-top: 20px;"{% endif %}>
<a href="#" <a href="#"
class="btn{% if pending %} btn_gray{% endif %} btn_md" class="btn{% if pending %} btn_gray{% endif %}"
{% if user.is_authenticated %} {% if user.is_authenticated %}
{% if not pending %} {% if not pending %}
data-course-buy data-course-buy

@ -1173,6 +1173,9 @@ a[name]
+m +m
padding: 0 0 0 10px padding: 0 0 0 10px
&_course .go
flex-wrap: wrap
&__quote &__quote
font-size: 18px font-size: 18px
margin: -50px 0 -50px -100px margin: -50px 0 -50px -100px
@ -1208,6 +1211,13 @@ a[name]
+m +m
font-size: 13px font-size: 13px
&__course-buttons
+m
margin-top: 10px
& .btn
margin-right: 10px
.reviews-section .reviews-section
background: linear-gradient(to bottom, rgba(248,248,248,1) 0%, rgba(254,244,244,1) 100%) background: linear-gradient(to bottom, rgba(248,248,248,1) 0%, rgba(254,244,244,1) 100%)
@ -2808,7 +2818,7 @@ a.grey-link
//&:not(:last-child) //&:not(:last-child)
margin-right: 40px margin-right: 40px
+t +t
margin-right: 30px margin-right: 20px
&__icon &__icon
margin-right: 10px margin-right: 10px
font-size: 0 font-size: 0
@ -3117,6 +3127,8 @@ a.grey-link
height: 160px height: 160px
.questions .questions
&__items
overflow: hidden
&__anchor &__anchor
display: block display: block
position: relative position: relative

Loading…
Cancel
Save