improves design

This commit is contained in:
2019-11-07 21:28:58 +01:00
parent c98b930647
commit b784137d15
3 changed files with 22 additions and 11 deletions

View File

@@ -533,7 +533,7 @@ viewHeaderBar model =
nav [ class "navbar container", class "is-info" ]
[ div [ class "navbar-brand" ]
[ a [ class "navbar-item", href "/" ]
[ renderIcon "fab fa-d-and-d" "2x"
[ renderIcon { icon = "fab fa-d-and-d", size = "medium", ratio = "2x" }
, span [] [ text model.player.name ]
]
, a [ class "navbar-burger is-active" ]
@@ -545,7 +545,7 @@ viewHeaderBar model =
, div [ class "navbar-menu is-active" ]
[ div [ class "navbar-end" ]
[ a [ class "navbar-item", href "/marchand" ]
[ renderIcon "fas fa-store-alt" "1x"
[ renderIcon { icon = "fas fa-store-alt", ratio = "1x", size = "medium" }
, span [] [ text "Marchand" ]
]
, a
@@ -558,7 +558,7 @@ viewHeaderBar model =
"/coffre"
)
]
[ renderIcon "fas fa-gem" "1x"
[ renderIcon { icon = "fas fa-gem", ratio = "1x", size = "medium" }
, span []
[ text
(if model.player.id == 0 then