package html
import (
. "go.alanpearce.eu/gomponents"
. "go.alanpearce.eu/gomponents/html"
)
func HomePage(items []string) Node {
return page(
"Home",
H1(Text("Home")),
P(Text("This is a gomponents example app!")),
P(
Raw(
`Have a look at the source code to see how it’s structured.`,
),
),
Ul(Map(items, func(s string) Node {
return Li(Text(s))
})),
)
}