mirror of
https://github.com/jlengrand/simpleFoodDiary.git
synced 2026-03-10 08:41:21 +00:00
Last version
This commit is contained in:
16
src/Main.elm
16
src/Main.elm
@@ -252,7 +252,21 @@ view model =
|
||||
[]
|
||||
]
|
||||
]
|
||||
, main_ [ style "height" "80%", style "background-color" Styles.mainColor, class "flex-grow" ] [ text "main" ]
|
||||
, main_
|
||||
[ style "height" "80%"
|
||||
, style "background-color" Styles.mainColor
|
||||
, class "flex-grow"
|
||||
]
|
||||
[ h1 [] [ text "Lean Food Diary" ]
|
||||
, case model.userData of
|
||||
Maybe.Nothing ->
|
||||
div []
|
||||
[ button [ onClick SignIn ] [ text "Login with Google" ]
|
||||
]
|
||||
|
||||
Just userData ->
|
||||
div [] []
|
||||
]
|
||||
, footer
|
||||
[ style "height" "10%"
|
||||
, style "background-color" Styles.mainColor
|
||||
|
||||
Reference in New Issue
Block a user