2024-05-16 22:56:04 +02:00
|
|
|
package handlers
|
|
|
|
|
|
|
|
|
|
import (
|
2025-05-07 22:33:21 +02:00
|
|
|
g "maragu.dev/gomponents"
|
|
|
|
|
c "maragu.dev/gomponents/components"
|
|
|
|
|
. "maragu.dev/gomponents/html"
|
2024-05-18 18:20:37 +02:00
|
|
|
"portfolio/web/components"
|
2024-05-16 22:56:04 +02:00
|
|
|
)
|
|
|
|
|
|
2024-05-18 18:20:37 +02:00
|
|
|
func Page(title string, body g.Node) g.Node {
|
2024-05-16 22:56:04 +02:00
|
|
|
|
|
|
|
|
return c.HTML5(c.HTML5Props{
|
|
|
|
|
Title: title,
|
|
|
|
|
Language: "en",
|
|
|
|
|
Head: []g.Node{
|
2024-05-20 00:20:50 +02:00
|
|
|
Meta(Name("htmx-config"), Content("{\"withCredentials\":\"true\"}")),
|
2024-06-11 11:03:08 +02:00
|
|
|
Meta(Name("viewport"), Content("width=device-width, initial-scale=1.0")),
|
2024-05-16 22:56:04 +02:00
|
|
|
Script(Src("https://cdn.tailwindcss.com?plugins=typography")),
|
2024-05-19 23:56:53 +02:00
|
|
|
Script(Src("https://unpkg.com/htmx.org")),
|
2024-05-16 22:56:04 +02:00
|
|
|
Link(Rel("icon"), Type("image/x-icon"), Href("assets/images/favicon.ico")),
|
2024-05-18 18:20:37 +02:00
|
|
|
//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,
|
|
|
|
|
),
|
2024-05-16 22:56:04 +02:00
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
}
|