Files
LazyPM/pkg/web/routes/layout.templ
Moira Daniella A Sebastian 7cd12e7394 Feature: Add top bar
2026-02-12 16:15:34 +01:00

32 lines
936 B
Plaintext

package routes
import "github.com/LazyBachelor/LazyPM/pkg/web/components"
var baseLayout = components.LayoutProps{
Title: "Beads Test Application",
Description: "A sample application using Beads storage service",
Head: components.HeadProps{
Links: []components.Link{
{Href: "/assets/css/styles.css", Rel: "stylesheet"},
{Href: "/assets/manifest.json", Rel: "manifest"},
},
Scripts: []components.Script{
{Src: "/assets/js/htmx.min.js", Defer: true},
{Src: "/assets/js/ajax.min.js", Defer: true},
},
},
Header: components.HeaderProps{
BrandName: "LazyPM Dashboard",
CreateLabel: "+ Create",
CreateHref: "",
SearchPlaceholder: "Search",
},
Footer: components.FooterProps{
},
}
templ BaseLayout(){
@components.Layout(baseLayout){
{ children... }
}
}