Skip to content

Commit

Permalink
Initial hacky UI for email, doesn't work yet.
Browse files Browse the repository at this point in the history
...need to rig up event handlers.
  • Loading branch information
zenhack committed Apr 2, 2023
1 parent 1c5a109 commit 17633c8
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions internal/browser/main/view.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,15 +207,27 @@ func newDomainNonce() string {
}

func viewLoginForm(l10n intl.L10N) vdom.VNode {
return h("form", a{"action": "/login/dev", "method": "post"}, nil,
h("label", a{"for": "name"}, nil,
t(l10n, "Dev account login"),
return h("div", nil, nil,
h("form", a{"action": "/login/dev", "method": "post"}, nil,
h("label", a{"for": "name"}, nil,
t(l10n, "Dev account login"),
),
h("input", a{
"name": "name",
"placeholder": "e.g. Alice Dev Admin",
}, nil),
h("button", a{"type": "submit"}, nil, t(l10n, "Submit")),
),
h("div", nil, nil,
h("label", a{"for": "address"}, nil,
t(l10n, "Email address for login"),
),
h("input", a{
"name": "address",
"placeholder": "e.g. [email protected]",
}, nil),
h("button", nil, nil, t(l10n, "Submit")),
),
h("input", a{
"name": "name",
"placeholder": "e.g. Alice Dev Admin",
}, nil),
h("button", a{"type": "submit"}, nil, t(l10n, "Submit")),
)
}

Expand Down

0 comments on commit 17633c8

Please sign in to comment.