htmgo/htmgo-site/pages/html-to-go.go

27 lines
534 B
Go
Raw Normal View History

2024-10-11 16:19:32 +00:00
package pages
import (
"github.com/maddalax/htmgo/framework/h"
"htmgo-site/pages/base"
"htmgo-site/partials"
)
func HtmlToGoPage(ctx *h.RequestContext) *h.Page {
return h.NewPage(
2024-10-13 13:24:23 +00:00
base.PageWithNav(ctx,
2024-10-11 16:19:32 +00:00
h.Div(
2024-10-23 15:34:59 +00:00
h.Class("flex flex-col h-screen items-center justify-center w-full pt-6"),
2024-10-11 16:19:32 +00:00
h.H3(
h.Text("Convert raw html to htmgo code"),
h.Class("text-2xl font-bold"),
),
h.Div(
h.Class("h-full w-full flex gap-4 p-8"),
partials.HtmlInput(),
partials.GoOutput(""),
),
),
),
)
}