2024-09-23 15:57:59 +00:00
|
|
|
package pages
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"github.com/maddalax/htmgo/framework/h"
|
|
|
|
|
"starter-template/partials"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func IndexPage(ctx *h.RequestContext) *h.Page {
|
2024-10-21 15:06:18 +00:00
|
|
|
return RootPage(
|
|
|
|
|
h.Div(
|
|
|
|
|
h.Class("flex flex-col gap-4 items-center pt-24 min-h-screen bg-neutral-100"),
|
|
|
|
|
h.H3(h.Id("intro-text"), h.Text("hello htmgo"), h.Class("text-5xl")),
|
2024-09-23 15:57:59 +00:00
|
|
|
h.Div(
|
2024-10-21 15:06:18 +00:00
|
|
|
h.Class("mt-3"),
|
|
|
|
|
partials.CounterForm(0),
|
2024-09-23 15:57:59 +00:00
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
}
|