mirror of
https://codeberg.org/JasterV/2048.elm.git
synced 2026-04-26 18:10:03 +00:00
removes score until it works
This commit is contained in:
parent
9cc7c10a3c
commit
6f20144526
1 changed files with 13 additions and 8 deletions
21
src/View.elm
21
src/View.elm
|
|
@ -20,15 +20,20 @@ game model =
|
|||
]
|
||||
|
||||
|
||||
mainColor : Color
|
||||
mainColor =
|
||||
rgb 1 0.7 0.5
|
||||
|
||||
|
||||
score_ : Int -> Element Msg
|
||||
score_ score =
|
||||
score
|
||||
|> String.fromInt
|
||||
|> (++) "Score: "
|
||||
|> text
|
||||
score_ _ =
|
||||
-- score
|
||||
-- |> String.fromInt
|
||||
-- |> (++) "Score: "
|
||||
text "Welcome :)"
|
||||
|> Element.el [ centerY, centerX ]
|
||||
|> List.singleton
|
||||
|> row [ width fill, height <| fillPortion 1, paddingXY 5 5 ]
|
||||
|> row [ width fill, height <| fillPortion 1, paddingXY 5 5, Element.Font.bold, Element.Font.color mainColor ]
|
||||
|
||||
|
||||
board_ : Game.Board -> Element Msg
|
||||
|
|
@ -58,9 +63,9 @@ cell_ cell =
|
|||
|> Maybe.withDefault " "
|
||||
in
|
||||
column
|
||||
[ padding 30
|
||||
[ padding 60
|
||||
, Element.Border.rounded 10
|
||||
, Element.Font.semiBold
|
||||
, Element.Background.color (rgb 1 0.7 0.5)
|
||||
, Element.Background.color mainColor
|
||||
]
|
||||
[ text value ]
|
||||
|
|
|
|||
Loading…
Reference in a new issue