Merge branch 'feature/offers-html' into feature/offers-style

This commit is contained in:
2023-07-24 08:32:28 +07:00
+13 -16
View File
@@ -1,28 +1,25 @@
- var values = [1, 2, 3]; - var values = [1, 2, 3];
mixin cardFoodItem(itemFood, price, ratePoint, foodName, foodDescription) mixin cardFoodItem(itemFood, price, ratePoint, foodName, foodDescription)
.offer__card-item .card-item
img.offer__card-img( img.card-img(src=offer_img_path + "item-card.png", alt="Item card image")
src=offer_img_path + "item-card.png", img.food-image(
alt="Item card image"
)
img.offer__food-image(
src=offer_img_path + "food-" + itemFood + ".png", src=offer_img_path + "food-" + itemFood + ".png",
alt="Food " + itemFood + " image" alt="Food " + itemFood + " image"
) )
span.offer__price= price + "$" span.price= price + "$"
.offer__content-card .content-card
.offer__rate .rate
.offer__avatar-container .avatar-container
each val in values each val in values
img( img(
src=offer_img_path + "avatar-" + val + "-item-" + itemFood + ".png", src=offer_img_path + "avatar-" + val + "-item-" + itemFood + ".png",
alt="Avatar user rate", alt="Avatar user rate",
class="offer__avatar-" + val class="avatar-" + val
) )
.offer__star-container .star-container
img(src=offer_img_path + "star.png", alt="Star image") img(src=offer_img_path + "star.png", alt="Star image")
span.offer__rate-point= "(" + ratePoint + ")" span.rate-point= "(" + ratePoint + ")"
span.offer__food-name= foodName span.food-name= foodName
p.offer__food-description= foodDescription p.food-description= foodDescription
a.offer__order-btn.btn.no-underline(href="javascript:void(0)") Order now a.order-btn.btn.no-underline(href="javascript:void(0)") Order now