<div class="efl-profile-left-popup" role="dialog" aria-modal="true" data-behavior="efl-profile-left-popup" id="efl-profile-setting-left-popup">
<div class="efl-learner-profile__section--header">
<h3>Bio settings</h3>
</div>
<button class="efl-profile-left-popup__close" aria-label="close profile settings popup window"></button>
<div class="efl-profile-left-popup--inner">
<div class="efl-learner-profile-settings" data-behavior="efl-learner-profile-settings">
<section>
<h4 class="lock">Privacy</h4>
<div class="efl-learner-profile-settings--inner">
<p data-privacy-on-text="Your profile is set to public and can be viewed by others." data-privacy-off-text="Your profile is set to private and can't be viewed by others.">Your profile is set to private and can't be viewed by others.</p>
<label class="switch" for="learner-profile-privacy-check">
<input tabindex="0" type="checkbox" id="learner-profile-privacy-check" aria-label="privacy">
<span class="slider round"></span>
</label>
</div>
</section>
<section>
<h4 class="hand">Availability</h4>
<div class="efl-learner-profile-settings--inner">
<p data-availability-on-text="Your profile is marked as available. This means clubs can contact you about potential roles." data-availability-off-text="Your profile is marked as unavailable. This means clubs can't contact you about potential roles.">Your profile is currently marked as unavailable. Clubs cannot contact you to ask about your availability for volunteering roles</p>
<label class="switch" for="learner-profile-availability-check">
<input tabindex="0" type="checkbox" id="learner-profile-availability-check" aria-label="availability">
<span class="slider round"></span>
</label>
</div>
<div class="efl-learner-profile-settings__select hidden" role="combobox">
<div class="efl-learner-profile-settings__select--label" rel="button" role="combobox" tabindex="0" aria-expanded="false">
<span class="filter">Football Coach</span>
</div>
<div aria-expanded="false" role="list" class="efl-learner-profile-settings__select--list">
<ul>
<li tabindex="0" data-value="Football Coach">Football Coach</li>
<li tabindex="0" data-value="Futsal Coach">Futsal Coach</li>
<li tabindex="0" data-value="Goalkeeping Coach">Goalkeeping Coach</li>
<li tabindex="0" data-value="Safeguarding Officer">Safeguarding Officer</li>
<li tabindex="0" data-value="Volunteer">Volunteer</li>
</ul>
</div>
<select class="efl-learner-profile-settings__select--select">
<option value="Football Coach">Football Coach</option>
<option value="Futsal Coach">Futsal Coach</option>
<option value="Goalkeeping Coach">Goalkeeping Coach</option>
<option value="Safeguarding Officer">Safeguarding Officer</option>
<option value="Volunteer">Volunteer</option>
</select>
</div>
</section>
<section>
<h4 class="location">Location</h4>
<div class="efl-learner-profile-settings--inner">
<p data-location-on-text="Your profile location is switched on. We'll never share your precise location." data-location-off-text="Your profile location is switched off. ">Your profile location is switched off. </p>
<label class="switch" for="learner-profile-location">
<input tabindex="0" type="checkbox" id="learner-profile-location" aria-label="location">
<span class="slider round"></span>
</label>
</div>
<div class="efl-learner-profile-settings--enter-location hidden">
<div id="bioSettingLocationContainer">
<input type="text" name="location" placeholder="Enter-Location" class="bioSettingLocation" id="bioSettingLocation" autocomplete="off">
</input>
</div>
<input type="hidden" class="learner-profile-place" value="" />
</div>
</section>
<section>
<h4 class="share">Share my profile</h4>
<p>Copy your profile URL to share with others</p>
<div class="efl-learner-profile__social-links__list">
<div>
<div class="copy" data-copied-text="Link Copied!" data-copy-url="http://www.google.co.uk/" role="button" aria-label="Copy link to share my profile" tabindex="0">
<img src=/assets/example-content/learner-profile/copy.svg>
</div>
<p>copy link</p>
</div>
<div>
<a href="#" aria-label="Facebook">
<img src=/assets/example-content/learner-profile/facebook.svg>
</a>
<p>Facebook</p>
</div>
<div>
<a href="#" aria-label="Twitter">
<img src=/assets/example-content/learner-profile/twitter.svg>
</a>
<p>Twitter</p>
</div>
<div>
<a class="linkedin" href="#" aria-label="Linkedin">
<img src=/assets/example-content/learner-profile/linkedin.svg>
</a>
<p>Linkedin</p>
</div>
<div>
<a href="#" aria-label="Whatsapp">
<img src=/assets/example-content/learner-profile/whatsapp.svg>
</a>
<p>Whatsapp</p>
</div>
</div>
</section>
</div>
</div>
</div>
No notes defined.
{
"links": [
{
"image": "/assets/example-content/learner-profile/copy.svg",
"copyLink": true,
"copy": "copy link"
},
{
"image": "/assets/example-content/learner-profile/facebook.svg",
"copy": "Facebook"
},
{
"image": "/assets/example-content/learner-profile/twitter.svg",
"copy": "Twitter"
},
{
"image": "/assets/example-content/learner-profile/linkedin.svg",
"copy": "Linkedin",
"linkedIn": true
},
{
"image": "/assets/example-content/learner-profile/whatsapp.svg",
"copy": "Whatsapp"
}
],
"enter-location-button": {
"copy": "Enter Location",
"modifier": "secondary",
"id": "efl-profile-enter-location",
"additionalClass": "efl-profile-enter-location hidden"
}
}
import { updatePlayerProfile } from '../efl-learner-profile/efl-learner-profile-update';
export default parentElement => {
const enterLocationSection = parentElement.querySelector(
'.efl-learner-profile-settings--enter-location'
);
const privacy = parentElement.querySelector('#learner-profile-privacy-check');
const availability = parentElement.querySelector(
'#learner-profile-availability-check'
);
const availabilityDropdown = parentElement.querySelector(
'.efl-learner-profile-settings__select'
);
const dropdownDiv = parentElement.querySelector(
'.efl-learner-profile-settings__select--label'
);
const dropdown = parentElement.querySelector(
'.efl-learner-profile-settings__select--list'
);
const select = parentElement.querySelector(
'.efl-learner-profile-settings__select--select'
);
const dropdownListItems = dropdown.querySelectorAll('li');
const MOBILE_BREAKPOINT = 820;
const learnerLocation = parentElement.querySelector(
'#learner-profile-location'
);
const map = parentElement.querySelector('.MicrosoftMap');
const searchBox = parentElement.querySelector('#bioSettingLocation');
const searchPlace = parentElement.querySelector('.learner-profile-place');
const roleSelect = document.querySelector('.efl-profile__select');
// Accessibility
const socialLink = parentElement.querySelector(
'.efl-learner-profile__social-links__list div:last-child a'
);
const setSelectedListItem = e => {
const { target } = e;
const distDiv = target.closest('.efl-learner-profile-settings__select');
const selectDiv = distDiv.querySelector(
'.efl-learner-profile-settings__select--label span.filter'
);
selectDiv.innerText = target.innerText;
select.value = target.getAttribute('data-value');
select.dispatchEvent(new Event('change'));
if (roleSelect) {
const profileDropdownDiv = roleSelect.querySelector(
'.efl-profile__select--label span.filter'
);
const profileSelect = roleSelect.querySelector(
'.efl-profile__select--select'
);
profileDropdownDiv.innerText = target.innerText;
profileSelect.value = target.getAttribute('data-value');
}
};
const closeList = event => {
const { target } = event;
const distDiv = target.closest('.efl-learner-profile-settings__select');
const selectDiv = distDiv.querySelector(
'.efl-learner-profile-settings__select--label'
);
selectDiv.classList.remove('active');
selectDiv.setAttribute('aria-expanded', 'false');
dropdown.setAttribute('aria-expanded', 'false');
};
dropdownDiv.addEventListener('click', e => {
const { target } = e;
const distDiv = target.closest('.efl-learner-profile-settings__select');
const selectDiv = distDiv.querySelector(
'.efl-learner-profile-settings__select--label'
);
if (window.innerWidth >= MOBILE_BREAKPOINT) {
const isExpanded = dropdown.getAttribute('aria-expanded') === 'true';
if (!isExpanded) {
dropdown.setAttribute('aria-expanded', 'true');
selectDiv.setAttribute('aria-expanded', 'true');
selectDiv.classList.add('active');
} else {
dropdown.setAttribute('aria-expanded', 'false');
selectDiv.setAttribute('aria-expanded', 'false');
selectDiv.classList.remove('active');
}
}
});
dropdownDiv.addEventListener('keydown', event => {
if (event.keyCode === 13) {
event.preventDefault();
dropdownDiv.click();
} else if (event.keyCode === 40) {
dropdownListItems[0].focus();
}
});
dropdownListItems.forEach((item, index) => {
item.addEventListener('click', e => {
setSelectedListItem(e);
closeList(e);
dropdownDiv.focus();
});
item.addEventListener('keydown', e => {
if (e.keyCode === 40) {
if (dropdownListItems[index + 1]) {
dropdownListItems[index + 1].focus();
}
} else if (e.keyCode === 38) {
if (dropdownListItems[index - 1]) {
dropdownListItems[index - 1].focus();
}
} else if (e.keyCode === 13) {
item.click();
} else if (e.keyCode === 27) {
dropdownDiv.click();
dropdownDiv.focus();
}
});
});
select.addEventListener('change', event => {
const { target } = event;
const distDiv = target.closest('.efl-learner-profile-settings__select');
const selectDiv = distDiv.querySelector(
'.efl-learner-profile-settings__select--label span.filter'
);
const selectDivParent = distDiv.querySelector(
'.efl-profile__select--label'
);
setTimeout(() => {
target.classList.remove('active');
selectDiv.innerText = target.options[target.selectedIndex].value;
if (roleSelect) {
const profileDropdownDiv = roleSelect.querySelector(
'.efl-profile__select--label span.filter'
);
const profileSelect = roleSelect.querySelector(
'.efl-profile__select--select'
);
profileDropdownDiv.innerText =
target.options[target.selectedIndex].innerText;
profileSelect.value = target.value;
}
updatePlayerProfile();
if (selectDivParent) {
selectDivParent.focus();
}
}, 100);
});
select.addEventListener('click', event => {
const { target } = event;
const distDiv = target.closest('.efl-profile__select');
const selectDiv = distDiv.querySelector(
'.efl-profile__select--label span.filter'
);
if (select.classList.contains('active')) {
selectDiv.setAttribute('aria-expanded', 'false');
selectDiv.classList.remove('active');
target.classList.remove('active');
} else {
selectDiv.setAttribute('aria-expanded', 'true');
selectDiv.classList.add('active');
target.classList.add('active');
}
});
function loadMapScenario() {
function selectedSuggestion(suggestionResult) {
// eslint-disable-next-line no-unused-vars
const { location, formattedSuggestion } = suggestionResult;
// eslint-disable-next-line no-unused-vars
const { longitude, latitude } = location;
const profileUpdatedLocation = document.querySelector(
'.efl-profile-hero-banner__content--profile__location'
);
searchPlace.value = formattedSuggestion;
searchBox.classList.add('location-added');
if (profileUpdatedLocation) {
profileUpdatedLocation.innerText = formattedSuggestion;
}
updatePlayerProfile();
}
function searchLoad() {
const options = { maxResults: 3 };
const manager = new window.Microsoft.Maps.AutosuggestManager(options);
manager.attachAutosuggest(
`#bioSettingLocation`,
`#bioSettingLocationContainer`,
selectedSuggestion
);
}
function onError(message) {
// eslint-disable-next-line no-console
console.log(message);
}
const mapIntervel = setInterval(() => {
if (window.Microsoft.Maps.loadModule) {
window.Microsoft.Maps.loadModule('Microsoft.Maps.AutoSuggest', {
callback: searchLoad,
errorCallback: onError,
});
clearInterval(mapIntervel);
}
}, 100);
}
const loadBingMapSerch = () => {
const tag = document.createElement('script');
// eslint-disable-next-line no-undef
const mapScriptUrl = `//www.bing.com/api/maps/mapcontrol?key=${bingMapKey}`;
tag.setAttribute('defer', '');
tag.setAttribute('async', '');
tag.setAttribute('type', 'text/javascript');
tag.setAttribute('src', mapScriptUrl);
const firstScriptTag = document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
tag.onload = () => {
loadMapScenario();
};
};
privacy.addEventListener('click', e => {
const labelText = e.target.closest('section').querySelector('p');
const { privacyOnText, privacyOffText } = labelText.dataset;
if (!privacy.checked) {
labelText.innerText = privacyOffText;
} else {
labelText.innerText = privacyOnText;
}
updatePlayerProfile();
});
privacy.addEventListener('keyup', event => {
if (event.keyCode === 13) {
// Cancel the default action, if needed
event.preventDefault();
privacy.click();
}
});
availability.addEventListener('click', e => {
const labelText = e.target.closest('section').querySelector('p');
const { availabilityOnText, availabilityOffText } = labelText.dataset;
if (!availability.checked) {
availabilityDropdown.classList.add('hidden');
labelText.innerText = availabilityOffText;
} else {
availabilityDropdown.classList.remove('hidden');
labelText.innerText = availabilityOnText;
}
updatePlayerProfile();
});
availability.addEventListener('keyup', event => {
if (event.keyCode === 13) {
// Cancel the default action, if needed
event.preventDefault();
availability.click();
}
});
learnerLocation.addEventListener('click', e => {
const labelText = e.target.closest('section').querySelector('p');
const { locationOnText, locationOffText } = labelText.dataset;
if (!learnerLocation.checked) {
searchPlace.value = '';
searchBox.value = '';
searchBox.classList.remove('location-added');
enterLocationSection.classList.add('hidden');
labelText.innerText = locationOffText;
} else {
enterLocationSection.classList.remove('hidden');
labelText.innerText = locationOnText;
}
updatePlayerProfile();
});
learnerLocation.addEventListener('keyup', event => {
if (event.keyCode === 13) {
// Cancel the default action, if needed
event.preventDefault();
learnerLocation.click();
}
});
if (socialLink) {
socialLink.addEventListener('keydown', event => {
const { target } = event;
const closestDiv = target.closest('.efl-profile-left-popup');
const closeBtn = closestDiv.querySelector(
'.efl-profile-left-popup__close'
);
if (event.keyCode === 9) {
setTimeout(() => {
closeBtn.focus();
}, 50);
}
});
}
if (!map && searchBox) {
loadBingMapSerch();
}
};
.efl-learner-profile-settings {
&--enter-location {
input {
display: flex;
border: 0.2rem solid $light-blue;
padding: 1rem 2.4rem;
padding-right: 5rem;
width: 100%;
font-family: $text-font-ef;
font-size: 1.8rem;
line-height: 2.4rem;
background-image: url('./assets/images/profile-icons/search.svg');
background-size: 1.8rem;
background-position: 92%;
background-repeat: no-repeat;
box-sizing: border-box !important;
&::placeholder {
font-family: $text-font-ef;
font-size: 1.8rem;
line-height: 2.4rem;
color: $blue;
}
&::-webkit-search-cancel-button {
-webkit-appearance: none;
display: none;
}
}
}
h3 {
width: fit-content;
color: $blue;
margin-bottom: 2.8rem;
@extend .efl-heading-3;
&::after {
content: '';
display: block;
border-bottom: 0.1rem solid $light-blue;
width: 100%;
height: auto;
}
}
h4 {
@extend .efl-heading-4;
color: $blue;
display: flex;
align-items: center;
margin-bottom: 0.7rem;
&::before {
content: '';
background: url('./assets/images/add-profile-photo-icon.svg') no-repeat
center;
width: 1.8rem;
height: 1.8rem;
display: flex;
margin-right: 0.8rem;
}
&.share {
margin-top: 1.6rem;
}
}
p {
@extend .efl-p-medium;
color: $color-interface-light;
margin-bottom: 2.4rem;
}
.cta {
margin-bottom: 1.6rem;
&:hover {
background-color: $white;
border: 1px solid $red;
color: $red;
}
}
&--inner {
display: flex;
// Sliding Switch Styling
/* The switch - the box around the slider */
.switch {
flex-shrink: 0;
position: relative;
display: inline-block;
width: 3.8rem;
height: 1.8rem;
border-radius: 100%;
margin-left: 1rem;
}
/* Hide default HTML checkbox */
.switch input {
opacity: 0;
width: 0;
height: 0;
}
/* The slider */
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: $white;
border: 0.2rem solid $light-blue;
-webkit-transition: 0.4s;
transition: 0.4s;
}
.slider::before {
position: absolute;
content: '';
height: 1rem;
width: 1rem;
left: 0.4rem;
bottom: 0.2rem;
background-color: $light-blue;
-webkit-transition: 0.4s;
transition: 0.4s;
}
input:checked + .slider {
background-color: $grey-light;
}
input:focus + .slider {
box-shadow: 0 0 0.1rem #2196f3;
outline: 0.2rem solid black;
outline-offset: 0.2rem;
}
input:checked + .slider::before {
background-color: $blue;
-webkit-transform: translateX(1.8rem);
-ms-transform: translateX(1.8rem);
transform: translateX(1.8rem);
}
/* Rounded sliders */
.slider.round {
border-radius: 3.4rem;
}
.slider.round::before {
border-radius: 50%;
}
}
section {
border-bottom: 0.1rem solid $grey-light;
padding-top: 2.4rem;
.lock::before {
width: 1.5rem;
height: 2rem;
background-image: url('./assets/images/profile-icons/lock.svg');
background-size: contain;
}
.hand::before {
width: 1.7rem;
height: 1.7rem;
background-image: url('./assets/images/profile-icons/hand.svg');
background-size: contain;
}
.location {
&::before {
width: 1.4rem;
height: 1.8rem;
background-image: url('./assets/images/profile-icons/location.svg');
background-size: contain;
}
+ .efl-learner-profile-settings--inner {
margin-bottom: 0;
justify-content: space-between;
}
}
.share::before {
width: 1.6rem;
height: 1.8rem;
background-image: url('./assets/images/profile-icons/social-red.svg');
background-size: contain;
}
}
.efl-learner-profile-settings__select {
@extend .efl-p-small;
line-height: 1.6rem;
position: relative;
letter-spacing: -0.01em;
&--label {
color: $blue;
padding: 1rem 5.4rem 1rem 5.4rem;
width: 100%;
display: flex;
border-radius: 0.2rem;
border: 2px solid $light-blue;
position: relative;
align-items: center;
justify-content: center;
height: 4.4rem;
cursor: pointer;
text-transform: capitalize;
&::after {
content: '';
background: url('./assets/images/chevron.svg') no-repeat center;
width: 4rem;
position: absolute;
right: 7px;
height: 5.4rem;
top: -7px;
background-size: 0.8rem;
background-color: $grey-light;
transform: rotate(90deg);
}
&.active {
&::after {
transform: rotate(270deg);
}
}
&:hover {
background: rgba(255, 255, 255, 0.3);
}
}
&--select {
@extend .efl-p-1;
padding: 0.8rem 1.6rem;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
width: 100%;
opacity: 0;
position: absolute;
top: 0;
option {
padding: 0.8rem 1.6rem;
}
&.active {
opacity: 1;
}
}
&--list {
background: $white;
border: 2px solid #b7c5e9;
border-radius: 0 0 4px 4px;
padding: 1.2rem 0;
position: absolute;
width: 100%;
z-index: 1;
filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.25));
margin-top: -2px;
& > ul {
width: 100%;
& > li {
@extend .efl-p-medium;
padding: 0.4rem 3rem;
color: $blue;
cursor: pointer;
text-transform: capitalize;
&:hover {
background-color: $grey-light;
}
}
}
&[aria-expanded='false'] {
display: none;
}
}
}
.cta.efl-profile-enter-location {
margin-top: 0;
margin-bottom: 1.6rem;
}
#bioSettingLocationContainer {
position: relative;
.MicrosoftMap {
position: initial !important;
}
.MicrosoftMap .as_container_search {
width: 100% !important;
text-align: left;
}
.MicrosoftMap .as_container .line1 {
@extend .efl-p-1;
color: $black;
}
.MicrosoftMap .as_container .line2 {
@extend .efl-p-1;
color: $color-interface-light;
margin-top: 0.1rem;
}
.MicrosoftMap .as_img.maps_address {
background-image: url('./assets/images/location-pin.svg');
width: 1.5rem !important;
height: 2.2rem !important;
margin-right: 0.8rem;
}
.MicrosoftMap .as_container .bingLogoContainer {
display: none !important;
}
.MicrosoftMap .as_container .suggestLink {
padding: 1.6rem 2.4rem;
&:hover {
background-color: $grey-light;
}
}
}
.efl-learner-profile__social-links__list {
div {
p {
color: $blue;
}
}
}
@media screen and (min-width: $mq-medium) {
.efl-learner-profile__social-links__list {
gap: 2rem;
width: 30rem;
overflow-x: auto;
div {
img {
width: 2.9rem;
height: 2.9rem;
}
&:first-child {
padding-left: 0;
}
}
}
.efl-learner-profile-settings__select {
&--select {
display: none;
}
}
}
}
<div class="efl-profile-left-popup" role="dialog" aria-modal="true" data-behavior="efl-profile-left-popup" id="efl-profile-setting-left-popup">
<div class="efl-learner-profile__section--header">
<h3>Bio settings</h3>
</div>
<button class="efl-profile-left-popup__close" aria-label="close profile settings popup window"></button>
<div class="efl-profile-left-popup--inner">
<div class="efl-learner-profile-settings" data-behavior="efl-learner-profile-settings">
<section>
<h4 class="lock">Privacy</h4>
<div class="efl-learner-profile-settings--inner">
<p data-privacy-on-text="Your profile is set to public and can be viewed by others." data-privacy-off-text="Your profile is set to private and can't be viewed by others.">Your profile is set to private and can't be viewed by others.</p>
<label class="switch" for="learner-profile-privacy-check">
<input tabindex="0" type="checkbox" id="learner-profile-privacy-check" aria-label="privacy">
<span class="slider round"></span>
</label>
</div>
</section>
<section>
<h4 class="hand">Availability</h4>
<div class="efl-learner-profile-settings--inner">
<p data-availability-on-text="Your profile is marked as available. This means clubs can contact you about potential roles." data-availability-off-text="Your profile is marked as unavailable. This means clubs can't contact you about potential roles.">Your profile is currently marked as unavailable. Clubs cannot contact you to ask about your availability for volunteering roles</p>
<label class="switch" for="learner-profile-availability-check">
<input tabindex="0" type="checkbox" id="learner-profile-availability-check" aria-label="availability">
<span class="slider round"></span>
</label>
</div>
<div class="efl-learner-profile-settings__select hidden" role="combobox">
<div class="efl-learner-profile-settings__select--label" rel="button" role="combobox" tabindex="0" aria-expanded="false">
<span class="filter">Football Coach</span>
</div>
<div aria-expanded="false" role="list" class="efl-learner-profile-settings__select--list">
<ul>
<li tabindex="0" data-value="Football Coach">Football Coach</li>
<li tabindex="0" data-value="Futsal Coach">Futsal Coach</li>
<li tabindex="0" data-value="Goalkeeping Coach">Goalkeeping Coach</li>
<li tabindex="0" data-value="Safeguarding Officer">Safeguarding Officer</li>
<li tabindex="0" data-value="Volunteer">Volunteer</li>
</ul>
</div>
<select class="efl-learner-profile-settings__select--select">
<option value="Football Coach">Football Coach</option>
<option value="Futsal Coach">Futsal Coach</option>
<option value="Goalkeeping Coach">Goalkeeping Coach</option>
<option value="Safeguarding Officer">Safeguarding Officer</option>
<option value="Volunteer">Volunteer</option>
</select>
</div>
</section>
<section>
<h4 class="location">Location</h4>
<div class="efl-learner-profile-settings--inner">
<p data-location-on-text="Your profile location is switched on. We'll never share your precise location." data-location-off-text="Your profile location is switched off. ">Your profile location is switched off. </p>
<label class="switch" for="learner-profile-location">
<input tabindex="0" type="checkbox" id="learner-profile-location" aria-label="location">
<span class="slider round"></span>
</label>
</div>
<div class="efl-learner-profile-settings--enter-location hidden">
<div id="bioSettingLocationContainer">
<input
type="text"
name="location"
placeholder="Enter-Location"
class="bioSettingLocation"
id="bioSettingLocation" autocomplete="off">
</input>
</div>
<input type="hidden" class="learner-profile-place" value=""/>
</div>
</section>
<section>
<h4 class="share">Share my profile</h4>
<p>Copy your profile URL to share with others</p>
<div class="efl-learner-profile__social-links__list">
{{#each links}}
<div>
{{#if copyLink}}
<div class="copy" data-copied-text="Link Copied!" data-copy-url="http://www.google.co.uk/" role="button"
aria-label="Copy link to share my profile" tabindex="0">
<img src={{image}}>
</div>
{{/if}}
{{#unless copyLink}}
<a {{#if linkedIn}} class="linkedin" {{/if}} href="#" aria-label="{{copy}}">
<img src={{image}}>
</a>
{{/unless}}
<p>{{copy}}</p>
</div>
{{/each}}
</div>
</section>
</div>
</div>
</div>