2017-10-04 06:12:12 +00:00
|
|
|
component Shop(user *arn.User, items []*arn.Item)
|
2017-10-03 13:26:29 +00:00
|
|
|
h1.page-title Shop
|
|
|
|
|
2017-10-04 06:12:12 +00:00
|
|
|
ShopTabs
|
2017-10-03 13:26:29 +00:00
|
|
|
|
|
|
|
.widgets.shop-items
|
2017-10-04 06:12:12 +00:00
|
|
|
each item in items
|
|
|
|
ShopItem(item)
|
|
|
|
|
|
|
|
component ShopTabs
|
|
|
|
.tabs
|
|
|
|
Tab("Shop", "shopping-cart", "/shop")
|
|
|
|
Tab("Inventory", "briefcase", "/inventory")
|
|
|
|
Tab("0", "diamond", "/charge")
|
2017-10-03 13:26:29 +00:00
|
|
|
|
2017-10-04 06:12:12 +00:00
|
|
|
component ShopItem(item *arn.Item)
|
|
|
|
.widget.shop-item.mountable
|
2017-10-03 13:26:29 +00:00
|
|
|
h3.widget-title.shop-item-name
|
2017-10-04 06:12:12 +00:00
|
|
|
Icon(item.Icon)
|
|
|
|
span= item.Name
|
|
|
|
//- span.shop-item-duration= " " + duration
|
|
|
|
.shop-item-description!= aero.Markdown(item.Description)
|
2017-10-03 13:26:29 +00:00
|
|
|
.buttons.shop-buttons
|
|
|
|
button.shop-button-buy
|
2017-10-04 06:12:12 +00:00
|
|
|
span.shop-item-price= item.Price
|
2017-10-03 13:26:29 +00:00
|
|
|
Icon("diamond")
|