Skip to content

Commit

Permalink
fixes: responsive Spotify container
Browse files Browse the repository at this point in the history
  • Loading branch information
f-allian committed Nov 18, 2023
1 parent fc20e59 commit 7dcb98d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion _pages/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ profile:
// Set the image source and hyperlink URL
spotifyImage.src = spotifyProfile.image_url;
spotifyImage.alt = "Spotify"; // Add a discernible alt attribute
spotifyImage.alt = "Spotify";
spotifyImage.width = 120;
spotifyImage.height = 60;
spotifyImage.srcset = `${spotifyProfile.image_url} 1x`
spotifyImage.preload = "auto"; // Preload the image
spotifyLink.href = spotifyProfile.hyperlink_url;
spotifyLink.textContent = ""; // Add descriptive text
Expand Down

0 comments on commit 7dcb98d

Please sign in to comment.