Files
sonr/internal/dwn/front/views/register.templ
T

27 lines
645 B
Templ
Raw Normal View History

2024-09-18 02:22:17 -04:00
package views
import (
"github.com/labstack/echo/v4"
"github.com/onsonr/sonr/internal/dwn/front/blocks"
"github.com/onsonr/sonr/internal/dwn/front/islands"
)
func RegisterView(c echo.Context) error {
return echoComponentResponse(c, renderRegisterView(c))
}
templ renderRegisterView(c echo.Context) {
@blocks.Layout("Register | Sonr.ID") {
@blocks.Card("register-view", blocks.SizeMedium) {
@blocks.H2("Account Registration")
@blocks.Spacer()
@blocks.Breadcrumbs()
@islands.BasicInfo(c, islands.InitialForm)
@blocks.Spacer()
@blocks.Button(blocks.GET("/", "#register-view")) {
@blocks.Text("Cancel")
}
}
}
}