Featured
- Get link
- X
- Other Apps
Week 6: PR#3
Release 0.2: Pull Request #3
This time I wanted todo more with this pull request. Before I added a documentation file and the other was renaming a function throughout a program. For PR #3 I worked on a project called UMusic which is a webpage that allows users to search for music from SoundCloud and make/play playlists straight from page.
My job was to make the website mobile responsive. This was actually quite time consuming as a lot of the previous code was not designed with mobile devices in mind.
To start I looked over the code in each of the files to see how the maintainer setup the base of the code before. Most of the work I did was in a CSS file, but I had also implemented two function in a JS file and a single div and button in the html file.
I never really made a site mobile friendly before so this took a little bit of research to know how to get the job done. To not tamper with the original CSS styling I did most of the new CSS work in a block of code that is only used once the screens width lowers enough.
A lot of the CSS work was trial and error to get it just right to match the style setup before, but I had reached an issue when it comes to the amount of content displayed for smaller screens. The code was originally designed to have to Divs with all the content, one floating to the left, and the other to the right, issue is there is just way to much content to display. To solve this I added a button that only appears when in mobile mode. This button switches between the playlist and searching content sections so it is more readable for the user. This was possible by creating a function to linked to the button that sets the display to "none" for certain Divs and then the CSS would make the new pages look better.
Here is the content split between two pages:
- Get link
- X
- Other Apps
Comments
Post a Comment