footer

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

templ: version: v0.2.793

Index

Constants

View Source
const (
	StyleSticky style.Style = 1 << 8
	StyleBorder style.Style = 1 << 9
)

Variables

This section is empty.

Functions

func C

func C(def D) templ.Component

Types

type D

type D struct {
	Style style.Style
	//playground:default:templ.Raw("© 2024 Jean-François Bustarret. All Rights Reserved.")
	Copyright templ.Component
	Brand     templ.Component
	// Sections can either be a []section.D or a []a.D slice.
	//playground:import:github.com/jfbus/templui/components/a
	//playground:import:github.com/jfbus/templui/components/footer/section
	//playground:default:[]section.D{{Title:"Section 1", Links: []a.D{{Text: "Link 1"},{Text: "Link 2"}}}, {Title:"Section 2", Links: []a.D{{Text: "Link 1"},{Text: "Link 2"}}}, {Title:"Section 3", Links: []a.D{{Text: "Link 1"},{Text: "Link 2"}}}}
	Sections any
	Social   []social.D
	// CustomStyle defines a custom style.
	// 	style.Custom{
	// 		"footer":               style.D{style.Add("...")},
	// 		"footer/content":       style.D{style.Add("...")},
	// 		"footer/social":        style.D{style.Add("...")},
	// 		"footer/separator":     style.D{style.Add("...")},
	// 		"footer/copyright":     style.D{style.Add("...")},
	// 		"footer/footer":        style.D{style.Add("...")},
	// 		"footer/section/link":  style.D{style.Add("...")},
	// 		"footer/section/title": style.D{style.Add("...")},
	//	}
	CustomStyle style.Custom
}

D defines a navbar component. To add multiple components (buttons, dropdowns, ...) to a section, use div.C/components.Append.

Directories

Path Synopsis
templ: version: v0.2.793
templ: version: v0.2.793

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL