diff options
Diffstat (limited to 'pkg/html/status.go')
| -rw-r--r-- | pkg/html/status.go | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkg/html/status.go b/pkg/html/status.go new file mode 100644 index 0000000..569a236 --- /dev/null +++ b/pkg/html/status.go @@ -0,0 +1,33 @@ +package html + +import ( + "fmt" + + . "github.com/LMBishop/scrapbook/web/skeleton" + . "maragu.dev/gomponents" + . "maragu.dev/gomponents/html" +) + +func NotFoundUrlPage(url, host string) Node { + return Page("Page not found", + H1(Text("Page not found")), + + P(Text(fmt.Sprintf("The URL %s could not be found on site %s", url, host))), + ) +} + +func NotFoundSitePage(host string) Node { + return Page("Site not found", + H1(Text("Site not found")), + + P(Text(fmt.Sprintf("The site %s is unknown", host))), + ) +} + +func ForbiddenDisabledPage(host string) Node { + return Page("Forbidden", + H1(Text("Forbidden")), + + P(Text(fmt.Sprintf("Site %s is disabled", host))), + ) +} |
