mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-02 17:31:39 +00:00
47 lines
1.3 KiB
Templ
47 lines
1.3 KiB
Templ
package register
|
|
|
|
import (
|
|
"github.com/onsonr/nebula/ui/details"
|
|
"github.com/onsonr/nebula/ui/form"
|
|
"github.com/onsonr/nebula/ui/layout"
|
|
"github.com/onsonr/nebula/ui/text"
|
|
)
|
|
|
|
templ ProfileFormView(turnstileSiteKey string) {
|
|
@layout.Root("New Profile | Sonr.ID") {
|
|
@layout.Container() {
|
|
@text.Header("Create a Profile", "Enter some basic information about yourself.")
|
|
@form.Form("/register/start", "POST", form.Submit("Continue"), "25", true) {
|
|
@form.NameInput()
|
|
<br/>
|
|
@form.HandleInput()
|
|
@form.TurnstileWidget(turnstileSiteKey)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
templ LinkCredentialView(req LinkCredentialRequest) {
|
|
@layout.Root("Register | Sonr.ID") {
|
|
@layout.Container() {
|
|
@text.Header("Link a PassKey", "This will be used to login to your vault.")
|
|
@form.Form("/register/finish", "POST", form.PasskeyInput("passkey"), "65", false) {
|
|
@details.PropertyList() {
|
|
@details.Property("Address", req.Address, "wallet")
|
|
@details.Property("Handle", req.Handle, "at-sign")
|
|
@details.Property("Platform", req.Platform, "device-iphone")
|
|
@details.Property("Model", req.DeviceModel, "laptop")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
templ LoadingVaultView() {
|
|
@layout.Root("Loading... | Sonr.ID") {
|
|
@layout.Container() {
|
|
@text.Header("Loading Vault", "This will be used to login to your vault.")
|
|
}
|
|
}
|
|
}
|