From a401dd59a6d76face8b5ec1e2d687c7ac911ed94 Mon Sep 17 00:00:00 2001 From: GiBg1aN Date: Thu, 19 Oct 2017 17:11:29 +0200 Subject: [PATCH] Color victory/lost messages Now, victory message is in green and lost message is in red --- src/view/MainContent.elm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/view/MainContent.elm b/src/view/MainContent.elm index 9691bca..316544e 100644 --- a/src/view/MainContent.elm +++ b/src/view/MainContent.elm @@ -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 ]