Contact card
The contact card pattern is used to display contact information about an individual which may link to additional information. If the main goal is to display contact information this pattern should be used, however if the primary aim is to provide biographical information about an individual then the Staff Profile pattern should be considered.
Rules for contact cards
- Contact cards may appear solo or grouped as a stacked list, they must not appear side by side.
- Contact cards must take up the full width of the design's available space, if the width of a contact card is less than 600px.
- Photographs must be headshots of the individual named in the card and of professional quality.
- Images should be cropped square at 180px wide and 180px high.
- If a suitable image is not available then the initials of the individual should be used.
- The full name of the individual must be displayed.
- Cards may link to additional information on a specific individual but this usage must be consistent within a list of contacts. For example if one card links to a lightbox then all other linked cards in that list must also use the lightbox method.
Options available
- Contact card
- Contact card with initials
- Linked contact card with lightbox
- Contact card list
- Contact card list with lazyload
Use of lightbox to display additional information
If using the code examples that feature the lightbox, please remove the marked comments from either side of the relevant tags before using. These are only included in the code examples to prevent interaction with the lightbox script on page load, resulting in changes to the displayed html.
For maximum accessibility the inert
polyfill from Google should also be used. This can be loaded by placing the following at the bottom of the page <script src="https://cdn.rawgit.com/GoogleChrome/inert-polyfill/v0.1.0/inert-polyfill.min.js"></script>
Contact card
This example shows all available content that may be included on a card.
- Only the image or initials and the full name are required.
- The optional secondary headings should be used to specify the organisational position and role of the individual.
- The optional short paragraph of supporting text can be used to provide additional context for the individual - to help a user identify the correct person to contact.
- The optional phone and email entries must link to valid phone numbers and email addresses.
- The list of linked tags can be used to convey additional information on an individual.
- The number of tags for a card should be no larger than five.
- The usage of tags should be introduced before the contact cards, if the tag values used do not immediately convey their purpose.
Mrs Sophia Adams
Unit name, Team name
Job title
This is a short paragraph of text that can be used to provide supporting information about a contact that may aid in the identification of the correct person to contact.
Mrs Sophia Adams
Unit name, Team name
Job title
This is a short paragraph of text that can be used to provide supporting information about a contact that may aid in the identification of the correct person to contact.
Contact card with initials
This example shows the alternative display of initials if an image is not available.
- The initials must be a maximum length of two characters.
Linked contact card with lightbox
Contact cards can also be used to link to further details of the individual. This example opens a lightbox with further details, but the link could also navigate to a new page if desired.
- The content shown in the lightbox must, as a minimum, include all the information available from the selected contact card.
- Additional information may be added to the lightbox with appropriate heading labels.
Dr Brielle Williamson
School of Psychology, Clinical Counselling
Research Specialist
- Phone
- +44 (0)1334 46 xxxx
- example@st-andrews.ac.uk
- Office
- Room D17, Bute medical building
- Biography
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin efficitur vel tellus eget vehicula. Mauris gravida ex a elit rutrum, et laoreet turpis egestas. Etiam interdum mattis erat, eget faucibus ipsum varius quis. Quisque quis magna enim. Vivamus commodo, urna a fringilla cursus, nisi felis blandit diam, sit amet venenatis enim tellus in ante. Pellentesque vel magna quis eros mattis porttitor at ut sapien. Curabitur congue ac purus sed posuere. Praesent imperdiet ligula arcu, et varius est suscipit ac.
Nam id diam id odio facilisis pretium at non sem. In in massa at risus blandit venenatis nec ut enim. Phasellus condimentum fringilla aliquam. Praesent in est in eros bibendum lobortis. Phasellus in elementum erat, eget iaculis nulla. Nam commodo, nunc quis dictum tempus, nisi massa mollis orci, sed sagittis ligula justo et est. Sed ultricies arcu nec nisi finibus, sed dictum neque porttitor. Curabitur ante ante, posuere sit amet ligula eget, blandit tincidunt lacus.
- Publications
- Associated tags heading
Dr Brielle Williamson
School of Psychology, Clinical Counselling
Research Specialist
Dr Brielle Williamson
School of Psychology, Clinical Counselling
Research Specialist
- Phone
- +44 (0)1334 46 xxxx
- Email
- example@st-andrews.ac.uk
- More information
- <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin efficitur vel tellus eget vehicula. Mauris gravida ex a elit rutrum, et laoreet turpis egestas. Etiam interdum mattis erat, eget faucibus ipsum varius quis. Quisque quis magna enim. Vivamus commodo, urna a fringilla cursus, nisi felis blandit diam, sit amet venenatis enim tellus in ante. Pellentesque vel magna quis eros mattis porttitor at ut sapien. Curabitur congue ac purus sed posuere. Praesent imperdiet ligula arcu, et varius est suscipit ac.</p><p>Nam id diam id odio facilisis pretium at non sem. In in massa at risus blandit venenatis nec ut enim. Phasellus condimentum fringilla aliquam. Praesent in est in eros bibendum lobortis. Phasellus in elementum erat, eget iaculis nulla. Nam commodo, nunc quis dictum tempus, nisi massa mollis orci, sed sagittis ligula justo et est. Sed ultricies arcu nec nisi finibus, sed dictum neque porttitor. Curabitur ante ante, posuere sit amet ligula eget, blandit tincidunt lacus.</p>
- Publications
-
- Associated tags heading
-
Contact card list
This example shows a list of contact cards that contains a mixture of available information. These contact cards link to a different url rather than opening a lightbox.
- If tags are used in a list of contact cards then their meaning should be consistent. In this example the tags are used to show the areas of expertise of each individual.
Contact card list with lazyload
This example shows a list of contact cards that makes use of the available lazyload feature to only load the images when they are about to be viewed. This reduces the amount of data downloaded by the browser, thus improving performance, and would be useful for lengthy contact card lists that may contain a large number of images.
Miss Colleen Hurst
St Andrews Sustainability Institute, Psychology and Neuroscience
Academic Liason
- Phone
- +44 (0)1334 46 xxxx
- example@st-andrews.ac.uk
Mr Howard Hatfield
School of Computer Science
Senior JavaScript Developer
- Phone
- +44 (0)1334 46 xxxx
- longerexample@st-andrews.ac.uk
Dr Brielle Williamson
School of Psychology, Clinical Counselling
Research Specialist
- Phone
- +44 (0)1334 46 xxxx
- example@st-andrews.ac.uk
- Office
- Room D17, Bute medical building
- Biography
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin efficitur vel tellus eget vehicula. Mauris gravida ex a elit rutrum, et laoreet turpis egestas. Etiam interdum mattis erat, eget faucibus ipsum varius quis. Quisque quis magna enim. Vivamus commodo, urna a fringilla cursus, nisi felis blandit diam, sit amet venenatis enim tellus in ante. Pellentesque vel magna quis eros mattis porttitor at ut sapien. Curabitur congue ac purus sed posuere. Praesent imperdiet ligula arcu, et varius est suscipit ac.
Nam id diam id odio facilisis pretium at non sem. In in massa at risus blandit venenatis nec ut enim. Phasellus condimentum fringilla aliquam. Praesent in est in eros bibendum lobortis. Phasellus in elementum erat, eget iaculis nulla. Nam commodo, nunc quis dictum tempus, nisi massa mollis orci, sed sagittis ligula justo et est. Sed ultricies arcu nec nisi finibus, sed dictum neque porttitor. Curabitur ante ante, posuere sit amet ligula eget, blandit tincidunt lacus.
- Publications
- Associated tags heading
Professor Timothy Mooney
Chemical Engineering Professor
Mrs Sophia Adams
Certified Financial Planner
- Phone
- +44 (0)1334 46 xxxx
- example@st-andrews.ac.uk
- Biography
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin efficitur vel tellus eget vehicula. Mauris gravida ex a elit rutrum, et laoreet turpis egestas. Etiam interdum mattis erat, eget faucibus ipsum varius quis. Quisque quis magna enim. Vivamus commodo, urna a fringilla cursus, nisi felis blandit diam, sit amet venenatis enim tellus in ante. Pellentesque vel magna quis eros mattis porttitor at ut sapien. Curabitur congue ac purus sed posuere. Praesent imperdiet ligula arcu, et varius est suscipit ac.
Nam id diam id odio facilisis pretium at non sem. In in massa at risus blandit venenatis nec ut enim. Phasellus condimentum fringilla aliquam. Praesent in est in eros bibendum lobortis. Phasellus in elementum erat, eget iaculis nulla. Nam commodo, nunc quis dictum tempus, nisi massa mollis orci, sed sagittis ligula justo et est. Sed ultricies arcu nec nisi finibus, sed dictum neque porttitor. Curabitur ante ante, posuere sit amet ligula eget, blandit tincidunt lacus.
Mr Chris Bogglesworth
Associate Entertainment Specialist
Dr Timothy Shah
Director of Research
Miss Colleen Hurst
St Andrews Sustainability Institute, Psychology and Neuroscience
Academic Liason
Miss Colleen Hurst
St Andrews Sustainability Institute, Psychology and Neuroscience
Academic Liason
- Phone
- +44 (0)1334 46 xxxx
- Email
- example@st-andrews.ac.uk
Mr Howard Hatfield
School of Computer Science
Senior JavaScript Developer
Mr Howard Hatfield
School of Computer Science
Senior JavaScript Developer
- Phone
- +44 (0)1334 46 xxxx
- Email
- longerexample@st-andrews.ac.uk
Dr Brielle Williamson
School of Psychology, Clinical Counselling
Research Specialist
Dr Brielle Williamson
School of Psychology, Clinical Counselling
Research Specialist
- Phone
- +44 (0)1334 46 xxxx
- Email
- example@st-andrews.ac.uk
- More information
- <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin efficitur vel tellus eget vehicula. Mauris gravida ex a elit rutrum, et laoreet turpis egestas. Etiam interdum mattis erat, eget faucibus ipsum varius quis. Quisque quis magna enim. Vivamus commodo, urna a fringilla cursus, nisi felis blandit diam, sit amet venenatis enim tellus in ante. Pellentesque vel magna quis eros mattis porttitor at ut sapien. Curabitur congue ac purus sed posuere. Praesent imperdiet ligula arcu, et varius est suscipit ac.</p><p>Nam id diam id odio facilisis pretium at non sem. In in massa at risus blandit venenatis nec ut enim. Phasellus condimentum fringilla aliquam. Praesent in est in eros bibendum lobortis. Phasellus in elementum erat, eget iaculis nulla. Nam commodo, nunc quis dictum tempus, nisi massa mollis orci, sed sagittis ligula justo et est. Sed ultricies arcu nec nisi finibus, sed dictum neque porttitor. Curabitur ante ante, posuere sit amet ligula eget, blandit tincidunt lacus.</p>
- Publications
-
- Associated tags heading
-
Professor Timothy Mooney
Chemical Engineering Professor
Professor Timothy Mooney
Chemical Engineering Professor
Mrs Sophia Adams
Certified Financial Planner
- Phone
- +44 (0)1334 46 xxxx
- Email
- example@st-andrews.ac.uk
- More information
- <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin efficitur vel tellus eget vehicula. Mauris gravida ex a elit rutrum, et laoreet turpis egestas. Etiam interdum mattis erat, eget faucibus ipsum varius quis. Quisque quis magna enim. Vivamus commodo, urna a fringilla cursus, nisi felis blandit diam, sit amet venenatis enim tellus in ante. Pellentesque vel magna quis eros mattis porttitor at ut sapien. Curabitur congue ac purus sed posuere. Praesent imperdiet ligula arcu, et varius est suscipit ac.</p><p>Nam id diam id odio facilisis pretium at non sem. In in massa at risus blandit venenatis nec ut enim. Phasellus condimentum fringilla aliquam. Praesent in est in eros bibendum lobortis. Phasellus in elementum erat, eget iaculis nulla. Nam commodo, nunc quis dictum tempus, nisi massa mollis orci, sed sagittis ligula justo et est. Sed ultricies arcu nec nisi finibus, sed dictum neque porttitor. Curabitur ante ante, posuere sit amet ligula eget, blandit tincidunt lacus.</p>
Mr Chris Bogglesworth
Associate Entertainment Specialist
Mr Chris Bogglesworth
Associate Entertainment Specialist
Dr Timothy Shah
Director of Research
Dr Timothy Shah
Director of Research