add top banner

This commit is contained in:
maddalax 2024-10-10 20:37:24 -05:00
parent 0c0a018cd2
commit a49346bda4

View file

@ -5,6 +5,12 @@ import (
)
func RootPage(children ...h.Ren) h.Ren {
banner := h.A(h.Class("bg-neutral-200 text-neutral-600 text-center p-2 flex items-center justify-center"),
h.Href("https://github.com/maddalax/htmgo"),
h.Attribute("target", "_blank"),
h.Text("Built with htmgo.dev"),
)
return h.Html(
h.HxExtensions(h.BaseExtensions()),
h.Head(
@ -23,6 +29,7 @@ func RootPage(children ...h.Ren) h.Ren {
h.Script("/public/htmgo.js"),
),
h.Body(
banner,
h.Div(
h.Fragment(children...),
),