Etch component
Footer 3
A dark footer: the logo beside the site's name and place, a tagline, columns for the menu, the contact details and the social links, and at the bottom the copyright and the legal links, in a Subfooter 1. Four columns on wide screens, two on tablets and one on phones.
Documentation
A dark footer: the logo beside the site's name and place, a tagline, columns for the menu, the contact details and the social links, and at the bottom the copyright and the legal links, in a MAC Subfooter 1. Four columns on wide screens, two on tablets and one on phones.
How to use it
- The logo is MAC Logo 1's logomark, set once for the site in that component, and the footer turns it white. Name (the site's name by default), Place (such as a city) and Tagline (the site's tagline by default) sit beside and under it.
- The slots hold the columns: menu (a list of links), contact (a MAC Details List 1), social (links to the site's profiles), and subfooter holds a MAC Subfooter 1 with the copyright and the legal links. The pasted footer comes with a sample in each.
- A slot left empty drops its column, title included.
- Menu Title, Contact Title and Social Title name the columns, and an empty one hides its title. Title Tag sets their heading level (h2 by default). Menu Title also names the menu for screen readers.
- The copyright is MAC Subfooter 1's Copyright, which shows the year and the site's name by default.
Good to know
--mac-footer-3-logo-filterturns the logo white (brightness(0) invert(1)); set it tononefor a logo made for dark backgrounds.- The footer colors the details lists in its contact column itself.
- See also MAC Footer 1, with link columns and contact details, and MAC Footer 2, centered over a background image.
CSS recipes
--mac-footer-3-background, --mac-footer-3-text and --mac-footer-3-heading set the colors, --mac-footer-3-accent those of the column titles and the contact icons (--primary-semi-light, readable on the dark background), and --mac-footer-3-logo-size the logo's height. A recipe changes every Footer 3 on the site: paste it in the site's main stylesheet, which Etch prints after the components' styles.
On the brand's dark shade
For a footer in the brand's color instead of a dark neutral.
/* The footer on the primary's dark shade */
.mac-footer-3 {
--mac-footer-3-background: var(--primary-dark);
/* The focus ring in the accent, seen on the primary's shade */
--focus-color: var(--primary-semi-light);
}
Reference
Read from the component's JSON, so it's always current.
Loading the reference