29 lines
514 B
Go
29 lines
514 B
Go
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 {
|
|
return newPage().
|
|
Title("Galaxies").
|
|
LeftBar(
|
|
newHTMLBlock().
|
|
Class("left").
|
|
Class("leftbarblock").
|
|
Src("/web/blocks/snippets/bannerpanel.html"),
|
|
).
|
|
Main(
|
|
newHTMLBlock().
|
|
Class("right").
|
|
Class("contentblock").
|
|
Src("/web/blocks/pages/galaxies.html"),
|
|
)
|
|
}
|