omg this layout is so goood
This commit is contained in:
parent
f46005130e
commit
fb7c79f570
7
components/bannerpanel.go
Normal file
7
components/bannerpanel.go
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
package components
|
||||||
|
|
||||||
|
import "github.com/maxence-charriere/go-app/v9/pkg/app"
|
||||||
|
|
||||||
|
type bannerPanel struct {
|
||||||
|
app.Compo
|
||||||
|
}
|
@ -16,9 +16,17 @@ func newHomePanel() *homePanel {
|
|||||||
func (p *homePanel) Render() app.UI {
|
func (p *homePanel) Render() app.UI {
|
||||||
return app.Div().Body(
|
return app.Div().Body(
|
||||||
app.P().Text("Welcome, internet surfer!").Class("p-h1"),
|
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().
|
app.Img().
|
||||||
Style("float", "right").
|
Style("float", "right").
|
||||||
Style("margin-bottom", "50px").
|
Style("margin-bottom", "10px").
|
||||||
Height(230).
|
Height(230).
|
||||||
Src("/web/static/images/rin-len1.webp"),
|
Src("/web/static/images/rin-len1.webp"),
|
||||||
app.Raw(
|
app.Raw(
|
||||||
@ -42,14 +50,6 @@ func (p *homePanel) Render() app.UI {
|
|||||||
Class("content-text").
|
Class("content-text").
|
||||||
Text("An update is available! Reload to update!"),
|
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")
|
).Class("content")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user