proper-website-2/src/aboutpage.go

31 lines
501 B
Go
Raw Normal View History

2022-03-15 12:48:47 +01:00
package main
2022-03-01 17:07:33 +01:00
2022-03-02 13:38:28 +01:00
import (
"github.com/maxence-charriere/go-app/v9/pkg/app"
)
2022-03-01 17:07:33 +01:00
type AboutPage struct {
app.Compo
}
func NewAboutPage() *AboutPage {
return &AboutPage{}
}
func (a *AboutPage) Render() app.UI {
2022-03-15 12:48:47 +01:00
return newPage().
Title("About me").
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/about.html"),
2022-03-15 12:48:47 +01:00
)
2022-03-01 17:07:33 +01:00
}