Login Classname

This commit is contained in:
Michael Harding committed 2018-04-26 10:50:51 -04:00
1 parent 25c793e232
commit 5fbdedfdca
1 file changed
+15 -17
+15 -17
View File
@@ -56,43 +56,41 @@ let update msg model =
//
// View
let Class = ClassName
let root model dispatch =
let sparkImg = "https://www.bluetradingsystems.com/templates/bluetradesys/images/header-text/Spark-header.opt.svg"
let handler msg (ev:Fable.Import.React.FormEvent) =
!!ev.target?value |> msg |> dispatch
section [ Class "hero is-fullheight" ] [
div [ Class "hero-body" ] [
div [ Class "container has-text-centered" ] [
div [ Class "column is-4 is-offset-4" ] [
p [ Class "subtitle has-text-grey" ] [
section [ ClassName "hero is-fullheight" ] [
div [ ClassName "hero-body" ] [
div [ ClassName "container has-text-centered" ] [
div [ ClassName "column is-4 is-offset-4" ] [
p [ ClassName "subtitle has-text-grey" ] [
str "Please log in" ]
div [ Class "box" ] [
figure [ Class "avatar" ] [
div [ ClassName "box" ] [
figure [ ClassName "avatar" ] [
//img [ Src sparkImg ]
]
form [ OnSubmit (fun e ->
e.preventDefault()
dispatch Submit) ] [
div [ Class "field" ] [
div [ Class "control" ] [
input [ Class "input is-large"
div [ ClassName "field" ] [
div [ ClassName "control" ] [
input [ ClassName "input is-large"
Type "text"
OnChange (handler Username)
AutoFocus true
Placeholder "Username" ] ] ]
div [ Class "field" ] [
div [ Class "control" ] [
input [ Class "input is-large"
div [ ClassName "field" ] [
div [ ClassName "control" ] [
input [ ClassName "input is-large"
Type "password"
OnChange (handler Password)
Placeholder "Password" ] ] ]
div [] [str model.error]
button [OnClick (fun _ -> dispatch Submit)
Class "button is-block is-info is-large is-fullwidth" ] [
ClassName "button is-block is-info is-large is-fullwidth" ] [
str "Login" ] ] ]
p [ Class "has-text-grey" ] [
p [ ClassName "has-text-grey" ] [
a [ OnClick (fun _ -> dispatch Help) ] [
str "Need Help?" ] ] ] ] ] ]