2024-09-18 02:22:17 -04:00
|
|
|
package views
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"github.com/labstack/echo/v4"
|
2024-09-21 21:42:51 -04:00
|
|
|
"github.com/onsonr/sonr/pkg/nebula/blocks"
|
|
|
|
|
"github.com/onsonr/sonr/pkg/nebula/islands"
|
2024-09-18 02:22:17 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func RegisterView(c echo.Context) error {
|
|
|
|
|
return echoComponentResponse(c, renderRegisterView(c))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
templ renderRegisterView(c echo.Context) {
|
|
|
|
|
@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")
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|