mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-02 17:31:39 +00:00
26 lines
573 B
Templ
26 lines
573 B
Templ
package views
|
|
|
|
import (
|
|
"github.com/labstack/echo/v4"
|
|
"github.com/onsonr/sonr/internal/gui/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")
|
|
}
|
|
}
|
|
}
|
|
}
|