Files
sonr/pkg/nebula/components/marketing/page.templ
T

45 lines
2.0 KiB
Templ
Raw Normal View History

package marketing
import (
"github.com/labstack/echo/v4"
"github.com/onsonr/sonr/internal/ctx"
"github.com/onsonr/sonr/pkg/nebula/components/marketing/sections"
2024-10-11 16:47:52 -04:00
"github.com/onsonr/sonr/pkg/nebula/global/styles"
"log"
)
2024-10-23 12:26:01 -04:00
// ╭───────────────────────────────────────────────────────────╮
// │ Home Routes - Marketing │
// ╰───────────────────────────────────────────────────────────╯
func HomeRoute(c echo.Context) error {
s, err := ctx.GetHWAYContext(c)
if err != nil {
return err
}
log.Printf("Session ID: %s", s.ID())
return ctx.RenderTempl(c, View())
}
// ╭───────────────────────────────────────────────────────────╮
// │ Static Content Values │
// ╰───────────────────────────────────────────────────────────╯
// ╭─────────────────────────────────────────────────────────╮
// │ Final Rendering │
// ╰─────────────────────────────────────────────────────────╯
// View renders the home page
templ View() {
@styles.LayoutNoBody("Sonr.ID", true) {
@sections.Header()
@sections.Hero()
@sections.Highlights()
@sections.Mission()
@sections.Architecture()
@sections.Lowlights()
@sections.CallToAction()
@sections.Footer()
}
}