Skip to content

todorr92/Earth-Quiz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Earth Quiz

alt text

Summary

This is a quiz game build to entertain the user, teach something and test the developer's knowledge of JavaScript. The theme of the website is 'Earth', which will be visible in various aspect of the game.

The website contains an landing page, score section and the actual quiz game. The result of this project is an interactive frontend website.

Table of Contents

1. UX

UX

User stories

As a game player I want to:

  1. Enjoy the game
  2. Learn something new
  3. See my score

As a developer I want to:

  1. Gain more knowledge on JavaScript
  2. Learn something on given theme for a game
  3. Entertain myself and the end-user by playing the game

Design Choices

Colours

  • Text - used #fffde7 (very light yellow) for text on landing page and score section so it can fit well on whole Earth background.
  • Buttons - used yellow color for Start Game button on landing page, for the answers buttons #90caf9 (light blue) was used, then the colour was changing on click event in red or green depending if the answer was correct or wrong.

Fonts

  • Balsamiq Sans - used this font for whole website to fit nice through whole experience playing game

Background

  • Earth from Space - to show whole Earth as a place

Wireframe Mockups:

During the design process I drew up wireframes using Balsamiq

alt text alt text alt text alt text

Features

Existing Features

  1. Landing page - couple of facts about Earth
  2. Start Quiz Button - allows user to start the game
  3. Quiz container - holds all questions, images and answers
  4. Score section - shows users score, feedback based on that score and Try Again button
  5. Try Again button - restarts the game and heads straight to first random question
  6. Quit button - reloads the quiz and goes back to landing page

Features Left to Implement

  1. Timer - each question could have 30 seconds for answer to be clicked before it is treated as incorrect answer
  2. Leaderboard - to make it more competitive
  3. Add more questions or use API

Technologies Applied:

  • HTML, CSS and JavaScript programming languages
  • Google Fonts - Balsamiq Sans
  • Bootstrap - to easily adapt the website to be responsive for all users
  • Jquery - to simplify certin aspects of JavaScript
  • Github - used to store my repository and record my commits
  • Gitpod - used as online IDE
  • EZGIF.COM - used to compress gifs for feedback section
  • gif-2-mp4 - converted gifs to mp4
  • tinyjpg - used to compress images for better loading time

Testing

The test procedures and the key issues of the tests are written in the file testing.md

Deployment

This website was deployed using GitHub Pages following steps below:

  1. From the menu items near the top of the page, select Settings.
  2. Scroll down to the GitHub Pages section.
  3. Under Source click the drop-down menu labelled None and select Master Branch
  4. On selecting Master Branch the page is automatically refreshed, the website is now deployed.
  5. Scroll back down to the GitHub Pages section to retrieve the link to the deployed website.

Run this project locally

Clone this project from GitHub:

  1. Under the repository name, click "Clone or download".
  2. In the Clone with HTTPs section, copy the clone URL for the repository.
  3. In your local IDE open Git Bash.
  4. Change the current working directory to the location where you want the cloned directory to be made.
  5. Type git clone, and then paste the URL you copied in Step 3.
  6. Press Enter. Your local clone will be created. Click here for further reading and troubleshooting on cloning a repository from GitHub.

Credits

Content

Media

  • The photos used in this site were obtained from Pexels
  • Feedback Gifs were obtained from GIFER

Code Credits

Acknowledgements

I would like to thank my mentor, Akshat Garg for his support, insights and advices.

I would also like to thank Slack community for help provided when needed.

Disclaimer

Please note that content on this website is educational purpose only

About

Quiz game for Milestone 2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published