Skip to content
Snippets Groups Projects
Commit 4fa515a2 authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-4704: adding contact component

parent 4b4e1fc6
No related branches found
No related tags found
1 merge request!66ISTWCMS-4704: adding date component with ability to handle multiple dates and...
<div class="uw-contact">
<details class="uw-contact__details">
<summary class="uw-contact__summary">
<h2 class="uw-contact__h2">
{% if contact.link_profile %}
<a href="{{ contact.link_profile }}" class="uw-contact__link-profile">
{% endif %}
{{ contact.title }}
{% if contact.link_profile %}
</a>
{% endif %}
</h2>
{% if contact.position %}
<div class="uw-contact__position">
{{ contact.position }}
</div>
{% endif %}
</summary>
<div class="uw-contact__info">
{% if contact.email or contact.phone %}
<div class="uw-contact__phone-email">
{% if contact.email %}
<div class="uw-contact__email">
<a href="mailto:{{ contact.email }}">{{ contact.email }}</a>
</div>
{% endif %}
{% if contact.phone %}
<div class="uw-contact__phone">
{{ contact.phone }}
</div>
{% endif %}
</div>
{% endif %}
{% if contact.location %}
<div class="uw-contact__location">
<strong>Location:</strong><br />
{{ contact.location }}
</div>
{% endif %}
{% if contact.link_profile %}
<div class="uw-contact__profile">
<strong>Link to profile:</strong><br />
<a href="{{ contact.link_profile }}">{{ contact.title }}</a>
</div>
{% endif %}
</div>
</details>
</div>
\ No newline at end of file
contact:
title: 'Contact Name'
position: 'Position'
image: 'http://fpoimg.com/140x105?text=Thumbnail 4:3'
email: 'someone@uwaterloo.ca'
phone: '519-888-4567 ex. 3333'
location: 'EC2 4444'
link_profile: 'https://google.ca'
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment