composant icon into card-resto

This commit is contained in:
Thomas Cardon 2022-02-11 14:16:59 +01:00
parent 1b520593cd
commit 5d3549b0b6
3 changed files with 17 additions and 10 deletions

View File

@ -46,17 +46,24 @@
réaliser un livre spécimen de polices de texte.</p>
<div class="trait-rouge pt-2 pb-0"></div>
<div class="critere ps-1 pt-3">
<span class="sur-place pe-1" style="color:#545454">Sur place :</span>
<i *ngIf="restaurant.surPlace" class="fas fa-check-square"
style="color:#4ECB71"></i>
<i *ngIf="restaurant.surPlace === false " class="fas fa-times-circle ps-1 pt-1" style="color:#ED2F2F"></i>
<span class="a-emporter ps-3 pe-1" style="color:#545454">A emporter :</span><i class="fas fa-check-square"
style="color:#4ECB71"></i>
<span class="sur-place pe-1" style="color:#545454">Sur place :</span>
<app-icon
[iconName]="restaurant.surPlace ? 'fas fa-check-square' : 'fas fa-times-circle ps-1 pt-1'"
[iconColor]="restaurant.surPlace ? '#4ECB71' : '#ED2F2F'"
></app-icon>
<span class="a-emporter ps-3 pe-1" style="color:#545454">A emporter :</span>
<app-icon
[iconName]="restaurant.emporter ? 'fas fa-check-square' : 'fas fa-times-circle ps-1 pt-1'"
[iconColor]="restaurant.emporter ? '#4ECB71' : '#ED2F2F'"
></app-icon>
</div>
<div class="trait-rouge pt-3"></div>
<div class="critere d-flex justify-content-center ps-1 pt-3 pb-3">
<span class="acces-pmr pe-1" style="color:#545454">Accès PMR :</span><i
class="fas fa-times-circle ps-1 pt-1" style="color:#ED2F2F"></i>
<span class="acces-pmr pe-1" style="color:#545454">Accès PMR :</span>
<app-icon
[iconName]="restaurant.accesPMR ? 'fas fa-check-square' : 'fas fa-times-circle ps-1 pt-1'"
[iconColor]="restaurant.accesPMR ? '#4ECB71' : '#ED2F2F'"
></app-icon>
</div>
<div class="reserver pt-2">
<button type="button" class="button">Réserver</button>

View File

@ -1,6 +1,6 @@
<div (mouseleave)="onMouseLeave()">
<app-icon *ngFor="let star of starStates; let starIndex = index"
[iconName]="star.stateHoverUser ? 'star-fill' : 'star'"
[iconName]="star.stateHoverUser ? 'bi-star-fill' : 'bi-star'"
[iconSize]="2.5"
[iconColor]="'#ffbf00'"
style="padding: 6px;"

View File

@ -1,3 +1,3 @@
<i class="bi-{{iconName}}"
<i class="{{iconName}}"
[ngStyle]="{'font-size.rem': iconSize, 'color': iconColor}"></i>