Thursday, October 6, 2016

WEEK10

I am responsible for the register and login page, the overlay feature in the week. I did realise all of them. However, my group mate Shiva already added the overlay feature to our website himself. Thus, I did not upload my code to Filezilla. Next, I will elaborate how I make the register and login page look like as below.

Figure 1


Figure2

Fist of all, I draw an interface sketch on paper. There were two versions. At first, I wanted to divide the two functions into two pages. The signup sketch is posted as below.

Figure 3

However, that is not a smart way. Thus, I looked through many websites and saw how they have done this. I found some websites such as Facebook put the two functions on one page. I decided to take this way; then I had my second sketch.

Figure 4

After that, I start to work on the HTML stuff. I use table method to divide the whole page, and I used lots of 'div' tags to help me identify different parts of my page. The part code is like this.

Figure 5

I used Bootstrap to help me arrange the layout and realise the basic interface effect (Use their basic CSS file), but I also write my CSS file to achieve the goal that I want. The changes are like font size, the button status and so on. 

Figure 6

Finally, I work on my JS file. Although I took the Bootstrap JS file to help me realise basic interactive effect already, I still need to realise the switch between register function and login function. Thus, I write a function. The basic idea of this switch method is to let the register form hide and to let the login form appear when the users click on the login hyperlink. When the users click on the register hyperlink, the effect is opposite.  Here is the screenshot of the code of this switch function.

Figure 7


The content on register form matches with the content in our database.

Figure 8

I am not sure if this version of register and login page is the last one for our project. It is because I still need to discuss it with my group mates.  Besides, I still need to add our team logo and name to the page after my group mate gets the work done. 







No comments:

Post a Comment