2024-05-19 00:21:08 +02:00
|
|
|
package handlers
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
g "github.com/maragudk/gomponents"
|
|
|
|
|
. "github.com/maragudk/gomponents/html"
|
|
|
|
|
"net/http"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func AboutPageHandler(w http.ResponseWriter, r *http.Request) {
|
|
|
|
|
|
2024-05-19 23:56:53 +02:00
|
|
|
err := Page("About page", createAboutBody(w, r)).Render(w)
|
2024-05-19 00:21:08 +02:00
|
|
|
if err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func createAboutBody(w http.ResponseWriter, r *http.Request) g.Node {
|
|
|
|
|
|
|
|
|
|
return Body()
|
|
|
|
|
}
|