Skip to content
This repository has been archived by the owner on Jun 4, 2021. It is now read-only.

Commit

Permalink
Color victory/lost messages
Browse files Browse the repository at this point in the history
Now, victory message is in green and lost message is in red
  • Loading branch information
GiBg1aN committed Oct 19, 2017
1 parent f16bc2d commit a401dd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/view/MainContent.elm
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ view : Model -> List (Html Msg) -> Html Msg
view model cells =
case model.status of
Lost ->
div [ style [ ( "display", "flex" ), ( "padding", "200px" ) ] ] [ h1 [] [ text "You Lost!" ] ]
div [ style [ ( "display", "flex" ), ( "padding", "200px" ) ] ] [ h1 [ style [ ( "color", "red" ), ( "background-color", "white" ) ] ] [ text "You Lost!" ] ]

Win ->
div [ style [ ( "display", "flex" ), ( "padding", "200px" ) ] ] [ h1 [] [ text "You Won!" ] ]
div [ style [ ( "display", "flex" ), ( "padding", "200px" ) ] ] [ h1 [ style [ ( "color", "green" ), ( "background-color", "white" ) ] ] [ text "You Won!" ] ]

Moving ->
div [ style [ ( "display", "flex" ) ] ] [ table [] cells ]

0 comments on commit a401dd5

Please sign in to comment.