2024-10-10 22:00:20 +00:00
|
|
|
package pages
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"github.com/maddalax/htmgo/framework/h"
|
|
|
|
|
"hackernews/partials"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func IndexPage(ctx *h.RequestContext) *h.Page {
|
|
|
|
|
return h.NewPage(
|
|
|
|
|
RootPage(
|
|
|
|
|
h.Div(
|
|
|
|
|
h.Class("flex gap-2 min-h-screen"),
|
|
|
|
|
partials.StorySidebar(ctx),
|
|
|
|
|
h.Main(
|
2024-10-11 01:31:20 +00:00
|
|
|
h.Class("flex justify-left items-start p-6 w-full"),
|
2024-10-10 22:00:20 +00:00
|
|
|
partials.Story(ctx),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
}
|