mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-04 18:31:41 +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
26 lines
573 B
Templ
26 lines
573 B
Templ
package views
|
|
|
|
import (
|
|
"github.com/labstack/echo/v4"
|
|
"github.com/onsonr/sonr/internal/dwn/elements"
|
|
)
|
|
|
|
func LoginView(c echo.Context) error {
|
|
return echoComponentResponse(c, renderLoginView())
|
|
}
|
|
|
|
templ renderLoginView() {
|
|
@elements.Layout("Login | Sonr.ID") {
|
|
@elements.Card("login-view", elements.SizeLarge) {
|
|
@elements.H1("Sonr.ID")
|
|
@elements.Text("Neo-tree is a file manager for NeoFS.")
|
|
@elements.Spacer()
|
|
@elements.RadioGroup()
|
|
@elements.Spacer()
|
|
@elements.Button(elements.GET("/", "#login-view")) {
|
|
@elements.Text("Cancel")
|
|
}
|
|
}
|
|
}
|
|
}
|