From 3cd7577b0603b90a00ef1f32fbfd6d0b8a25f287 Mon Sep 17 00:00:00 2001 From: maddalax Date: Wed, 30 Oct 2024 14:44:02 -0500 Subject: [PATCH] css fixes --- htmgo-site/pages/docs/base.go | 7 ------- htmgo-site/pages/docs/installation.go | 11 +++-------- htmgo-site/pages/docs/introduction.go | 4 ++-- 3 files changed, 5 insertions(+), 17 deletions(-) diff --git a/htmgo-site/pages/docs/base.go b/htmgo-site/pages/docs/base.go index 683a6db..2116a9a 100644 --- a/htmgo-site/pages/docs/base.go +++ b/htmgo-site/pages/docs/base.go @@ -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"), diff --git a/htmgo-site/pages/docs/installation.go b/htmgo-site/pages/docs/installation.go index ecc410f..731aa54 100644 --- a/htmgo-site/pages/docs/installation.go +++ b/htmgo-site/pages/docs/installation.go @@ -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."), diff --git a/htmgo-site/pages/docs/introduction.go b/htmgo-site/pages/docs/introduction.go index c666bb2..37fd47d 100644 --- a/htmgo-site/pages/docs/introduction.go +++ b/htmgo-site/pages/docs/introduction.go @@ -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",