Skip to content

Commit

Permalink
added new section dividers for news and related products
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Miranda committed Sep 22, 2021
1 parent 5b13033 commit a8223af
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,8 @@ <h2 class="h3-heading">{% trans "Artificial Intelligence" %}</h2>
</section>
{% endif %}

{% if product.updates.count > 0 %}
{% if product.updates.count > 0 %}
<hr class="pni-section-divider"/>
<h3 class="h2-heading mb-4 mb-md-5">{% trans "News" %}</h3>
{% endif %}
{% if product.updates.count > 0 %}
Expand All @@ -274,8 +275,9 @@ <h3 class="h2-heading mb-4 mb-md-5">{% trans "News" %}</h3>
{% endwith %}
{% endfor %}
</div>
{% endif %}

{% endif %}

<hr class="pni-section-divider"/>
<h3 class="h2-heading mb-4">{% trans "Related products" %}</h3>
<div class="row">
{% for related_product_page in product.related_product_pages.all %}
Expand Down
6 changes: 6 additions & 0 deletions source/sass/buyers-guide/views/product.scss
Original file line number Diff line number Diff line change
Expand Up @@ -475,3 +475,9 @@
min-width: 290px;
background: $pni-product-image-background;
}

.pni-section-divider {
border-width: 4px;
border-color: $black;
padding-bottom: 1em;
}

0 comments on commit a8223af

Please sign in to comment.