-
-
Notifications
You must be signed in to change notification settings - Fork 361
/
privacy-policy-page.go
44 lines (37 loc) · 1.06 KB
/
privacy-policy-page.go
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
34
35
36
37
38
39
40
41
42
43
44
package main
import (
"github.com/maxence-charriere/go-app/v10/pkg/analytics"
"github.com/maxence-charriere/go-app/v10/pkg/app"
)
type privacyPolicyPage struct {
app.Compo
}
func newPrivacyPolicyPage() *privacyPolicyPage {
return &privacyPolicyPage{}
}
func (p *privacyPolicyPage) OnNav(ctx app.Context) {
p.initPage(ctx)
}
func (p *privacyPolicyPage) initPage(ctx app.Context) {
ctx.Page().SetTitle("Privacy Policy")
ctx.Page().SetDescription("go-app documentation privacy policy.")
analytics.Page("privacy-policy", nil)
}
func (p *privacyPolicyPage) Render() app.UI {
return newPage().
Title("Privacy Policy").
Icon(userLockSVG).
Index(
newIndexLink().Title("Intro"),
newIndexLink().Title("Personal Data"),
newIndexLink().Title("Log Data"),
newIndexLink().Title("Cookies"),
newIndexLink().Title("Service Providers"),
newIndexLink().Title("Links to Other Sites"),
newIndexLink().Title("Changes to this Privacy Policy"),
app.Div().Class("separator"),
).
Content(
newRemoteMarkdownDoc().Src("/web/documents/privacy-policy.md"),
)
}