Skip to content

Commit

Permalink
7389 section hrs (#7452)
Browse files Browse the repository at this point in the history
* added new section dividers for news and related products


* updated spacing between news heading and section

Co-authored-by: Daniel Miranda <daniel@mozillafoundation.org>
  • Loading branch information
danielfmiranda and Daniel Miranda authored Sep 29, 2021
1 parent b80f2cb commit 1ab3719
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,10 +262,9 @@ <h2 class="h3-heading">{% trans "Artificial Intelligence" %}</h2>
</section>
{% endif %}

{% if product.updates.count > 0 %}
<h3 class="h2-heading mb-4 mb-md-5">{% trans "News" %}</h3>
{% endif %}
{% if product.updates.count > 0 %}
{% if product.updates.count > 0 %}
<hr class="pni-section-divider"/>
<h3 class="h2-heading mb-3">{% trans "News" %}</h3>
<div class="mb-5">
{% for item in product.updates.all %}
{% with update=item.update %}
Expand All @@ -277,8 +276,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 @@ -506,3 +506,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 1ab3719

Please sign in to comment.