mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-03 01:41:44 +00:00
fix: update hero image height in config.pkl
This commit is contained in:
@@ -3,15 +3,7 @@ package pages
|
||||
import (
|
||||
"github.com/labstack/echo/v4"
|
||||
"github.com/onsonr/sonr/pkg/nebula/components/blocks"
|
||||
)
|
||||
|
||||
type FormState string
|
||||
|
||||
const (
|
||||
InitialForm FormState = "initial"
|
||||
ErrorForm FormState = "error"
|
||||
SuccessForm FormState = "success"
|
||||
WarningForm FormState = "warning"
|
||||
"github.com/onsonr/sonr/pkg/nebula/models/formstate"
|
||||
)
|
||||
|
||||
func Register(c echo.Context) error {
|
||||
@@ -24,7 +16,7 @@ templ registerView(c echo.Context) {
|
||||
@blocks.H2("Account Registration")
|
||||
@blocks.Spacer()
|
||||
@blocks.Breadcrumbs()
|
||||
@basicInfoForm(InitialForm)
|
||||
@basicInfoForm(formstate.Initial)
|
||||
@blocks.Spacer()
|
||||
@blocks.Button(blocks.GET("/", "#register-view")) {
|
||||
@blocks.Text("Cancel")
|
||||
@@ -33,7 +25,7 @@ templ registerView(c echo.Context) {
|
||||
}
|
||||
}
|
||||
|
||||
templ basicInfoForm(state FormState) {
|
||||
templ basicInfoForm(state formstate.FormState) {
|
||||
switch (state) {
|
||||
default:
|
||||
<div class="border rounded-lg shadow-sm bg-card text-neutral-900">
|
||||
|
||||
@@ -11,15 +11,7 @@ import templruntime "github.com/a-h/templ/runtime"
|
||||
import (
|
||||
"github.com/labstack/echo/v4"
|
||||
"github.com/onsonr/sonr/pkg/nebula/components/blocks"
|
||||
)
|
||||
|
||||
type FormState string
|
||||
|
||||
const (
|
||||
InitialForm FormState = "initial"
|
||||
ErrorForm FormState = "error"
|
||||
SuccessForm FormState = "success"
|
||||
WarningForm FormState = "warning"
|
||||
"github.com/onsonr/sonr/pkg/nebula/models/formstate"
|
||||
)
|
||||
|
||||
func Register(c echo.Context) error {
|
||||
@@ -95,7 +87,7 @@ func registerView(c echo.Context) templ.Component {
|
||||
if templ_7745c5c3_Err != nil {
|
||||
return templ_7745c5c3_Err
|
||||
}
|
||||
templ_7745c5c3_Err = basicInfoForm(InitialForm).Render(ctx, templ_7745c5c3_Buffer)
|
||||
templ_7745c5c3_Err = basicInfoForm(formstate.Initial).Render(ctx, templ_7745c5c3_Buffer)
|
||||
if templ_7745c5c3_Err != nil {
|
||||
return templ_7745c5c3_Err
|
||||
}
|
||||
@@ -149,7 +141,7 @@ func registerView(c echo.Context) templ.Component {
|
||||
})
|
||||
}
|
||||
|
||||
func basicInfoForm(state FormState) templ.Component {
|
||||
func basicInfoForm(state formstate.FormState) 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 {
|
||||
|
||||
Reference in New Issue
Block a user