Etch component

Contact 1

A contact band: a title, the ways to reach a place in a Details List 1, a Get Directions link and a Map 1 that loads on click. An optional aside, such as a form card, sits beside them.

Contact 1

Copy Contact 1

Configurator settings

Change a setting in the configurator to include it.

Optional. Copies the component under its own name, such as News Card Alpha for a site.

Documentation

A contact band: a title, the ways to reach a place, a Get Directions link and a map that loads only when the visitor asks for it. An aside, such as a form card, can sit beside them.

How to use it

  • Fill in Eyebrow, Headline and Lede as in MAC Intro 1. An empty eyebrow or lede shows nothing.
  • The details slot holds a MAC Details List 1. The pasted band comes with Address, Phone, Email and Hours rows to edit.
  • Map sets MAC Map 1's address, zoom and button text. The Directions group's Label is the text of the link to Google Maps' directions, such as "Get Directions"; leave it empty to drop the link. The link and the map use the same address.
  • The aside slot takes a form card or anything else. With an aside, the map moves under the details and the aside takes the second column.
  • Turn off Show Map for a place visitors don't come to, such as a firm that works remotely. Without the map, the content takes the first column beside the aside, or the whole width without one.

Good to know

  • The address goes in two places: in Map, for the map and the link, and in the Address row, for visitors to read.
  • Add MAC Map 1's line to the site's privacy policy: Google receives the visitor's IP address and the page they're on only if they choose to show the map.
  • --mac-contact-1-background sets the band's background (--bg-ultra-light), --mac-contact-1-space the space above and below it (--section-padding-block), and --mac-contact-1-gap the space between its columns. On the band, the map's button is white and its icon's circle takes the band's background.
  • The map fills its column: beside the content it's as tall as the content, under the content it reaches the end of a taller aside, and it's never shorter than its shape (MAC Map 1's --mac-map-1-ratio). On one column it keeps its shape.
  • --mac-contact-1-aside-order: -1 puts the aside first on one column (from --mac-l down), such as a form on a site most visitors open on a phone.

Reference

Read from the component's JSON, so it's always current.

Loading the reference