css fixes
This commit is contained in:
parent
e6223a36b7
commit
3cd7577b06
3 changed files with 5 additions and 17 deletions
|
|
@ -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 {
|
||||
return h.Div(
|
||||
h.Class("text-slate-600 text-sm"),
|
||||
|
|
|
|||
|
|
@ -15,16 +15,11 @@ func Installation(ctx *h.RequestContext) *h.Page {
|
|||
h.Text("Prerequisites:"),
|
||||
h.Class("list-disc list-inside"),
|
||||
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(
|
||||
Inline(
|
||||
Text("Familiarity with "),
|
||||
Link("https://htmx.org", "https://htmx.org"),
|
||||
Text(" and html/hypermedia"),
|
||||
),
|
||||
h.Text("Familiarity with "),
|
||||
Link("https://htmx.org", "https://htmx.org"),
|
||||
),
|
||||
),
|
||||
HelpText("If you have not read the htmx docs, please do so before continuing, many of the concepts htmgo uses will become clearer."),
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
`),
|
||||
ui.GoCodeSnippet(IntroSnippet),
|
||||
Inline(
|
||||
h.P(
|
||||
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(
|
||||
"mt-4",
|
||||
|
|
|
|||
Loading…
Reference in a new issue