Skip to content

Commit

Permalink
update Navigation for About screen
Browse files Browse the repository at this point in the history
relates to #97
  • Loading branch information
techieshark committed Aug 15, 2016
1 parent a321a9b commit bda656e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion prototype/src/Navigation.elm
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ titleHtml location =

SplashPage -> none

AboutScreen ->
container [h1 [] [text "About"]]

Discovering ->
container [logoDiv]

Expand All @@ -42,14 +45,21 @@ buttonHtml address location =

SplashPage -> none

AboutScreen ->
backButton address

Discovering ->
button [onClick address ViewFavourites] [i [class "fa fa-heart fa-2x"] []]

Viewing _ _ _ ->
button [onClick address Back] [i [class "fa fa-angle-left fa-3x"] []]
backButton address

ViewingFavourites ->
button [onClick address Discover] [i [class "fa fa-map fa-2x"] []]

backButton : Signal.Address AppAction -> Html
backButton address =
button [onClick address Back] [i [class "fa fa-angle-left fa-3x"] []]

none : Html
none = text ""

0 comments on commit bda656e

Please sign in to comment.