aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/html/status.go
blob: 569a236e5f67726933dca11047d446f399dee3da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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))),
	)
}