proper-website-2/components/navbar.go
DutchEllie cd5bdead18
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
Changed friends to galaxies and fixed CSS
2022-03-13 21:34:54 +01:00

26 lines
446 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("navbar")
}