2024-12-05 20:36:58 -05:00
|
|
|
package register
|
|
|
|
|
|
|
|
|
|
import (
|
2024-12-09 18:27:55 -05:00
|
|
|
"github.com/onsonr/sonr/pkg/common/styles/layout"
|
|
|
|
|
"github.com/onsonr/sonr/pkg/common/styles/text"
|
2024-12-05 20:36:58 -05:00
|
|
|
)
|
|
|
|
|
|
2024-12-10 02:43:28 -05:00
|
|
|
templ ProfileFormView(data CreateProfileData) {
|
|
|
|
|
@layout.Root("Create Profile | Sonr.ID") {
|
2024-12-05 20:36:58 -05:00
|
|
|
@layout.Container() {
|
2024-12-10 02:43:28 -05:00
|
|
|
@text.Header("Basic Info", "Tell us a little about yourself.")
|
|
|
|
|
@formCreateProfile("/register/start", "POST", data)
|
2024-12-05 20:36:58 -05:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-12-10 02:43:28 -05:00
|
|
|
templ LinkCredentialView(data RegisterPasskeyData) {
|
2024-12-08 17:55:36 -05:00
|
|
|
@layout.Root("Register | Sonr.ID") {
|
2024-12-05 20:36:58 -05:00
|
|
|
@layout.Container() {
|
|
|
|
|
@text.Header("Link a PassKey", "This will be used to login to your vault.")
|
2024-12-10 02:43:28 -05:00
|
|
|
@formRegisterPasskey("/register/finish", "POST", data)
|
2024-12-05 20:36:58 -05:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
templ LoadingVaultView() {
|
2024-12-08 17:55:36 -05:00
|
|
|
@layout.Root("Loading... | Sonr.ID") {
|
2024-12-05 20:36:58 -05:00
|
|
|
@layout.Container() {
|
|
|
|
|
@text.Header("Loading Vault", "This will be used to login to your vault.")
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|