proper-website-2/components/homepanel.go

22 lines
509 B
Go
Raw Normal View History

2022-03-01 17:07:33 +01:00
package components
import "github.com/maxence-charriere/go-app/v9/pkg/app"
type homePanel struct {
app.Compo
}
func newHomePanel() *homePanel {
return &homePanel{}
}
func (p *homePanel) Render() app.UI {
return app.Div().Body(
app.Raw(`<p>Welcome to my website, internet traveler!
This website is my creative outlet and a way of expressing myself.
As of now, it's probably the most impressive thing I've ever coded.
<br>
Please enjoy yourself and do sign the guestbook!!</p>`),
).Class("content")
}