sonr/nebula/pages/home.templ

30 lines
692 B
Plaintext
Raw Normal View History

2024-09-22 02:51:52 -04:00
package pages
import (
"github.com/labstack/echo/v4"
"github.com/onsonr/sonr/nebula/blocks"
2024-09-22 02:51:52 -04:00
)
func Home(c echo.Context) error {
return echoResponse(c, homeView())
}
templ homeView() {
@blocks.Layout("Sonr.ID", true) {
@blocks.Card("home-view", blocks.SizeLarge) {
@blocks.H1("Sonr.ID")
@blocks.Text("A Decentralized Web Node Client for the Sonr Network.")
@blocks.Spacer()
<div class="flex flex-col gap-3">
@blocks.Button(blocks.GET("/register", "#home-view"), blocks.PrimaryButtonStyle()) {
@blocks.Text("Get Started")
}
@blocks.Button(blocks.GET("/login", "#home-view")) {
@blocks.Text("Login")
}
</div>
@blocks.PoweredBySonr()
}
2024-09-22 02:51:52 -04:00
}
}