mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 13:07:09 +00:00
30 lines
692 B
Plaintext
30 lines
692 B
Plaintext
package pages
|
|
|
|
import (
|
|
"github.com/labstack/echo/v4"
|
|
"github.com/onsonr/sonr/nebula/blocks"
|
|
)
|
|
|
|
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()
|
|
}
|
|
}
|
|
}
|