@@ -73,3 +72,7 @@ templ CreateProfile(action string, method string, data CreateProfileData) {
}
+
+// ╭──────────────────────────────────────────────────────╮
+// │ Passkey Components │
+// ╰──────────────────────────────────────────────────────╯
diff --git a/pkg/common/styles/forms/create_profile_templ.go b/app/gateway/internal/pages/register/profile_templ.go
similarity index 76%
rename from pkg/common/styles/forms/create_profile_templ.go
rename to app/gateway/internal/pages/register/profile_templ.go
index 5a644dade..da23c1b2d 100644
--- a/pkg/common/styles/forms/create_profile_templ.go
+++ b/app/gateway/internal/pages/register/profile_templ.go
@@ -1,7 +1,7 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.2.793
-package forms
+package register
//lint:file-ignore SA4006 This context is only used if a nested component is present.
@@ -23,8 +23,7 @@ func (d CreateProfileData) IsHumanLabel() string {
return fmt.Sprintf("What is %d + %d?", d.FirstNumber, d.LastNumber)
}
-// ProfileForm is a standard form styled like a card
-func CreateProfile(action string, method string, data CreateProfileData) templ.Component {
+func formCreateProfile(action string, method string, data CreateProfileData) templ.Component {
return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context
if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil {
@@ -61,13 +60,13 @@ func CreateProfile(action string, method string, data CreateProfileData) templ.C
var templ_7745c5c3_Var3 string
templ_7745c5c3_Var3, templ_7745c5c3_Err = templ.JoinStringErrs(method)
if templ_7745c5c3_Err != nil {
- return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/common/styles/forms/create_profile.templ`, Line: 20, Col: 55}
+ return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/gateway/internal/pages/register/profile.templ`, Line: 19, Col: 55}
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var3))
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\">
")
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\">")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -112,13 +111,13 @@ func CreateProfile(action string, method string, data CreateProfileData) templ.C
var templ_7745c5c3_Var5 string
templ_7745c5c3_Var5, templ_7745c5c3_Err = templ.JoinStringErrs(data.IsHumanLabel())
if templ_7745c5c3_Err != nil {
- return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/common/styles/forms/create_profile.templ`, Line: 38, Col: 56}
+ return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/gateway/internal/pages/register/profile.templ`, Line: 37, Col: 56}
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var5))
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\" help-text=\"Prove you are a human.\" min=\"0\" max=\"9\" step=\"1\"> Cancel Next
")
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\" help-text=\"Prove you are a human.\" min=\"0\" max=\"9\" step=\"1\"> Cancel Next
")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -126,4 +125,7 @@ func CreateProfile(action string, method string, data CreateProfileData) templ.C
})
}
+// ╭──────────────────────────────────────────────────────╮
+// │ Passkey Components │
+// ╰──────────────────────────────────────────────────────╯
var _ = templruntime.GeneratedTemplate