fix: update hero image height in config.pkl

This commit is contained in:
Prad Nukala
2024-09-30 21:27:02 -04:00
parent 36ad1448df
commit bfa78063a7
6 changed files with 56 additions and 25 deletions
+3 -11
View File
@@ -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">
+3 -11
View File
@@ -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 {