A testing time…

28 Jun

As part of my web design course I have to undergo a test. The time had come to do it and I was nervous about it as I was not allowed to get any help from either my tutor or my fellow students. The test comprised of creating a portfolio website to showcase the websites I have created and all the other material I had created in Adobe Photoshop and Adobe Illustrator. I also had to do a theory assignment but thankfully I had completed that in February 2013 when I was in between projects.

I started on the test on the Monday. I had an idea for the site logo. I would use the logo which had been rejected by my client. Waste not, want not! I stretched the logo out, put new text on it and once I was happy with it I worked on the colour scheme. I was going to use Adobe Kuler to create a colour scheme from my logo. Unfortunately I was not able to do this as Kuler had recently been updated and this faculty was temporarily gone from the site. So I had to use Photoshop to pick out colours from the logo and use the colour scheme designer to choose complimentary colours. I picked a bright colour scheme. I showed it to my tutor Martine who was not allowed to pass comment on it as it was part of a test. However, shortly thereafter she announced to the class that the best way to present a portfolio website was to use dark complimentary colours. I took the hint and changed tact and decided to use dark greens for my site. I showed it to Martine who seemed happier with it.

The recycled logo for my test site

The recycled logo for my test site


I decided more or less to utilise the work I had done previously in my project two site although the dimensions of the test site would be slightly smaller. I had to do a wireframe diagram of the home page which I quickly got through. The next day, Tuesday, I started on the code for the home page. Unfortunately when I ran the code the slideshow which was meant to have a background of a frame (which I created in Photoshop) was nowhere to be seen and the slideshow was not running smoothly, it looked jittery. I couldn’t fathom what was the matter so the next day I decided I would leave it for another time and proceed onto the next page.

This was the about page which consisted of a photo of me and a blurb about myself. Writing the blurb took longer than the actual coding. However, once more there were problems, neither the photo nor the text were in the right place. I stuck at it until the end of the day but it was still unresolved.

The next day was Thursday and I wrote the code for the contact page. This was relatively simple as all I had to do was copy the code from my previous web site. The code ran as it should, no problems thankfully. I then moved onto the photo gallery page. I picked six images from my work in Photoshop and Illustrator and what was meant to happen was that once clicked they would appear in a lightbox slide show. Yet again I hit some snags. The thumbnail images weren’t in the right place and the lightbox slide show didn’t work. This was very disheartening.

The weekend came so I had two days away from all the coding. This obviously did me some good as when I came in on Monday I solved a lot of the problems I was having. I got the lightbox slideshow working on the portfolio page when I noticed there was a apostrophe in part of the javascript code; it hadn’t worked for that sole reason! I also sorted out the thumbnails to my satisfaction too. I also fixed the about page although the text wasn’t quite laid out as I liked when viewed in Safari & Chrome web browsers but it looked fine in Internet Explorer & Firefox. But it was good enough. I had managed to sort out two out of three problem pages and had just had one left to tackle.

On Tuesday I gave the home page my full attention. I just couldn’t see what the problem was. I was considering taking out the slideshow altogether and just showing four thumbnails of my other websites. However near the end of the day I spotted something, the slideshow was called “SlideShow” in the HTML but was called “slideshow” in the CSS. This meant that the CSS code for the lightshow wasn’t being run as it was titled incorrectly. So once I changed it to “SlideShow” in the CSS the slideshow stopped being jittery and ran properly. As for the frame, I just couldn’t get it to appear behind the slideshow so what I decided to do was give the slideshow a border. This looked well so I was happy with it.

The Lightbox Slideshow on my Portfolio site

The Lightbox Slideshow on my Portfolio site


The website was more or less finished. I added a links page which showed a sitemap. Then I had to validate each webpage, check for any mistakes or omissions and then upload the site. I was very pleased with the colour scheme of the finished site. I had there weeks to do it and I had done it in under two. The testing time was over and I had done well…

Advertisements

The Gallery page

13 Jun

The Contact page and sitemap were two pages that I whizzed through on my Project Two website. The Gallery page was another matter entirely. Well, it wasn’t the Gallery page itself but the extras that were added to it. The Gallery page consisted of six thumbnail photographs each of which opened up in a new window when clicked and a video to the right of the thumbnails. I registered with Vimeo which is a video sharing site. I then uploaded a video of mine to Vimeo, once this was processed (it took a long time) I was able to copy the code giving the address of the video file online plus other information such as the size of the video and other info governing its behaviour. The video and thumbnails were from the recent wedding of my wife’s sister. That was the Gallery page finished for the moment. I was happy enough with it.

Gallery page screen print

The Gallery page


Next I had to augment the Home page of my Project Two site. I was going to add a slideshow to it. This involved adding pictures inside a container called “slideshow” and then adding jQuery, which is a form of Javascript, to the code. Thankfully I got this working first time round. It wasn’t difficult as it was mainly a case of copying a few lines of code and so long as everything was in the right place it would work.

As preparation for what I wanted to achieve with the Gallery page, I did an assignment whose aim was to create a “Lightbox”. What this basically means is that when you click on a thumbnail a white box appears containing the full size image with the option to click an arrow to go onto the next image or the previous image. It is basically another sort of slideshow. The instructions to create this Lightbox were in my web design book but unfortunately there were several omissions which meant that every so often I would have to ask for my tutor’s assistance. Once it was seemingly finished it still didn’t work. With assistance from my tutor Martine and web design student Ross I eventually managed to get the assignment to work. The problems I had were mainly to do with the fact jQuery is case sensitive while HTML isn’t. The folder containing my images was in uppercase but in the code it was in lowercase and I didn’t realise this for the longest time.

It was now time to add the jQuery code for the Lightbox to my Gallery page. Even though I got it working for the assignment I couldn’t get it to work for the Gallery. Once more it turned out to be problems with case sensitivity! I was slow to learn my lesson! Another problem I had was that the text describing the photo in the Lightbox wasn’t visible. It turned out that the text takes the colour given to it in the body property of the CSS. The colour there was white and the background of the lightbox was white which meant of course you couldn’t see the text. Finally the Lightbox worked and the text was visible. It was worth the frustration though once it was finished and it is a great addition to my Gallery page.

lightbox

The Lightbox slideshow in action

And onto Project Two…

17 May

As I’m finally finished my client’s website (project 3) it was now time to move on to project two which is a website with a photo gallery. My tutor Martine kindly provided me with Photoshop templates, four in total for each page of the website. I changed the colours of the Photoshop document and changed the logo and header around a bit so it wouldn’t be a mere clone of my tutor’s template. I also created a gradient for the Navigation bar which I thought turned out really well. Next I drew a wireframe sketch of the home page showing all the different divs and all the other components. This was kind of doing it backwards as normally one would do the wireframe, then do the Photoshop template. Once Martine was happy with it, I moved to writing out the code on paper which Martine once again checked. Now it was on to the actual coding which didn’t take long as it was all in front of me.

The Devil & his Mrs

The aborted picture with the blacked out faces


Once I ironed out any problems with the coding I moved onto the about page. The point of the exercise was the design of the brief rather than the content but as the page was to be about me I didn’t want to just use lorum ipsum text as filler. I wrote a little about myself in more detail than I have ever done for an online piece before. I also put in a photo of my wife and me though I originally blacked out our faces but that made it look hideous. Once I had the wireframe done and written out the code it was time to input the code in Notepad++. The page didn’t look right at all and for the longest time I tweaked it until it was in the right shape. I ended up being very pleased with the final article.
About page

The finished About page

Finishing touches

8 May

The site was more or less finished. I had to check the web pages in different browsers as how they are displayed can vary. The recipes page looked fine in all the browsers except for Internet Explorer 9. When viewed in that browser the text over ran the box it was placed in so I had to reduce the amount of padding around the text so it would fit in.

Next it was time to validate the HTML and CSS on the World Wide Web Consortium website. I had a problem with all the pages due to some code I had put in which highlights the name of the current page on the navigation bar. The validator didn’t like the fact I had used identifiers that were present in other parts of the code. So I had to change the names of them slightly, usually by putting a dash in, for example “abou-t” instead of “about”. The other problems I had were usually caused by oversights such as forgetting to close a tag in the HTML. And there was one line where I had put two sets of inverted commas in one after the other instead of just one. The language used by the validator was sometimes difficult to decipher but it would give the line number of the code that was at fault. However sometimes the error showed up on the given line but actually originated earlier on. Getting used to this was half the battle.

The next stage was to do print outs for my portfolio. I printed all the validation pages for my site on the World Wide Web Consortium website. Next I had to print out all the CSS and HTML code along with screen prints of each web page. By the time I was finished there were over 50 pages!

Finally it was time to upload my website onto the GHIS website. Everything went well until I looked at the footer after everything had been uploaded. The Facebook icon wasn’t there, it was replaced by the text “like me on Facebook”. I couldn’t understand it! I started to trawl through the footer code to try to discern what was the matter. I was none the wiser. Thankfully a thought hit me like a bolt before I tore the footer code asunder – perhaps the Sonicwall firewall software used in GHIS was stopping the icon form being viewed. I went down to Hughie who is in charge of the software and he confirmed my diagnosis. So there was nothing wrong with my website – I was so relieved!

Facebook icon missing

Where is the Facebook icon?


My webpage is now finished and uploaded. I have to resist the temptation to further tinker around with it. I have to leave it be. I’m quite proud of it. I have had some very positive feedback on it from Martine and others. It has been an interesting, frustrating and rewarding experience. And I would gladly do it again.
Facebook icon found!

Here it is!

Things I’ve learned

7 May

I’d like to talk about some of the valuable lessons I have learned along the way of this project. First of all always have a backup of your HTML and CSS files so if you run into a problem you have something to fall back on. Also, when trying to troubleshoot a problem it is important to be aware that it could be just a little thing causing the problem. I learned the pain that forgetting to add a semi-colon or adding two left curly braces instead of one can cause.

Most of all I learned a lot from working with my client. Quite often during the course of building the website I would be adamant that what I was working on was for the best then my client would turn around and say she did not like what I was doing. Early on in the process I would take this to heart and feel wounded. But I would have little choice but to do things the way she wanted and over time I learned to accept this whenever it occurred.

It is important to recognise which battles are worth fighting for and which ones you should give in. If it was a difference of opinion over a picture then just allow the client to have their way. If it is a fundamental issue that is the difference between making the site legible and making the site look ridiculous then you fight tooth and nail against the ridiculous. When it came to the fundamentals of web page design I had my tutor Martine on my side with her sage advice.

I did find that over design issues my client would give way once there was a logical argument presented to her. She knew that I had the best interests of the website at heart. I learned valuable lessons in not taking things to heart and when to fight for the good of the website.

The last two…

3 May

There remained just two pages left of my client’s website. One was the sitemap which did not really involve very much, just a list of the six pages of the site. The other was the contact page. Apart from giving contact information of my client, this page also had a contact form where prospective clients would fill in details such as their name, e-mail address and reason for contact. Most of the code for the contact form was already done in an exercise devised by my tutor Martine to get me acquainted with forms.

The website was not going to be used by my client for a number of months. She is a dietary coach in training and after her exams she has to set up her company and must be insured in order to practice and only then will she be utilising the website. However, as part of my web design course I must have the website online on the GHIS portfolio website. This meant that for some months the site would be online, not wanting to draw attention to itself. Martine told me that each HTML page of the site would need to have code in it which stops the page being listed in search engine results. I found the code online and put it into each page. It goes beneath the Title tags in the head of the HTML document. And here it is:

meta name="robots" content="noindex, nofollow"

The other thing of importance that was also brought to my attention by Martine was that we did not want an e-mail address on the contact page that could be readable by spambots.

“E-mail spambots harvest e-mail addresses from material found on the Internet in order to build mailing lists for sending unsolicited e-mail, also known as spam.”
From Wikipedia, the free encyclopedia.

I had to do a bit of research online as to the best course of action to take. I decided that the method I would use to defeat the spambots was to use an image of the e-mail address on the page rather than typing it out. This I created quickly enough in Adobe Photoshop. So now I had everything I needed to finish off the contact page and it didn’t take long at all. Over the next couple of days I tweaked things a little on the whole site, making it look consistent.

Contact Page

The Contact Page

Problems…problems!!

23 Apr

I’m pleased to say I got the remaining text for the website from my client so I could move on with the remainder of the web site. I began with the “Weight Loss Programme” page, creating the HTML page first of all then entering the CSS into the stylesheet. It was going well, everything was working the way it should.

Next I worked on the “Recipe” page, again working on the HTML first then doing the CSS. It was while I was working on the CSS for this page where I hit a huge snag. When I ran the “Recipe” page it showed the header, navigation bar and the pictures on the left hand side as it should, but the rest of the page was just in text form with no CSS formatting showing. Worse still when I ran the other pages on the site, they too displayed the same behaviour. The only page that escaped most of this was the “Home” page although it did not display the footer properly.

I asked my tutor Martine for a hand. She asked me did I have a copy of the stylesheet that still worked properly. I did not. I resolved that from now on I would always have a copy of what I was working on prior to alterations. Martine had a look at the HTML and the CSS. She couldn’t find anything obviously wrong with them although she did not like the way I had done some things so I set out to rectify these issues as much as I could.

Still no joy though so I began to put comment tags around those parts of the stylesheet I wanted omitted when the code was run. That way I could stop parts of the code from running and would eventually see what worked and what didn’t. Finally I saw what was wrong. I had two left curly braces ({) one after the other. The second curly brace stopped the browser seeing the code after it. It is amazing how one little character can have such a catastrophic affect on the website! I was pleased that I had managed to solve the problem by myself, for the most part.

The next thing I wanted to do was to link a picture on one page of the site to a specific area of another part of the website. I couldn’t remember how to do it so I looked in the course book which Martine had written. It seemed simple enough. The part of the site you want to link to is given a unique identifier and the picture is given the address of this. Unfortunately when I clicked on the picture the webpage opened with no CSS which meant everything was in barren text form with no formatting or pictures.

How it looked

How the page looked when I clicked on the picture

I asked Martine to have a look at what I had done. She said I had done it just as it had been in the book. But it still didn’t work. There was a forward slash (/) in the code for the picture. She suggested that I try taking it out. Once I did this it worked the way it should have. So there was an error in the book, not my bad this time!

How it should have looked

How the page looked when I took out the forward slash

Thankfully all the problems were ironed out and I learned a few things as I went along. Most of the web site is now done, just the “Contact” page left to do along with a few extra details.