32 lines
833 B
Go
32 lines
833 B
Go
package handlers
|
|
|
|
import (
|
|
g "github.com/maragudk/gomponents"
|
|
c "github.com/maragudk/gomponents/components"
|
|
. "github.com/maragudk/gomponents/html"
|
|
"portfolio/web/components"
|
|
)
|
|
|
|
func Page(title string, body g.Node) g.Node {
|
|
|
|
return c.HTML5(c.HTML5Props{
|
|
Title: title,
|
|
Language: "en",
|
|
Head: []g.Node{
|
|
Meta(Name("htmx-config"), Content("{\"withCredentials\":\"true\"}")),
|
|
Script(Src("https://cdn.tailwindcss.com?plugins=typography")),
|
|
Script(Src("https://unpkg.com/htmx.org")),
|
|
Link(Rel("icon"), Type("image/x-icon"), Href("assets/images/favicon.ico")),
|
|
//Link(Rel("stylesheet"), Href("https://cdn.jsdelivr.net/npm/bulma@1.0.0/css/bulma.min.css")),
|
|
Link(Rel("stylesheet"), Href("assets/css/style.css")),
|
|
},
|
|
Body: []g.Node{
|
|
components.Navbar(),
|
|
Main(
|
|
ID("main"),
|
|
body,
|
|
),
|
|
},
|
|
})
|
|
}
|