Added Wails3/HTMX example GUI

This commit is contained in:
b committed 2024-11-05 05:17:27 -07:00
1 parent d99293dba1
commit 90a87af526
31 files changed
+1481 -47

No files matched your search

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