proper-website-2/components/navbar.go
2022-03-14 20:32:35 +01:00

26 lines
568 B
Go

package components
import "github.com/maxence-charriere/go-app/v9/pkg/app"
type navbar struct {
app.Compo
OnClickButton func(page string)
}
func (n *navbar) Render() app.UI {
return app.Div().Body(
app.Ul().Body(
app.Li().Body(
app.A().Href("/").Text("Home"),
),
app.Li().Body(
app.A().Href("/about").Text("About"),
),
app.Li().Body(
app.A().Href("/galaxies").Text("Galaxies"),
),
),
).Class("border-solid border-4 rounded border-borderpink text-aliceblue bg-cool float-left relative w-[180px] font-[havakana] text-center")
}