Skip to content

Footer

The footer of package footer closes a page with a separator line, a logo, a slogan, the legal links and the provider name. It stacks its parts vertically on small windows and places the links in a row on larger ones. The scaffold builder of the configurator can create it automatically from the theme settings, or you pass your own footer to ScaffoldBuilder.Footer.

Footer

return VStack(
	footer.Footer().
		Logo(Text("ACME").Font(HeadlineSmall)).
		Slogan("Software that just works.").
		Impress("/impress").
		PrivacyPolicy("/privacy").
		GeneralTermsAndConditions("/gtc").
		TermsOfUse("/terms").
		ProviderName("ACME GmbH"),
).Frame(Frame{Width: L880})
The link labels (Impressum, Datenschutz, AGB, Nutzungsbedingungen) are currently fixed German texts.

Constructors

ConstructorDescription
footer.Footer() TFooterCreates a footer with the default content padding.

Methods

MethodDescription
BackgroundColor(backgroundColor ui.Color) TFooterSets the background color of the footer.
ContentPadding(content ui.Length) TFooterSets the space between the footer separator and the view before the footer; "" disables it.
GeneralTermsAndConditions(gtc LinkOrNavigationPath) TFooterSets the GTC link of the footer.
Impress(impress LinkOrNavigationPath) TFooterSets the imprint link of the footer.
Logo(logo ui.DecoredView) TFooterSets the logo view of the footer.
PrivacyPolicy(gdpr LinkOrNavigationPath) TFooterSets the privacy policy (GDPR) link of the footer.
ProviderName(copyright string) TFooterSets the copyright/provider name of the footer.
Slogan(slogan string) TFooterSets the slogan text of the footer.
TermsOfUse(termsOfUse LinkOrNavigationPath) TFooterSets the terms of use link of the footer.
TextColor(textColor ui.Color) TFooterSets the text color of the footer.

LinkOrNavigationPath is a string with either a URL or a navigation path of your application.

Related