Best Practice: from Design to HTML Template or at least an MVC Application

 

imageThis blogpost is about my own experience in the fields of “How do I pass this cool Design into my cool MVC WebApp?”. In little projects you are used to do it on your own but what happens, if this is not the case? (Beside you are used to be a talent in multitasking).

 

Entire developing process of a WebApp

Beware: It´s a developer speaking here. Maybe there are some other ways – but writing into and so on isn´t an option for me Zwinkerndes Smiley

A kind of esoteric subject but if you, or at least your customer, now what you want, you will find nice ideas about what your web application should do. Then there will be a designer who is painting around in Photoshop and now it´s getting difficult. Because who is going to put this into HTML? And who is writing the Code?

image

Web designer = Web developer

Like I said before, I´m a developer. Of course, I now some stuff about HTML and so on but in bigger or more professional projects I always try to get an HTML-guru (Web designer). The reason is, it´s not so easy to get perfect HTML (CSS structures. There are some stumbling blocks just like browser compatibility, semantic or recoverability. The HTML-guru builds HTML templates and the web developer takes these templates and connects them with this business logic.

Result of the web designer:

Easy and static HTML (with CSS and pictures and so on) sides with all side elements on them. But there are some thinks you should keep in mind:

- Are there some error messages and where are they shown?

- If you have used Javascript frameworks you should test if they render some standard element out like for example jQuery will pass out error messages into a specific structure

- Are there some areas where “loading icons” for AJAX should be?

- Elements should fit all the time. In the best case you should create a form-style which you can use as often as you want to

- And also you need to take a look on some overlays or implementation from extern services like for example Google Maps

It doesn´t matter with what the designer works but it could be an advantage to put his results under a version control.

The reason for the simple web site: I don´t know any web designer who is working with Visual Studio or the expression products to “produce” HTML. In fact, they don´t need to do so anyway. You can send the result to your boss or your customer because he will find any important elements on it. It´s also possible to create click dummies (with some work).

But for me more important: the web designer is never in touch with the ASP.NET MVC project. Also the markup would be much prettier with razor there is a lot of thought in the views about which areas are send out into the “partials” – maybe the web designer don´t know this.

But what happens, if you want to change the design?

In this case it is possible to send the statistic website to somebody and give him the order to send back something in the same form.

The awkward part of the work

As web developer you have to spread the HTML construct and put them into the fitting views in partials or masterpages and so on. For me I do not write into the CSS anymore and in the case of an error (like for example problems with the browser view) I inform the designer and he is able to look it up on the statistic HTML side, fix it without the help of foreign systems and send the CSS back to me.

Example

As a “little” example we created a statistic side with all elements at BizzBingo (Codeplex). The stripes in the background are from the CSS Grid Framework. To say the true, in this project I´m developer and designer in one person but it´s just for fun.

imageThe template isn´t that exiting but it´s quit helpful while discussing the several side elements. If we are going to find an HTML-guru he (or she) can start working without MVC magic or data base stuff. Just HTML.

If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.

About the author

Written by Code Inside Team

Learn more about our team.

One Response

  1. great template.i like it

    Reply

Comment on this post

Recent Posts

  • Automated Security Analyser for ASP.NET websites

    Evil Hackers are lurking everywhere and many Web-applications are delicately and share “too much” with the attacker. A quick (first!) overview offers the Tool “ASafaWeb”. All the website does is making a few requests and writing an Analyses including problem solving’s. There are no permanent disadvantages (bad requests/ DoS attacks and so on). Example: KnowYourStack.com ...

  • image1489-570x194.png
    „Sign in with Twitter“ for your own ASP.NET WebApp

      “Sign in with Twitter” is a popular practice to authenticate the users on your website. One advantage compared to an own registration is the lower inhibition for the user. But on the other hand Twitter doesn’t fess up with all the information’s and you will get into a kind of addiction. At the end ...

  • image1485-570x194_thumb.png
    CodePlex is going to be updated

      CodePlex the Microsoft Open Source Project Hosting Plattform hasn’t changed that much in the last few years and for a few times I thought Microsoft stopped the whole developing process. But now I found out that there is still life in the project. Maybe it is because of the success of GitHub or because ...

  • image1474_thumb.png
    What does Adobe in the flash-free web? Magazine-Style Layouts with CSS Regions!

      Adobe is well known for Photoshop and Flash but of course there is a lot more. According to the “Future Post” from Google Adobe declared one of their big subjects on a Blogpost. I’m talking about the W3C Working Draft to CSS Regions. Adobe cooperates with the WebKit Team and W3C on this. What ...

  • image1471-523x194.png
    HTML 5 Games, Tooling & 3D

      Game Developing is an interesting subject for all kind of software developer. But as a web developer without any Flash-skills there aren’t that much starting points. With HTML5 and the combination between Javascript, CSS3 and fast browsers there are the first “robust” HTML5 games. HTML5 games? Is this real? Neowin created a “Top 10” ...

Support us