diff --git a/client/index.html b/client/index.html index ce8f727b6..facf4e986 100644 --- a/client/index.html +++ b/client/index.html @@ -2,13 +2,31 @@ + Elm SPA +
diff --git a/client/src/Login.elm b/client/src/Login.elm index 27f1d811a..968325d48 100644 --- a/client/src/Login.elm +++ b/client/src/Login.elm @@ -5,9 +5,12 @@ import Html.Attributes exposing (..) import Html.Events exposing (..) import State +googleSignIn : Html State.Msg +googleSignIn = + div [ class "g-signin2", attribute "onsuccess" "onSignIn" ] [] render : State.Model -> Html State.Msg render model = div [ class "pt-10 pb-20 px-10" ] - [ p [] [ text "Please authenticate" ] + [ googleSignIn ] diff --git a/client/src/State.elm b/client/src/State.elm index c1edae8bb..8c56a7ecc 100644 --- a/client/src/State.elm +++ b/client/src/State.elm @@ -22,7 +22,7 @@ type alias Model = init : Model init = { isLoading = False - , view = Landing + , view = Login }