mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-02 17:31:39 +00:00
* refactor: move database, navigator scripts to state package * feat: add Schema config for dwn * test: add unit tests for InitializeDatabase * feat: use templated index.html for the DWN frontend * feat: introduce templ generation for templ * chore(deps): update devbox.json to use latest packages * chore: update devbox to use bun * feat: introduce dwn config generation * feat: add motr.mjs for vault management * refactor: move front end from to (alert) * feat: implement devbox integration and devbox-based process management * feat: embed motr.mjs script for offline demo * refactor: embed motr.mjs data in embed.go * chore: update workflows to use actions/checkout@v4 * refactor: move process-compose.yaml to deploy directory * refactor: remove unnecessary JSON conversion
25 lines
509 B
Templ
25 lines
509 B
Templ
package views
|
|
|
|
import (
|
|
"github.com/labstack/echo/v4"
|
|
"github.com/onsonr/sonr/pkg/nebula/blocks"
|
|
|
|
)
|
|
|
|
func LoginView(c echo.Context) error {
|
|
return echoComponentResponse(c, renderLoginView())
|
|
}
|
|
|
|
templ renderLoginView() {
|
|
@blocks.Card("login-view", blocks.SizeLarge) {
|
|
@blocks.H1("Sonr.ID")
|
|
@blocks.Text("Neo-tree is a file manager for NeoFS.")
|
|
@blocks.Spacer()
|
|
@blocks.RadioGroup()
|
|
@blocks.Spacer()
|
|
@blocks.Button(blocks.GET("/", "#login-view")) {
|
|
@blocks.Text("Cancel")
|
|
}
|
|
}
|
|
}
|