09 - Form 'If' statement and evaluation

Possibly the most challenging aspect of the brief was to have the form page required to contain an email text field, which searches for an '@' in the text entered by the user (when submit is pressed).


The code above is the code I have provided to do the required job. In pseudo code it's saying. 

The function Emailcheck(cur) is:

If string1(the variable which stores the value of the email input) is searched (indexOf) and the result is -1 (doesn't contain an @ symbol), then bring up a popup alert

Evaluation
In retrospect, I am happy with the design and functionality of my website. I feel that it's easy to use, and whereas it isn't the most fancy in terms of design, it offers a simplicity that is visually appealing, with extra elements that have been added in good taste.

I have also learnt some valuable lessons - in terms of good coding practise that I will build upon, and almost certainly put to good use in my future of web development.

08 - Validation

To publish a site which is respectable within the world of the web, a developer must validate their site, not only for respectability, but also so they don't get sued!

The main problems I had with validating my site were the overuse of </div> tags, where there shouldn't be any. One part of validation which has taught me great programming practise as of now, is to always have a space between certain attributes. I.e: <a href="index.html"title="Home"> is not acceptable, since there is no space between 'html"' and 'title'. I found this out the hard way!

I validated each page of my site on these three validators:


Happily I passed validation after a fair amount of errors!

07 - JS Query

Chris said that adding a Js Query would benefit us not only with our marks, but also with our development within the module. I decided it would be a great idea to add the ability to use the thumbnails (that are located at the bottom of the content section of the page) to enable the user to see pictures of my interests, since the site is meant to be about me!

I used an on-line resource called Lightbox, which is:


"a simple, unobtrusive script used to overlay images on the current page. It's a snap to setup and works on all modern browsers." (quote by the Lightbox 2 team)
The Lightbox 2 enlarges an external image of your choice when clicked by the user, and fades the background around the image to a light grey overtone. It looks professional, and similar queries are used across the whole web, including top businesses, I have included a screen shot below, which showcases the effect the Lightbox brings to my website.



To get this working within my site I had to add some extra JavaScript files, and relate my links (using rel="lightbox" within the tags).

I had problems with the sizing of the images, and had to resize a few so there was a smooth transition between images (the picture of my guitar gear for example was way too big and had to be rescaled).

06 - Problems with upload

I had a slight problem with uploading through ftp, as I just wanted to test my site whilst it was half way through the design stage. I had no trouble uploading the files, and was confused as of why the site wasn't showing when I typed in the URL, as I had named my home page 'index.html'.

I contacted 'streamline.net' (the site I host with), they responded extremely quickly, and told me that I must put all files into the 'htdocs' folder of my space, to ensure the files can be seen. The email can be seen below.

05 - CSS

Coding the CSS was very interesting, and I found it to be quite straight forward after the header had been designed, in terms of colouring I wanted to create a simple but not bland website, by using dark colours for the majority of the site. I contrasted this with a white logo to make the header stand out.

One part of coding I found very useful and neat was the ability to have the link selected depending on the page the user is browsing. The code used is shown below, although simple, I feel adds a great element to the site, which not only looks good, but serves a purpose as well.

One specific problem I encountered with delivering to the 'client' (Chris), was the fact that the thumbnails had links attached to them, which in Firefox set a link border around the images. To stop this I had to set the image background colour to 'transparent'.

The Css I coded is pretty straight forward but enabled me to create a simple yet effective site.

04- Header Design/Colour Scheme

I have decided on starting my header, and have a few different variations of one idea.

I was unsure whether to center the logo or to keep the logo on the left due to the content mainly being centered within the '#Text' div layer.


I decided to design a header that would catch the users eye as soon as the user visited the page. I didn't want the site to be too cluttered, so chose a simple spacious header. 

EDIT: In my final decision, after flicking backwards and forwards from header to header, I decided that the image with the text aligned to the top left was much more appropriate than the centered logo, as the main body of the text is centered.


03 - Website Influences

Today I decided to do some research on websites that interest me, trying to find a balance between inspiration and research; as well as wanting to look into the use of interactive thumbnails/images.

Wanting to keep the website simple, I used 'google' to access on-line opinions upon simple, yet professional websites. Having found  a collection of websites to look at provided by 'Vandelay Design' I have searched through their favourites to gather inspiration for the content and design of the site. Click Here to see the list.

One design I particularly liked, due to the simplicity of the colour layout - combined with the simple colours of the css hover function was http://getfinch.com/

I decided today to add similar aspects used in 'getfinch' to my site (such as adding social network icons that link to my own personal page!)