proper-website-2/src/galaxiespage.go

29 lines
514 B
Go
Raw Normal View History

2022-03-15 12:48:47 +01:00
package main
import "github.com/maxence-charriere/go-app/v9/pkg/app"
type GalaxiesPage struct {
app.Compo
}
func NewGalaxiesPage() *GalaxiesPage {
return &GalaxiesPage{}
}
func (f *GalaxiesPage) Render() app.UI {
2022-03-15 12:48:47 +01:00
return newPage().
Title("Galaxies").
LeftBar(
2022-03-15 13:22:59 +01:00
newHTMLBlock().
Class("left").
Class("leftbarblock").
Src("/web/blocks/snippets/bannerpanel.html"),
2022-03-15 12:48:47 +01:00
).
Main(
newHTMLBlock().
Class("right").
2022-03-15 13:22:59 +01:00
Class("contentblock").
2022-03-15 13:06:52 +01:00
Src("/web/blocks/pages/galaxies.html"),
2022-03-15 12:48:47 +01:00
)
}