2024-05-16 22:56:04 +02:00
|
|
|
package handlers
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
g "github.com/maragudk/gomponents"
|
|
|
|
|
c "github.com/maragudk/gomponents/components"
|
|
|
|
|
. "github.com/maragudk/gomponents/html"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func Page(title string, body []g.Node) g.Node {
|
|
|
|
|
|
|
|
|
|
return c.HTML5(c.HTML5Props{
|
|
|
|
|
Title: title,
|
|
|
|
|
Language: "en",
|
|
|
|
|
Head: []g.Node{
|
|
|
|
|
Script(Src("https://cdn.tailwindcss.com?plugins=typography")),
|
|
|
|
|
Link(Rel("icon"), Type("image/x-icon"), Href("assets/images/favicon.ico")),
|
2024-05-18 13:43:22 +02:00
|
|
|
Link(Rel("stylesheet"), Href("https://cdn.jsdelivr.net/npm/bulma@1.0.0/css/bulma.min.css")),
|
2024-05-16 22:56:04 +02:00
|
|
|
},
|
|
|
|
|
Body: body,
|
|
|
|
|
})
|
|
|
|
|
}
|