Add google authentication

This commit is contained in:
Achim Rohn
2025-07-27 18:25:39 +02:00
parent 728cf90236
commit d6a229c95f
9 changed files with 953 additions and 0 deletions
+40
View File
@@ -0,0 +1,40 @@
package ersteller_lib
import (
"github.com/labstack/echo/v4"
. "maragu.dev/gomponents"
)
type Language string
const (
En Language = "en"
)
type NavItem struct {
Label string
Url string
}
type WebsiteMetaData struct {
AppTitle string
Title string
Lang Language
Description string
NavItems []NavItem
}
type PageWebsiteMetaData struct {
AppTitle string
Title string
Lang Language
Description string
NavItems []NavItem
ScriptSrcs []string
StyleSrcs []string
ActiveNavPath string
HideNavigation bool
UserEmail string
}
type CreatePageFunc func(c echo.Context, metadata PageWebsiteMetaData, content ...Node) error