2022-03-18 22:45:29 +01:00
|
|
|
package main
|
|
|
|
|
|
|
|
import "github.com/maxence-charriere/go-app/v9/pkg/app"
|
|
|
|
|
|
|
|
type UndertalePage struct {
|
|
|
|
app.Compo
|
|
|
|
}
|
|
|
|
|
|
|
|
// TODO: Autoplay Megalovania
|
|
|
|
|
|
|
|
func NewUndertalePage() *UndertalePage {
|
|
|
|
return &UndertalePage{}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (u *UndertalePage) Render() app.UI {
|
|
|
|
return newPage().
|
|
|
|
Title("Undertale").
|
2022-03-24 13:25:07 +01:00
|
|
|
BackgroundClass("undertale-bg").
|
|
|
|
Background().
|
2022-03-18 22:45:29 +01:00
|
|
|
LeftBar(
|
|
|
|
newHTMLBlock().
|
|
|
|
Class("left").
|
|
|
|
Class("leftbarblock a").
|
|
|
|
Src("/web/blocks/snippets/bannerpanel.html"),
|
|
|
|
).
|
|
|
|
Main(
|
|
|
|
newHTMLBlock().
|
|
|
|
Class("right").
|
|
|
|
Class("contentblock").
|
|
|
|
Src("/web/blocks/pages/undertale.html"),
|
|
|
|
)
|
|
|
|
}
|