{"size": 1060, "ext": "js", "max_stars_repo_path": "src/assets/js/home.js", "max_stars_repo_name": "Yta-ux/nlw-Badge", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/assets/js/home.js", "max_issues_repo_name": "Yta-ux/nlw-Badge", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/assets/js/home.js", "max_forks_repo_name": "Yta-ux/nlw-Badge", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 33.125, "max_line_length": 73, "alphanum_fraction": 0.6839622642}
function modelSocial(social, url) {
    let model =
        `<li class="${social}">
         <a href="${url}" target="_blank" rel="noopener noreferrer">
            <img src="assets/img/${social}.svg" alt="ícone do ${social}">
        </a>
    </li>`
    socialLinks.innerHTML += model;
}

userImage.src = localStorage.getItem('avatar');
userName.textContent = localStorage.getItem('name');
userBio.textContent = localStorage.getItem('bio');
userLink.href = localStorage.getItem('linkGithub');
userNameLogin.textContent = localStorage.getItem('username');

if (localStorage.getItem('activeInstagram') === 'true') {
    modelSocial('instagram', localStorage.getItem('linkInstagram'))
}

if (localStorage.getItem('activeFacebook') === 'true') {
    modelSocial('facebook', localStorage.getItem('linkFacebook'))
}

if (localStorage.getItem('activeYoutube') === 'true') {
    modelSocial('youtube', localStorage.getItem('linkYoutube'))
}


if (localStorage.getItem('activeLinkedin') === 'true') {
    modelSocial('linkedin', localStorage.getItem('linkLinkedin'))
}