modif card resto
This commit is contained in:
parent
9e03cf2750
commit
c2d98cd094
|
@ -41,12 +41,11 @@
|
||||||
|
|
||||||
|
|
||||||
<i class="fas fa-euro-sign ps-2 pe-2" style="color:#a8a8a8"></i>
|
<i class="fas fa-euro-sign ps-2 pe-2" style="color:#a8a8a8"></i>
|
||||||
<span class="prix" style="font-weight: bold;">5-10€</span>
|
<span class="prix" style="font-weight: bold;">{{restaurant.prix}}</span>
|
||||||
|
|
||||||
<div class="d-inline-flex" *ngIf="restaurant.website; else noWebsite">
|
<div class="d-inline-flex" *ngIf="restaurant.website; else noWebsite">
|
||||||
<p class="description pt-3 ps-2 pe-1"><i class="bi bi-globe2 ps-2 pe-2" style="color:#a8a8a8"></i>
|
<p class="description pt-3 ps-2 pe-1"><i class="bi bi-globe2 ps-2 pe-2" style="color:#a8a8a8"></i>
|
||||||
<a href="{{restaurant.website}}" class="description text-decoration-none pe-1" style="font-style: italic;font-weight: bold; color:#545454">Site Web</a>
|
<a href="{{restaurant.website}}" class="description text-decoration-none pe-1" style="font-style: italic;font-weight: bold; color:#545454">Site Web</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<!-- le else de notre *ngIf plus haut-->
|
<!-- le else de notre *ngIf plus haut-->
|
||||||
|
@ -61,29 +60,53 @@
|
||||||
|
|
||||||
<div class="trait-rouge pt-2 pb-0"></div>
|
<div class="trait-rouge pt-2 pb-0"></div>
|
||||||
<div class="critere ps-1 pt-3">
|
<div class="critere ps-1 pt-3">
|
||||||
|
|
||||||
|
<div class="d-inline-flex " *ngIf="restaurant.surPlace else noInfosSurPlace">
|
||||||
<span class="sur-place pe-3" style="color:#545454">Sur place :</span>
|
<span class="sur-place pe-3" style="color:#545454">Sur place :</span>
|
||||||
<app-icon
|
<app-icon
|
||||||
[iconName]="restaurant.surPlace ? 'bi bi-check-square-fill' : 'bi bi-x-square-fill ps-2 pt-1 '"
|
[iconName]="restaurant.surPlace ? 'bi bi-check-square-fill' : 'bi bi-x-square-fill ps-2 pt-1 '"
|
||||||
[iconColor]="restaurant.surPlace ? '#4ECB71' : '#ED2F2F'"
|
[iconColor]="restaurant.surPlace ? '#4ECB71' : '#ED2F2F'"
|
||||||
></app-icon>
|
></app-icon>
|
||||||
|
</div>
|
||||||
|
<ng-template #noInfosSurPlace>
|
||||||
|
<span class="d-flex" style="color:#545454">Sur place :</span>
|
||||||
|
<p style="font-size:1.9vh ;color:#545454">Infos non disponible.</p>
|
||||||
|
</ng-template>
|
||||||
|
|
||||||
|
<div class="d-inline-flex " *ngIf="restaurant.aEmporter != null else noInfosAEmporter">
|
||||||
<span class="a-emporter pe-2 ps-4 " style="color:#545454">A emporter :</span>
|
<span class="a-emporter pe-2 ps-4 " style="color:#545454">A emporter :</span>
|
||||||
<app-icon
|
<app-icon
|
||||||
[iconName]="restaurant.emporter ? 'bi bi-check-square-fill' : 'bi bi-x-square-fill ps-2 pt-1'"
|
[iconName]="restaurant.aEmporter ? 'bi bi-check-square-fill' : 'bi bi-x-square-fill ps-2 pt-1'"
|
||||||
[iconColor]="restaurant.emporter ? '#4ECB71' : '#ED2F2F'"
|
[iconColor]="restaurant.aEmporter ? '#4ECB71' : '#ED2F2F'"
|
||||||
></app-icon>
|
></app-icon>
|
||||||
</div>
|
</div>
|
||||||
|
<ng-template #noInfosAEmporter>
|
||||||
|
<span class="d-flex a-emporter pt-2 " style="color:#545454">A emporter :</span>
|
||||||
|
<p style="font-size:1.9vh ;color:#545454">Infos non disponible.</p>
|
||||||
|
</ng-template>
|
||||||
|
</div>
|
||||||
<div class="trait-rouge pt-3"></div>
|
<div class="trait-rouge pt-3"></div>
|
||||||
<div class="critere d-flex justify-content-center ps-1 pt-3 pb-3">
|
<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>
|
<span class="acces-pmr pe-1" style="color:#545454">Accès PMR :</span>
|
||||||
|
|
||||||
|
<div class="d-inline-flex " *ngIf="restaurant.accesPMR else noAccesPMR">
|
||||||
<app-icon
|
<app-icon
|
||||||
[iconName]="restaurant.accesPMR ? 'bi bi-check-square-fill' : 'bi bi-x-square-fill ps-1 pt-1'"
|
[iconName]="restaurant.accesPMR ? 'bi bi-check-square-fill' : 'bi bi-x-square-fill ps-1 pt-1'"
|
||||||
[iconColor]="restaurant.accesPMR ? '#4ECB71' : '#ED2F2F'"
|
[iconColor]="restaurant.accesPMR ? '#4ECB71' : '#ED2F2F'"
|
||||||
></app-icon>
|
></app-icon>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- le else de notre *ngIf plus haut-->
|
||||||
|
<ng-template #noAccesPMR>
|
||||||
|
<p class=" ps-2"style="font-size:1.9vh ;color:#545454">Infos non disponible.</p>
|
||||||
|
</ng-template>
|
||||||
|
<!-- ------------------------------------ -->
|
||||||
|
</div>
|
||||||
<div class="reserver pt-2">
|
<div class="reserver pt-2">
|
||||||
<button type="button" class="button">Réserver</button>
|
<button type="button" class="button">Réserver</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
|
@ -13,9 +13,16 @@ export class CardRestoComponent implements OnInit {
|
||||||
@Input() likeResto: any;
|
@Input() likeResto: any;
|
||||||
@Output() clickLike = new EventEmitter<boolean>();
|
@Output() clickLike = new EventEmitter<boolean>();
|
||||||
isLiked : boolean = false;
|
isLiked : boolean = false;
|
||||||
|
priceRef : object;
|
||||||
|
|
||||||
|
|
||||||
constructor(private apiBackService : ApiBackService) {
|
constructor(private apiBackService : ApiBackService) {
|
||||||
this.distance = 0 ;
|
this.distance = 0 ;
|
||||||
|
this.priceRef = {1 : '€ 1-10€',
|
||||||
|
2 : '€€ 11-20€',
|
||||||
|
3 : '€€€ 21-30€',
|
||||||
|
4 : '€€€€ 31-40€',
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
|
|
|
@ -31,6 +31,9 @@ export class RestoPageComponent implements OnInit {
|
||||||
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
console.log(this.apiBackService);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue