Skip to content

Commit

Permalink
Added goal text to the continue button.
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonkearns committed Jan 28, 2017
1 parent 76b6d15 commit c029feb
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion src/setup/Main.elm
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,31 @@ goalView newGoal maybeGoal =
]


goalTextForButton : Maybe String -> Html msg
goalTextForButton maybeGoal =
case maybeGoal of
Just goal ->
text goal

Nothing ->
text ""


continueButtonChildren : Model -> List (Html Msg)
continueButtonChildren model =
[ div [ class "col-md-4" ] [ text "Continue" ]
, div
[ class "col-md-8"
, style
[ ( "font-size", "22px" )
, ( "font-style", "italic" )
, ( "text-align", "left" )
]
]
[ goalTextForButton model.goal ]
]


continueView : Model -> Html Msg
continueView model =
div [ class "container-fluid" ]
Expand All @@ -185,7 +210,13 @@ continueView model =
, titleTextView
]
, div [ class "row", style [ ( "padding-bottom", "20px" ) ] ]
[ button [ onClick StartTimer, class "btn btn-info btn-lg btn-block top-buffer", title "Ctrl+Enter or ⌘+Enter", style [ ( "font-size", "30px" ), ( "padding", "20px" ) ] ] [ text "Continue" ]
[ button
[ onClick StartTimer
, class "btn btn-info btn-lg btn-block top-buffer"
, title "Ctrl+Enter or ⌘+Enter"
, style [ ( "font-size", "30px" ), ( "padding", "20px" ) ]
]
(continueButtonChildren model)
]
, nextDriverNavigatorView model
, tipView model.tip
Expand Down

0 comments on commit c029feb

Please sign in to comment.