How To Create A Responsive Web Application
How To Create A Responsive Web Application
co m
It was not long ago that Responsive Web Design was the latest hotness. For a period you wouldnt see a new website launch that wasnt 100% responsive, even if the f unction of the website didnt really merit it. For the most part, I think making your websites responsive is a good idea. If you are able to provide an experience that adapts to its environment, then that is a good thing in my book. I think some websites end up over doing the whole responsive thing, but each to their own. Cribbb is a web f irst application in that is going to be built f or the browser. Hopef ully one day I will get around to creating a native mobile application, but until that point, I will have to make do with it being responsive. In this post Im going to be walking you through how I go about approaching and building a responsive design. When it comes to this sort of thing, everyone seems to have their own approach. So if this doesnt f it with your approach, or you think certain aspects would be better tackled in a dif f erent way, f eel f ree to do what works best f or you.
Why responsive?
So why would I want to make Cribbb responsive in the f irst place? Well, I think responsive web design really shines f or two types of websites. Firstly, content websites really work well in responsive design because the use case of someone reading an article is completely plausible. Its also f airly easy to strip away the unnecessary elements of the design to leave the content in an easy to digest f ormat. Secondly, I think web apps work really well using responsive design too. T hree web apps that do this particularly well are Twitter, Facebook and Dribbble. Part of my aim f or growing Cribbb is that I want content to spread on other social networks. So if someone clicks on a link f rom Twitter on their mobile phone, I want the resulting Cribbb page to look beautif ul. T his is only really achievable if I specif ically target this use case with responsive design.
As I mentioned in How to wiref rame a web application, wiref raming is an essential step f or quickly iterating on an idea without the distraction of visual design. Bef ore you hit Photoshop or get into writing the code, f irst you need to work on your ideas on paper. Trust me, nailing your ideas on paper will save you lots of time trying to work out problems in Photoshop or in code. Once I have my chosen design, I will start working on it at three dif f erent screen sizes. When you are designing a responsive layout, its important that you dont f ocus your measurements on any particular devices. For example, you shouldnt target an iPhone, an iPad and a desktop because these arbitrary sizes are not ref lective over all the possible devices that could access your website. If Apple were to randomly change their screen sizes, you would also be screwed overnight. With that being said, I do f ind it easier if I have three mental checkpoints when moving f rom a large screen to a small screen. So with your chosen design, start to re-wiref rame it f or a tablet sized screen and a mobile phone sized screen. When you start this process you will probably f ind that your chosen desktop screen might not work very well at smaller sizes. T his is to be expected, so dont f eel bad about it as you can just incorporate your f indings into your current design.
Design tools
Responsive design is certainly not an entirely new concept, and so there are new and emerging tools f or tackling this very specif ic design problem. Some people pref er to create responsive designs straight into the browser. I sometimes use this approach if what Im creating is very minimalistic like a simple blog or single page website. However f or the majority of the time, I still just use Photoshop. Many people are calling the downf all of Photoshop because it is not really suitable f or responsive designs. T his is very true, and there are some exciting new sof tware packages that are more tailored to this sort of work. However, f or me, I f ind working in Photoshop allows me to get to the point of a design that I am happiest with the quickest.
My usual approach to this sort of thing is to set the canvas at the f irst size of the screen so I can work on the design at the desktop level. I will then either create new documents, or sometimes just new f olders within the same document to create the design at the three major screen size checkpoints that I mentioned earlier. By the time I get to Photoshop Im usually more interested on the User Interf ace rather than the User Experience, so Im f ine that Photoshop doesnt allow me to make the canvas responsive. Hopef ully if you have done enough research and put the work in at the wiref rame stage, you can concentrate more on the visual aesthetic in Photoshop rather than solving design problems.
Conclusion
T here are many amazing benef its in creating a responsive website. I love it when I open a new website on my phone and it looks beautif ul because the design f eels native in its environment. However, I think a lot of people just jump straight into creating the design and writing the code without really thinking about how the design is going to work in real lif e.
If your website or web application would benef it f rom being responsive, you should absolutely put in the time and ef f ort to make it so. Hopef ully this article will help you to do just that. T his is a series of posts on building an entire Open Source application called Cribbb. All of the tutorials will be f ree to web, and all of the code is available on GitHub.