feat: implement new profile card component

This commit is contained in:
Prad Nukala
2024-10-07 10:20:14 -04:00
parent 0f2a5bf2b4
commit bac98b5e38
31 changed files with 276 additions and 719 deletions
+10 -9
View File
@@ -2,18 +2,19 @@ package login
import (
"github.com/labstack/echo/v4"
"github.com/onsonr/sonr/pkg/nebula/components/blocks"
"github.com/onsonr/sonr/pkg/nebula/global/styles"
"github.com/onsonr/sonr/pkg/nebula/global/ui"
)
templ View(c echo.Context) {
@blocks.Layout("Sonr.ID", true) {
@blocks.Card("login-view", blocks.SizeLarge) {
@blocks.H1("Sonr.ID")
@blocks.Text("Neo-tree is a file manager for NeoFS.")
@blocks.Spacer()
@blocks.Spacer()
@blocks.Button(blocks.GET("/", "#login-view")) {
@blocks.Text("Cancel")
@styles.Layout("Sonr.ID", true) {
@ui.Card("login-view", styles.SizeLarge) {
@styles.H1("Sonr.ID")
@styles.Text("Neo-tree is a file manager for NeoFS.")
@styles.Spacer()
@styles.Spacer()
@ui.Button(ui.GET("/", "#login-view")) {
@styles.Text("Cancel")
}
}
}