peachy-go/desktop/components/HelloWorld.go

15 lines
371 B
Go
Raw Permalink Normal View History

2024-11-05 12:17:27 +00:00
package components
import (
h "git.codemonkeysoftware.net/b/hatmill"
a "git.codemonkeysoftware.net/b/hatmill/attribute"
e "git.codemonkeysoftware.net/b/hatmill/element"
)
func HelloWorld() h.Term {
return h.Terms{
e.H2()(h.Text("In French, we say \"Baguette\"")),
e.Img(a.Src("/static/img/baguette.svg"), a.Alt("A baguette"), a.Style("max-width: 100px")),
}
}