2024-12-05 20:36:58 -05:00
|
|
|
package register
|
|
|
|
|
|
|
|
|
|
import (
|
2024-12-11 14:55:19 -05:00
|
|
|
"github.com/onsonr/sonr/internal/nebula/card"
|
|
|
|
|
"github.com/onsonr/sonr/internal/nebula/layout"
|
|
|
|
|
"github.com/onsonr/sonr/internal/nebula/text"
|
2024-12-05 20:36:58 -05:00
|
|
|
)
|
|
|
|
|
|
2024-12-10 02:43:28 -05:00
|
|
|
templ ProfileFormView(data CreateProfileData) {
|
2024-12-11 15:11:24 -05:00
|
|
|
@layout.View("New Profile | Sonr.ID") {
|
2024-12-11 14:55:19 -05:00
|
|
|
@card.Container() {
|
|
|
|
|
@text.TitleDescription("Basic Info", "Tell us a little about yourself.")
|
2024-12-10 02:43:28 -05:00
|
|
|
@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-11 15:11:24 -05:00
|
|
|
@layout.View("Register | Sonr.ID") {
|
2024-12-11 14:55:19 -05:00
|
|
|
@card.Container() {
|
|
|
|
|
@text.TitleDescription("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-11 15:11:24 -05:00
|
|
|
@layout.View("Loading... | Sonr.ID") {
|
2024-12-11 14:55:19 -05:00
|
|
|
@card.Container() {
|
|
|
|
|
@text.TitleDescription("Loading Vault", "This will be used to login to your vault.")
|
2024-12-05 20:36:58 -05:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|