/ cookie.go
cookie.go
1 package main 2 3 import ( 4 "github.com/maxence-charriere/go-app/v10/pkg/app" 5 ) 6 7 type cookie struct { 8 app.Compo 9 } 10 11 // The Render method is where the component appearance is defined. Here, a 12 // webauthn is displayed. 13 func (c *cookie) Render() app.UI { 14 return app.Div().Class("container").Body( 15 app.Div().Class("mobile").Body( 16 app.Div().Class("header").Body( 17 newNav(), 18 app.Div().Class("header-summary").Body( 19 app.Span().Class("logo").Text("cyber-gubi"), 20 app.Div().Class("summary-text").Body( 21 app.Span().Text("Authentication"), 22 ), 23 ), 24 ), 25 app.Div().ID("content").Body( 26 app.Div().Class("card").Body( 27 app.Div().Class("upper-row").Body( 28 app.Div().Class("card-item card-terms").Body( 29 app.Span().Class("span-header").Text("Cookie Policy"), 30 app.Span().Class("span-docs").Text("1. Cyber-gubi does not use cookies."), 31 app.Span().Class("span-docs").Text("1. Cyber-gubi does not track you."), 32 app.Span().Class("span-docs").Text("1. Cyber-gubi does not share data with 3rd parties."), 33 ), 34 ), 35 ), 36 ), 37 ), 38 ) 39 }