properties changes

This commit is contained in:
Norm Rasmussen
2022-04-18 08:26:04 -04:00
parent 4da8fa8dc4
commit ba21c181d6
3 changed files with 3 additions and 19 deletions

View File

@ -239,6 +239,8 @@ div {
padding: 0 1rem;
white-space: normal;
text-align: center;
color: #ed2a63 !important;
border: #ed2a63 !important;
}
@media screen and (min-width: 768px) {

View File

@ -25,24 +25,6 @@
{% endif %}
{% endif %}
</div>
<div class="np-course-detail course-detail-rating">
<div class='course-detail-rating-stars' style='display: flex; flex-wrap: nowrap;'>
{% for i in (1..5) %}
{% if course.properties.np_course_rating >= i %}
<svg width="20" height="19" viewBox="0 0 20 19" preserveAspectRatio fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M10 0L12.5863 6.44033L19.5106 6.90983L14.1846 11.3597L15.8779 18.0902L10 14.4L4.12215 18.0902L5.81535 11.3597L0.489435 6.90983L7.41374 6.44033L10 0Z" fill="#006161"/>
</svg>
{% else %}
<svg width="20" height="19" viewBox="0 0 20 19" preserveAspectRatio fill="none" xmlns="http://www.w3.org/2000/svg">
<path opacity="0.25" d="M10 0L12.5863 6.44033L19.5106 6.90983L14.1846 11.3597L15.8779 18.0902L10 14.4L4.12215 18.0902L5.81535 11.3597L0.489435 6.90983L7.41374 6.44033L10 0Z" fill="#006161"/>
</svg>
{% endif %}
{% endfor %}
</div>
<span class="np-details-label" style= 'display: flex;'>
{{course.properties.np_course_rating}} <div style='font-weight: 500; padding-left: 5px;'>({{course.properties.np_course_rating_count}}) </div>
</span>
</div>
</div>
<style>

View File

@ -1,5 +1,5 @@
{% include "header" %}
{% include "course_version_outdated_alert", courses: courses.featured %}
{% comment %} {% include "course_version_outdated_alert", courses: courses.featured %} {% endcomment %}
<main class="np-main np-homepage">
{% include "homepage_hero_carousel" %}
{% comment %} {% include "sub_navigation" %} {% endcomment %}