diff options
Diffstat (limited to 'src/View/View.elm')
-rw-r--r-- | src/View/View.elm | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/View/View.elm b/src/View/View.elm index 2f12902..f915952 100644 --- a/src/View/View.elm +++ b/src/View/View.elm @@ -23,8 +23,7 @@ view : Model -> Html view model = div [] - [ h1 [] [ text "Timer" ] - , addTimer + [ title , model.timers |> Dict.toList |> List.sortBy (.creationTime << snd) @@ -32,15 +31,17 @@ view model = |> timers ] -addTimer : Html -addTimer = - button - [ class "addTimer" - , onClick (Signal.send updates AddNewTimer) - ] - [ i - [ class "fa fa-fw fa-plus" ] - [] +title : Html +title = + div + [ class "title" ] + [ h1 [] [ text "Timer" ] + , button + [ onClick (Signal.send updates AddNewTimer) ] + [ i + [ class "fa fa-fw fa-plus" ] + [] + ] ] onEnter : Signal.Message -> Attribute |