omg this layout is so goood

This commit is contained in:
DutchEllie 2022-03-14 21:10:10 +01:00
parent f46005130e
commit fb7c79f570
Signed by: DutchEllie
SSH Key Fingerprint: SHA256:dKq6ZSgN5E3Viqrw/+xAdf2VdR6hdRGNyrYqXXwfjTY
2 changed files with 16 additions and 9 deletions

View File

@ -0,0 +1,7 @@
package components
import "github.com/maxence-charriere/go-app/v9/pkg/app"
type bannerPanel struct {
app.Compo
}

View File

@ -16,9 +16,17 @@ func newHomePanel() *homePanel {
func (p *homePanel) Render() app.UI {
return app.Div().Body(
app.P().Text("Welcome, internet surfer!").Class("p-h1"),
app.Div().Body(
app.P().Text("Please sign my guestbook!").Class("small"),
app.Img().Src("/web/static/images/email3.gif").Style("width", "40px").Style("position", "absolute").Style("bottom", "0px").Style("right", "0px"),
).Style("position", "absolute").Style("top", "10px").Style("right", "5px").
OnClick(func(ctx app.Context, e app.Event) {
e.PreventDefault()
p.onShowClick()
}),
app.Img().
Style("float", "right").
Style("margin-bottom", "50px").
Style("margin-bottom", "10px").
Height(230).
Src("/web/static/images/rin-len1.webp"),
app.Raw(
@ -42,14 +50,6 @@ func (p *homePanel) Render() app.UI {
Class("content-text").
Text("An update is available! Reload to update!"),
)),
app.Div().Body(
app.P().Text("Please sign my guestbook!").Class("small"),
app.Img().Src("/web/static/images/email3.gif").Style("width", "40px").Style("position", "absolute").Style("bottom", "0px").Style("right", "0px"),
).Style("position", "absolute").Style("bottom", "5px").Style("right", "5px").
OnClick(func(ctx app.Context, e app.Event) {
e.PreventDefault()
p.onShowClick()
}),
).Class("content")
}