mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-02 17:31:39 +00:00
* fix: update commitizen version * feat: add WASM build tags to db actions * feat: Update all actions to follow `AddAsset` for error handling * feat: remove database dependency in dwn and motr commands * feat: add basic info form to registration view * feat: implement basic browser navigation component * refactor: move database related files to middleware * fix: remove unused test command * fix: update source directory for buf-publish workflow
27 lines
655 B
Templ
27 lines
655 B
Templ
package views
|
|
|
|
import (
|
|
"github.com/labstack/echo/v4"
|
|
"github.com/onsonr/sonr/internal/dwn/elements"
|
|
"github.com/onsonr/sonr/internal/dwn/islands"
|
|
)
|
|
|
|
func RegisterView(c echo.Context) error {
|
|
return echoComponentResponse(c, renderRegisterView(c))
|
|
}
|
|
|
|
templ renderRegisterView(c echo.Context) {
|
|
@elements.Layout("Register | Sonr.ID") {
|
|
@elements.Card("register-view", elements.SizeMedium) {
|
|
@elements.H2("Account Registration")
|
|
@elements.Spacer()
|
|
@elements.Breadcrumbs()
|
|
@islands.BasicInfo(c, islands.InitialForm)
|
|
@elements.Spacer()
|
|
@elements.Button(elements.GET("/", "#register-view")) {
|
|
@elements.Text("Cancel")
|
|
}
|
|
}
|
|
}
|
|
}
|