Skip to content

Commit

Permalink
add super badge
Browse files Browse the repository at this point in the history
  • Loading branch information
madjid-asa committed Jul 24, 2024
1 parent 7685bed commit 3fa7e5d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
7 changes: 7 additions & 0 deletions lemarche/static/itou_marche/itou_marche.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
$yellow-super-badge--bg-color: #fff7e0;
$yellow-super-badge--borders-color: #fcc63a;

.lemarche {
&--align-right {
float: right;
}

&-super-badge {
background-color: $yellow-super-badge--bg-color;
}
}
4 changes: 2 additions & 2 deletions lemarche/templates/includes/_super_badge.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% if siae.super_badge %}
<p class="fr-badge fr-badge--yellow-tournesol super-badge-badge fr-mt-4v">
<p class="fr-tag lemarche-super-badge">
<span class="fr-icon-award-fill"></span>
Super prestataire
</p>
{% endif %}
{% endif %}
6 changes: 2 additions & 4 deletions lemarche/templates/siaes/_card_search_result.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ <h3 class="fr-card__title">
Lorem [...] elit ut.
</p>
<div class="fr-card__start">
<ul class="fr-tags-group">
<li>
<p class="fr-tag">label tag</p>
</li>
<ul class="fr-tags-group lemarche--align-right">
<li>{% include "includes/_super_badge.html" with siae=siae %}</li>
<li>
<p class="fr-tag">label tag</p>
</li>
Expand Down

0 comments on commit 3fa7e5d

Please sign in to comment.