mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-03 18:01:39 +00:00
25 lines
540 B
Templ
25 lines
540 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"
|
|
"github.com/onsonr/sonr/pkg/nebula/models"
|
|
)
|
|
|
|
func Home(c echo.Context) error {
|
|
mdls, err := models.GetModels()
|
|
if err != nil {
|
|
return err
|
|
}
|
|
return echoResponse(c, homeView(mdls.Hero))
|
|
}
|
|
|
|
templ homeView(hero *models.Hero) {
|
|
@blocks.LayoutNoBody("Sonr.ID", true) {
|
|
@sections.HeaderMarketingNav()
|
|
@sections.SectionHero(hero)
|
|
@sections.FooterMarketingNav()
|
|
}
|
|
}
|