I added few more features on music-player project

https://res.cloudinary.com/dbemlmp6g/video/upload/v1703628964/97efa6b5-22c8-4684-9439-a0a7e40ef6c9_uebx5q.mp4

The thumbnail images have nothing to do with the songs, they are simply free images from Unsplash.
Features added
-Artist images added to the data array

  • the same Images used as list thumbnails only size reduced
  • Favorite songs are added to the cart and listed
  • Favorite songs are listed dynamically and checked before adding to the list if a song is already inside the favorite cart.

Things I wanted to add but face challenges

  • Toggle Play and Pause buttons, I thought displaying both buttons at the same time is not cool :smile:
  • display a progress bar for a current song based on the duration
  • displaying some wave animation that syncs with the current song, when I click to pause the wave should stop etc..
    -delete favorite songs

I welcome for any suggestion
Demo- https://coruscating-salmiakki-301c50.netlify.app/

I like that you are taking the initiative to add more functionality to a project. That’s a great way to learn.

One piece of advice I will give you is that you can’t just add click handlers to non-functional elements because then they aren’t accessible to people using a keyboard. So the “Like” button needs to be an actual button element. The ability to show/hide the playlist and favorites list needs to be a button as well. There are other accessibility concerns here as well that I won’t go into now. The main point here is that you should only add event handlers to functional HTML elements. In other words, elements that the user can interact with.

Thank you very much for your nice feedback, I’ll implement them as per your suggestions

i also made the music player and added a progress bar, one can get to the desired part of the song directly. Liked you additions and i will also try to imprement those things in my project, any suggestion you want to share with me?

  1. I am planning to add the time duration and time elapsed,
  2. the favorite section with a animated like button
  3. a light and dark mode toggle.

demo - Learn Basic String and Array Methods by Building a Music Player App

(PS: ignore the unloaded image and undefined time ) i will fix it soon. i was so exited to share it.