This module has been deprecated
Render contact information about a FT employee (e.g. name, email, Twitter handle…).
To render a business card, you just need to pass a JSON to the template with that person's details. Here's a list of all possible values (it can be extended):
- name
- image
- url
- bio
- age
- nationality
- background
At least values for "name", "image" and "url" need to be passed, and the last two should be absolute URLs. The other values are optional.
The image can either be floated left or right depending on the modifier of the class selector: "--left" or "--right".
Every business card will be using structured data using schema.org, a collaboration by Google, Microsoft and Yahoo. This will help search engines understand each person's details better. We're using microdata to structure the data.
Each o-business-card component will be an itemscope
that gets its itemtype
from http://schema.org/Person. And then each element has its corresponding itemprop
, except for "age":
- name
- image
- url
- description
- sameAs (it tells search engines that this URL also references this person)
- nationality
By default the Sass is in silent mode, meaning there will be no CSS output.
If you're @import
ing the Sass into your product or component, and you want to turn off silent mode, then set the following SASS variable:
$o-business-card-is-silent: false;
If requesting the CSS from the build service, silent mode will automatically be switched off.
In silent mode, instead of the CSS classes listed below, there will be Sass mixins using a camel-cased version of the class name, i.e. @include oBusinessCard
instead of a .o-business-card
selector.
Personalise border and background colours using these use cases:
@include oColorsSetUseCase(o-business-card, border, 'a color name');
@include oColorsSetUseCase(o-business-card, background, 'a color name');
Please see main.mustache.