refactor: move home page sections to home package

This commit is contained in:
Prad Nukala
2024-10-01 13:48:28 -04:00
parent a7721885c2
commit d486becbc6
19 changed files with 43 additions and 44 deletions
+9 -9
View File
@@ -3,7 +3,7 @@ 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/components/home"
"github.com/onsonr/sonr/pkg/nebula/models"
)
@@ -17,13 +17,13 @@ func Home(c echo.Context) error {
templ homeView(hero *models.Hero) {
@blocks.LayoutNoBody("Sonr.ID", true) {
@sections.MarketingHeader()
@sections.SectionHero(hero)
@sections.Highlights()
@sections.Features()
@sections.Bento()
@sections.Lowlights()
@sections.CallToAction()
@sections.MarketingFooter()
@home.MarketingHeader()
@home.SectionHero(hero)
@home.Highlights()
@home.Features()
@home.Bento()
@home.Lowlights()
@home.CallToAction()
@home.MarketingFooter()
}
}