mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-03 01:41:44 +00:00
30 lines
902 B
Templ
30 lines
902 B
Templ
package pages
|
|
|
|
import (
|
|
"github.com/labstack/echo/v4"
|
|
"github.com/onsonr/sonr/pkg/nebula/components/blocks"
|
|
"github.com/onsonr/sonr/pkg/nebula/components/sections"
|
|
)
|
|
|
|
func Home(c echo.Context) error {
|
|
hero := sections.Hero{
|
|
TitleFirst: "Simplified",
|
|
TitleEmphasis: "self-custody",
|
|
TitleSecond: "for everyone",
|
|
Subtitle: "Sonr is a modern re-imagination of online user identity, empowering users to take ownership of their digital footprint and unlocking a new era of self-sovereignty.",
|
|
PrimaryButtonText: "Get Started",
|
|
PrimaryButtonLink: "/register",
|
|
SecondaryButtonText: "Learn More",
|
|
SecondaryButtonLink: "/about",
|
|
}
|
|
return echoResponse(c, homeView(hero))
|
|
}
|
|
|
|
templ homeView(hero sections.Hero) {
|
|
@blocks.LayoutNoBody("Sonr.ID", true) {
|
|
@sections.HeaderMarketingNav()
|
|
@sections.SectionHero(hero)
|
|
@sections.FooterMarketingNav()
|
|
}
|
|
}
|