add top banner
This commit is contained in:
parent
0c0a018cd2
commit
a49346bda4
1 changed files with 7 additions and 0 deletions
|
|
@ -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...),
|
||||
),
|
||||
|
|
|
|||
Loading…
Reference in a new issue