A live demo of the site can be found here
- User Stories
- Design
- Colour Scheme
- Typography
- Images
- Features
- Technologies Used
- Testing
- Deployment
- Credits
- The site’s users want to play an online game that has elements of chance.
- The site’s users want to play an online game that has diffrent levels.
- The site’s users want to leave a feedback.
- The The site’s users want to play again.
- The site’s goal is to provide a challenging game with increasing levels of difficulty to entertain online users.
- To learn javascript.
- To gain feedback.
- Pattern matching functionality
- A limited number of tries before the game is over
- A score tracking system
- The ability to play against the computer
The main colours used throughout the website are a mixture of rgb(255, 235, 205), #2b2a28, #7cc5e8, #f1ce32 and white.
Main fonts used are Verdana and Tahoma which are browser native and the Sans Serif as the fallback font in case of not being supported failure.
only 2 images were used one for background and other to describe the rules.
-
Main content
-
Header only has a clickable h1 element which main function is to redirect you back to the index page.
-
Footer has only social links and contact link
-
The footer has 3 fontawesome icons for facebook, instagram and twitter and are connect to respective homepages.Footer stays at the bottom of the screen even if no content.
-
Landing page Has only left whit 1 button in the middle of the screen to redirect you to the game page, rest being header and footer that contains the social links . Footer has only social links and contact link
-
Game page has the game and its options both of which have simple style. Game option has 3 difficulties baing Classic(3 hands and 3 lives), Spock(5 hands 5 lives) and 99Lives(5 hands and 99 lives). Rules shows a div over everything showing the rules of the game and can be closed by either clicking on it or clicking rules button again. When game ends a play again button appears which brings you back to options.
-
Contact page i 1 simple form that sends me a mail with the form info and prevents embty submits.
-
My simple mail.
- Plan to change last of the difficulties to 8 hand moves.
- Adding a top score board.
- Increasing lives and difficulty settings.
- Ability to change color options.
- Adding more text to the game .
Figma was used to a lesser extent to make wireframes. Wireframes are very simple only ment to show the layout. here
- HTML
- CSS
- Pen, Paper and English
- Javascript
- little wireframes.
- Pen and Paper wireframes.
- Virtual code studio for code.
- Git to store the code changes.
- Github used to store the repository.
- Fontawesome used for icons.
- famicon.io for famicon.
- Emailjs.
- W3C Markup validation and W3C Jigsaw CSS validation.
- JShint.
Basic user testing works.
Did not have time implement all changes.
Ran in to a lot of difficulties whit CSS which took up 50% of the coding time other half divided to 20% javascript and html, the rest 30% looking up info on emailjs tutorials and trying to implement my more radical ideas which sadly did not come to life since they were not written in plain javascript.
During testing box images did nothold size properly so had to add lots of media queries, buttons did not stay in place.
Multiple times javascript did return undefined. This was mainly caused by multiple ids whit same name or inline style not behaving.
The live site has been tested on Firefox and Chrome. The site has also been tested on several devices using dev tools to confirm that its responsive on all devices.
- HTML 2 warnings were returned when passing through the official W3C validator since they were left embty to store javascript values.
- CSS no errors were returned when passing through the official Jigsaw validator
I ran several tests in Lighthouse and noticed that the performance was high, the reason for this was that the actual content was 2 picture and a game. The score for Desktop was higher than for Mobile but I am satisfied with the results.
For more lighthousetests go Here
ran some test dont know why it gives error on emailjs
This site was deployed using GitHub Pages with the following the steps below:
- Login or Sign Up to GitHub
- Create a new repository named "medical-plant-site".
- Once created, click on "Settings" on the navigation bar under the repository title.
- Click on "Pages", on the left hand side below Secrets.
- Under "Source" choose branch you wish to deploy in most cases it will be "main".
- Choose which folder to deploy from, generally from "/root".
- Click "Save", then wait for it to be deployed.
- The URL will be displayed above the "source" section in GitHub Pages.
- Email sending JavaScript API code was written with the help of the official EmailJS tutorial Emailjs
- The fonts were taken from Google fonts.
- The icons in the footer were taken from Fontawesome.
- Help with coding was taken from [https://www.w3schools.com/]
- The image from the landing page was taken from bing
I looked in multiple sites in order to better understand the code i was trying to implement.
The following sites were used on a more regular basis:
Self learned. Mentor Mo helped me to notice what was still lacking in the project.