css fixes

This commit is contained in:
maddalax 2024-10-30 14:44:02 -05:00
parent e6223a36b7
commit 3cd7577b06
3 changed files with 5 additions and 17 deletions

View file

@ -86,13 +86,6 @@ func Text(text string) *h.Element {
) )
} }
func Inline(elements ...h.Ren) *h.Element {
return h.Div(
h.Class("flex gap-1 items-center"),
h.Children(elements...),
)
}
func HelpText(text string) *h.Element { func HelpText(text string) *h.Element {
return h.Div( return h.Div(
h.Class("text-slate-600 text-sm"), h.Class("text-slate-600 text-sm"),

View file

@ -15,16 +15,11 @@ func Installation(ctx *h.RequestContext) *h.Page {
h.Text("Prerequisites:"), h.Text("Prerequisites:"),
h.Class("list-disc list-inside"), h.Class("list-disc list-inside"),
h.Li( h.Li(
Inline(
Link("Go 1.2X or above", "https://go.dev/doc/install"), Link("Go 1.2X or above", "https://go.dev/doc/install"),
), ),
),
h.Li( h.Li(
Inline( h.Text("Familiarity with "),
Text("Familiarity with "),
Link("https://htmx.org", "https://htmx.org"), Link("https://htmx.org", "https://htmx.org"),
Text(" and html/hypermedia"),
),
), ),
), ),
HelpText("If you have not read the htmx docs, please do so before continuing, many of the concepts htmgo uses will become clearer."), HelpText("If you have not read the htmx docs, please do so before continuing, many of the concepts htmgo uses will become clearer."),

View file

@ -34,9 +34,9 @@ func Introduction(ctx *h.RequestContext) *h.Page {
We give you the utilities to build html using pure go code in a reusable way (go functions are components) while also providing htmx functions to add interactivity to your app. We give you the utilities to build html using pure go code in a reusable way (go functions are components) while also providing htmx functions to add interactivity to your app.
`), `),
ui.GoCodeSnippet(IntroSnippet), ui.GoCodeSnippet(IntroSnippet),
Inline( h.P(
Link("The site you are reading now", "https://github.com/maddalax/htmgo/tree/master/htmgo-site"), Link("The site you are reading now", "https://github.com/maddalax/htmgo/tree/master/htmgo-site"),
Text(" was written with htmgo!"), h.Text(" was written with htmgo!"),
), ),
NextStep( NextStep(
"mt-4", "mt-4",