2024-09-20 16:45:23 +00:00
|
|
|
package pages
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"github.com/maddalax/htmgo/framework/h"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func IndexPage(ctx *h.RequestContext) *h.Page {
|
2024-10-28 15:32:50 +00:00
|
|
|
return PageWithNav(
|
|
|
|
|
ctx,
|
|
|
|
|
h.Div(
|
|
|
|
|
h.Class("flex items-center justify-center"),
|
2024-09-25 03:41:03 +00:00
|
|
|
h.Div(
|
2024-10-28 15:32:50 +00:00
|
|
|
h.Class("w-full px-4 flex flex-col prose md:max-w-3xl mt-6 mx-auto"),
|
2024-09-25 03:41:03 +00:00
|
|
|
h.Div(
|
2024-10-28 15:32:50 +00:00
|
|
|
h.Class("flex flex-col mb-6 md:mb-0 md:flex-row justify-between items-center"),
|
2024-09-25 03:41:03 +00:00
|
|
|
h.Div(
|
2024-10-28 15:32:50 +00:00
|
|
|
h.H1F(
|
|
|
|
|
"htmgo",
|
|
|
|
|
h.Class("text-center md:text-left"),
|
2024-09-25 03:41:03 +00:00
|
|
|
),
|
2024-10-28 15:32:50 +00:00
|
|
|
h.H3F(
|
|
|
|
|
"build simple and scalable systems with %s",
|
|
|
|
|
"go + htmx",
|
|
|
|
|
h.Class("-mt-4"),
|
2024-09-25 03:41:03 +00:00
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
h.Div(
|
2024-10-28 15:32:50 +00:00
|
|
|
h.Class("mt-2"),
|
|
|
|
|
h.A(
|
|
|
|
|
h.Href("/docs"),
|
|
|
|
|
h.Class("not-prose p-3 bg-slate-900 text-white rounded-md"),
|
|
|
|
|
h.Text("Get Started"),
|
2024-10-25 15:33:48 +00:00
|
|
|
),
|
2024-09-25 03:41:03 +00:00
|
|
|
),
|
|
|
|
|
),
|
2024-10-28 15:32:50 +00:00
|
|
|
h.Div(
|
|
|
|
|
h.Class("border-b border-b-slate-200 h-1"),
|
|
|
|
|
h.Div(
|
|
|
|
|
h.Class("mt-4"),
|
|
|
|
|
MarkdownPage(ctx, "md/index.md", ""),
|
|
|
|
|
),
|
|
|
|
|
),
|
2024-10-25 15:33:48 +00:00
|
|
|
),
|
2024-09-25 03:41:03 +00:00
|
|
|
),
|
|
|
|
|
)
|
2024-09-20 16:45:23 +00:00
|
|
|
}
|