navbars

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2023 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Rendered for js/wasm

Index

Constants

This section is empty.

Variables

View Source
var OfficialBackground = "#142836"
View Source
var OfficialForeground = "#ffffff"

Variables for styling the Official navbar's colors

View Source
var SearchBackground = "#ffffff"
View Source
var SearchForeground = "#333333"
View Source
var SearchText = "Search"

Functions

func Custom

func Custom(logo *Logo, urls *elements.URLs, bg, fg string, middle ...*elements.Element) *elements.Element

func Official

func Official(logo *Logo, urls *elements.URLs) *elements.Element

The navbar element.

func Search(logo *Logo, urls *elements.URLs) (*elements.Element, []*elements.Element)

Returns the main navbar element, and the searchbar element, with the submit button in an array.

Types

type Logo struct {
	ResourceURL string
	Alt         string
	URL         string
}
func NewLogo(resourceURL, url string) *Logo

Jump to

Keyboard shortcuts

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