proper-website-2/components/friendspage.go

39 lines
621 B
Go
Raw Normal View History

2022-03-07 13:05:33 +01:00
package components
import "github.com/maxence-charriere/go-app/v9/pkg/app"
type FriendsPage struct {
app.Compo
}
func NewFriendsPage() *FriendsPage {
return &FriendsPage{}
}
func (f *FriendsPage) Render() app.UI {
return app.Div().Body(
&header{},
&navbar{},
&friendsPanel{},
).Class("main")
}
type friendsPanel struct {
app.Compo
}
func (f *friendsPanel) Render() app.UI {
return app.Div().Body(
app.P().
Text(`My friends!`).
Class("p-h1"),
app.Ul().Body(
app.Li().Body(
app.IFrame().
2022-03-12 20:26:36 +01:00
Src("https://forestofunix.xyz").
2022-03-07 13:05:33 +01:00
Class("friend-iframe"),
),
),
).Class("content")
}