Added Wails3/HTMX example GUI

This commit is contained in:
2024-11-05 05:17:27 -07:00
parent d99293dba1
commit 90a87af526
31 changed files with 1481 additions and 47 deletions

View File

@ -0,0 +1,14 @@
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")),
}
}