diff --git a/src/index.html b/src/index.html index 5d4bfd86c..7e7ac5ba1 100644 --- a/src/index.html +++ b/src/index.html @@ -67,7 +67,7 @@ - + @@ -78,7 +78,7 @@ - + diff --git a/src/js/app.js b/src/js/app.js index 9ebc56351..4304aac3c 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -28,19 +28,51 @@ function render(variables = {}) { // if includeCover==false then we reset the cover code without the tag to make the cover transparent. let cover = `
`; if (variables.includeCover == false) cover = "
"; + let socialPosition = + variables.socialMediaPosition === "left" || + variables.socialMediaPosition === "right" + ? variables.socialMediaPosition + : "right"; + let socialMediaLinks = ` + ${ + variables.twitter + ? `
  • ` + : "" + } + ${ + variables.github + ? `
  • ` + : "" + } + ${ + variables.linkedin + ? `
  • ` + : "" + } + ${ + variables.instagram + ? `
  • ` + : "" + } + `; // reset the website body with the new html output document.querySelector("#widget_content").innerHTML = `
    ${cover} -

    Lucy Boilett

    -

    Web Developer

    -

    Miami, USA

    -
    `; @@ -56,9 +88,10 @@ window.onload = function() { // this is the image's url that will be used as a background for the profile cover background: "https://images.unsplash.com/photo-1511974035430-5de47d3b95da", // this is the url for the profile avatar - avatarURL: "https://randomuser.me/api/portraits/women/42.jpg", + avatarURL: + "https://z-p3-scontent.fscl27-1.fna.fbcdn.net/v/t39.30808-6/459954186_10229958902175416_3444878738620715119_n.jpg?_nc_cat=110&ccb=1-7&_nc_sid=6ee11a&_nc_eui2=AeGfWjHo3YLYWW6NLtPVDlUKLXstk17hq6ctey2TXuGrp-3weZJ_lSVAyWU3MoQgYx4&_nc_ohc=8yEqBTRFs_UQ7kNvgF9LSOg&_nc_zt=23&_nc_ht=z-p3-scontent.fscl27-1.fna&_nc_gid=A_rL7_oJtdwogLr2Gv27e_G&oh=00_AYCu7OPi2n7k4ASl_Rf_lt6M5AvVSJqKE0URZS8krH1PuQ&oe=6703E944", // social media bar position (left or right) - socialMediaPosition: "position-left", + socialMediaPosition: "right", // social media usernames twitter: null, github: null,