Giter Site home page Giter Site logo

zjaaal / js-player Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 515 KB

Player made in Vanilla JS

Home Page: https://js-player.netlify.app/

License: MIT License

HTML 6.46% JavaScript 59.55% CSS 33.99%
js css html javascript javascript-html-css music-player music

js-player's Introduction

js-player

Player made in Vanilla JS

js-player's People

Contributors

dandresfg avatar zjaaal avatar

Stargazers

 avatar

Watchers

 avatar

js-player's Issues

Search Page

  • Add markup for Search Page
  • Add debounce functionality to search bar
  • Add dynamical rendering for search results

Header

  • Add input with magnify icon
  • Add container
  • Replace style="min-height: 50px" with a class

Create templates for rendering dynamically

Create functions that works as templates like:

trackTemplate(track){
 return //... your html here
}

so you can consume it in a reduce as:
tracks.reduce((acc, track) => acc + trackTemplate(track),"");

or as an unique template like:
artistHeader.innerHTML = headerTemplate(artist);

Note: Take that as an example an not as a representation of the final result.

Content

  • Fix heights in album art cards for responsive design

Artists

  • Create mutable list

Take an example of:

<ul class="list">
    <li class="list-item" data-artistId="1">
        <div class="flex grow">
            <div class="list-item-image">
                <img src="path/to/dua" alt="Profile Dua Lipa" />
            </div>
            <div class="flex grow column">
                <p class="title">Dua Lipa</p>
                <p class="subtitle">"5k followers</p>
            </div>
            <div class="flex center">
                <i class="fa fa-more"></i>
            </div>
        </div>
    </li>
</ul>

Create Axios Client

  • Create an instance of Axios
  • Create Artist Endpoints
  • Create Album Endpoint
  • Create Track Endpoint
  • Create Search Endpoint
  • Test Endpoints

Loader

To-Do

  • Display a loader meanwhile is fetching an album
  • Do the same while is fetching the track list

Fix the GetDuration function

I'ts not returning the properly value for some tracks.

That function just calculates the minutes but not the seconds.

duration / 60 = the integer of this expression is the minutes. Now multiply the decimals by 60 and you get the seconds.

Assets

  • get static assets for (aside) artist profile images
  • get static assets for (body) cover arts

Artist Page

To-Do

  • Artist info page
  • Most famous tracks
  • Most famous albums
  • Other related artists

After that

  • Display the artist page and hide the others center containers
  • Home button has to hide the artist page

Content

  • Add Album Art content
  • Add fa icons for Album and Artist label
  • Add container class

API Key exposed

We should revoke that api key and create a secrets.json to store the new API Key.
secrets.json must not be tracked, so we need to include it on .gitignore

Player

  • Play the music selected
  • Volume controls
  • Next/Prev/Replay controls
  • Random selection (toggle button)
  • Queue list (from album) not visible
  • Auto play the next song when a song ends

if the queue list its over, stop all actions

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.