From 86e293498fe413f3bbec34a6d1a984fd2c82ab6b Mon Sep 17 00:00:00 2001 From: maddalax Date: Mon, 21 Oct 2024 10:35:42 -0500 Subject: [PATCH] update landing page --- README.md | 6 +----- htmgo-site/md/index.md | 22 ++++++++++++++++++++-- htmgo-site/partials/navbar.go | 14 +++++++------- 3 files changed, 28 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index c4be27b..d9b1bae 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,3 @@ -> [!WARNING] -> htmgo is in alpha release and active development. API's may have breaking changes between versions. Please report any issues on GitHub. - ## **htmgo** ### build simple and scalable systems with go + htmx @@ -34,8 +31,7 @@ func IndexPage(ctx *h.RequestContext) *h.Page { 2. live reload (rebuilds css, go, ent schema, and routes upon change) 3. automatic page and partial registration based on file path 4. built in tailwindcss support, no need to configure anything by default -5. plugin architecture to include optional plugins to streamline development, such as http://entgo.io -6. custom [htmx extensions](https://github.com/maddalax/htmgo/tree/b610aefa36e648b98a13823a6f8d87566120cfcc/framework/assets/js/htmxextensions) to reduce boilerplate with common tasks +5. custom [htmx extensions](https://github.com/maddalax/htmgo/tree/b610aefa36e648b98a13823a6f8d87566120cfcc/framework/assets/js/htmxextensions) to reduce boilerplate with common tasks **get started:** diff --git a/htmgo-site/md/index.md b/htmgo-site/md/index.md index 3e9ca0c..a538c8b 100644 --- a/htmgo-site/md/index.md +++ b/htmgo-site/md/index.md @@ -22,5 +22,23 @@ func IndexPage(ctx *h.RequestContext) *h.Page { 2. live reload (rebuilds css, go, ent schema, and routes upon change) 3. automatic page and partial registration based on file path 4. built in tailwindcss support, no need to configure anything by default -5. plugin architecture to include optional plugins to streamline development, such as http://entgo.io -6. custom [htmx extensions](https://github.com/maddalax/htmgo/tree/master/framework/assets/js/htmxextensions) to reduce boilerplate with common tasks +5. custom [htmx extensions](https://github.com/maddalax/htmgo/tree/master/framework/assets/js/htmxextensions) to reduce boilerplate with common tasks + +------ + +**what can be built with htmgo?** + +Most web applications can be built with htmgo, including but not limited to: + +- Traditional business CRUD applications +- blogs +- documentation sites +- consumer facing websites +- internal tools +- and more + +
+ +For a more detailed overview of when you should use hypermedia to build web applications, see [when-to-use-hypermedia](https://htmx.org/essays/when-to-use-hypermedia/) from htmx.org. + +Interested in some examples? Check out [examples](/examples). diff --git a/htmgo-site/partials/navbar.go b/htmgo-site/partials/navbar.go index 913e09f..1b438cf 100644 --- a/htmgo-site/partials/navbar.go +++ b/htmgo-site/partials/navbar.go @@ -75,12 +75,12 @@ func Star(ctx *h.RequestContext) *h.Element { } func NavBar(ctx *h.RequestContext, props NavBarProps) *h.Element { - prelease := h.If(props.ShowPreRelease, h.A( - h.Class("bg-yellow-200 text-yellow-800 text-center p-2 flex items-center justify-center"), - h.Href("https://github.com/maddalax/htmgo/issues"), - h.Attribute("target", "_blank"), - h.Text("htmgo is in alpha release. Please report any issues on GitHub."), - )) + //prelease := h.If(props.ShowPreRelease, h.A( + // h.Class("bg-blue-200 text-blue-700 text-center p-2 flex items-center justify-center"), + // h.Href("https://github.com/maddalax/htmgo/issues"), + // h.Attribute("target", "_blank"), + // h.Text("htmgo."), + //)) desktopNav := h.Nav( h.Class("hidden sm:block bg-neutral-100 border border-b-slate-300 p-4 md:p-3 max-h-[100vh - 9rem] overflow-y-auto"), @@ -118,7 +118,7 @@ func NavBar(ctx *h.RequestContext, props NavBarProps) *h.Element { return h.Div( h.Id("navbar"), - prelease, + //prelease, MobileNav(ctx, props.Expanded), desktopNav, )