Pages

Tuesday, April 4, 2017

Responsive Design Overview

Responsive design is the practice of making your website adjust to the varying screen sizes of the website's viewers. This is important because people use their phones as much as they use full sized computers. Viewing a website designed for a different screen size can hurt the website's functionality by making it harder to read or use. I incorporated responsive design into my website in order to make it more usable on mobile. I did this by making the text larger relative to the screen on smaller screen. In addition, I made the array of projects have fewer columns on smaller screens.
On the desktop version of my website, we can see that the text on my splash page takes up about a third of the screen width. This looks really nice when viewed on a larger screen, but if it were to take up a third of a smartphone screen, it may become hard to read.
By using media queries, I changed the text so that it would use nearly 100% of the screen width. This works well on a small screen, but if it took up a 100% on desktop, it would be annoying to read.

Sunday, April 2, 2017

Responsive Design


Responsive design in websites is when the website you're viewing adjusts to the screen size in order to convey the message most effectively across devices. The amount of people viewing websites on mobile devices is increasing, so now it's important to account for desktop and mobile users. The best way to do this in web design is by using media queries. Media queries can be used to apply certain CSS styles only when the viewing width of the page fits within the limits of the media query. When developing a responsive design, you have to pay attention to breakpoints. You can find breakpoints by slowly decreasing your window's width until the elements on the page don't look like they should. This is where you insert a media query. By continuously finding and fixing breakpoints, you can make a website responsive.


This is a screenshot from the laptop version of Papa John's site. This screenshot has the most information on the page as possible.
When shrunk down to the tablet size, the site retains most of the same elements. One change is the removal of the promo code bar and the reduced size of the shopping cart button.

Finally, the smallest version has a hamburger menu which you can expand to see the remaining navbar content. The splash content was also reorganized to move the text under the picture instead of covering it in order to use the space most effectively.