Giter VIP home page Giter VIP logo

the-ultimate-europe-quizz's Introduction

The Ultimate Europe Quizz

The Ultimate Europe Quiz is a fun interesting quiz aimed at testing the user on their general knowledge of the European Countries in travel and geography. This Simple trivia game is perfect for any get together event as friends or even a simple trivia night.

The idea of the project was inspired by my love for Europe and travel. From a young age I have always had a passion for travel after being introduced to the beauty of travel by my parents at a young age. After my first Europe experience I never looked back. I found the questions to be a fun quiz for myself as well to test how much of Europe knowledge I have gathered since my first experience and the idea is that the user enjoys the game as much as l did and is inspired to explore the beauty of Europe one day.

The content of the quiz is designed for all ages. There are no age restrictions. The website is responsive in all major screen devices that is desktop, laptop, tablet and smartphone.

Responsive Mockup

Features

Home page

On this page you will find the main title and a brief introduction to the quiz. The home page also contains the logo image of Country signs, the start quiz button and rules button.

Homepage

Rules page

The rules are found on the home page( landing page of the quiz). And these are set to give the user some guidance on how to play the quiz. Once the user has finished reading the rules they will be guided to the start quiz button. The rules will then disappear when the user proceeds to click the start quiz button.

Rulespage

Quiz page

In this section, after selecting the start quiz button, the user will be directed to the very first question which like all questions to follow will always have two options to choose from(true of false). On the quiz page the user will only see the question, the answer options, the score and the next button which should be clicked after the user has selected the correct answer so as to proceed to the next question.

For each question that the user will be working on they will know what number it is as this will be displayed at the top of the game area. There are 12 questions to answer. The correct answer option turns green when clicked while if the answer is wrong the button turns red.

Quizpage

End Page

At the end of the answering the 12 questions, the game is over and the user will be taken to the final page of the game. The user will get a congratulations message for completing the game.

There is no restart button for the player to play the quiz again. The game will marked as over.

Endpage

Future Features

In future I could possibly add:

  • An option to replay again with possibly a set of new questions.
  • Timer element to make it more fun.

Design Choices

Color

I used simple color choices for both the background and the quiz area.

Fonts

I was drawn to the combination of Ubuntu and Opens sans. A very soft combination and easy on the eyes. I was immediately drawn to the font Ubuntu and found the perfect pairing for this font on https://www.pagecloud.com/blog/best-google-fonts-pairings

Structure

The website has 3 main pages being:

  • The Home page which displays the Intro area. On this page you will find the start quiz and rules button.
  • The Quiz area which displays all the 12 questions one at a time and answer options. At the bottom of this page we also see the score and next button. This page contains the next button and score level.
  • The final page is the end of the game page which will show the user a closing message.

Technologies Used

Languages

  • HTML
  • CSS
  • JavaScript

Framework & Tools I used the following technologies to create this website:

  • Balsamiq - for my initial testing phase of the layout of the quiz
  • HTML 5- for structure
  • CSS- for styling
  • Javascript - for all the game variables and functions
  • Gitpod - for the Website creation and deployment
  • Github - for the final Website hosting
  • The fonts were taken from https://fonts.google.com/ and the inspiration behind the combination of the fonts was taken from https://www.pagecloud.com/blog/best-google-fonts-pairings
  • [Favicon] (https://favicon.io/favicon-generator/)
  • google Chrome Developer tools
  • Google fonts
  • Font Awesome
  • Code Institute Student template
  • Am l responsive
  • W3C Markup Validation Service
  • Jigsaw CSS Validation Service
  • JSHint JavaScript Code Quality Tool

Testing

The Media responsive elements were built directly in the CSS. The website is responsive across all media ie Laptops, desktops, tablets and smartphones. I also tested that all buttons respond when clicked on. The rules and start button work well and then once the game begins after the user chooses an answer the next button is displayed and user goes to next question and this sequence continues until the game comes to an end.

Responsive Mockup

Validator Testing

  • HTML

    • No errors were returned when passing through the official [W3C validator] HTMLtesting
  • CSS

    • No errors were found when passing through the official [(Jigsaw) validator] CSStesting
  • JS Validation JSHint was used to check validity of the JavaScript code used for the website and no warnings were found. 3 unused variables were found in the list of variables, however these variables have been declared in the functions

  • LightHouse Report Viewer Lighthouse

Bugs fixed

Bug Attempted Fixes Result
During the final check of the quiz functionality I noticed the questions go as far as question 11 and game ends instead of ending after question 12. I tried to adjust the global variable of question counter as well as review the next question function and cleaned up script js code. All 12 questions now display.
------------- ------------ ------------
The Check answer function was allowing the user to select either of the answers instead of allowing user to select one suitable answer. I disabled two buttons when an answer has been selected, and re-enabling them when user moves to next question. The user is now able to click only one answer.

Bugs not fixed

I did not detect any other bugs after cleaning up the code.

Deployment

  • The site was deployed to GitHub pages. The steps to deploy are as follows:
    • In the GitHub repository, navigate to the "Settings" tab
    • Once in the setting, navigate to "Pages" from the left hand menu;
    • In the "Branch" section, from the drop-down menu, select "main" and click on Save;
    • Refresh the page manually. The link to the now deployed website and will display to indicate the successful deployment.

The live link can be found here - https://ratiem.github.io/the-ultimate-europe-quizz/

In order to fork this repository, you must:

  • Go to the Github repository.
  • Click on the "fork Button" at the top right hand corner of the page.
  • Then select "create new fork' from the menu provided.

You can clone this repository by:

  • Going to the Github repository, click on the code button located above the file list.
  • Select if you prefer to clone using either HTTPS, SSH, or Github CLI.
  • Click on the copy button to copy the URL to your clipboard.
  • Open Git Bash.
  • Change the current working directory to the one where you want to clone the directory to.
  • Type "git clone" and then paste the copied URL from Github.
  • Press enter to create your local clone.

Credits

Content

Media

Acknowledgements

  • First of all i would like to thank my daughter as she helped provide support during this time. My family in general for the unwavering support throughout my program so far.
  • I would also like to acknowledge the slack community for always trying their best to guide us through challenging tasks.
  • My fellow Students Jeffrey Bull for helping review my code in peer code review.
  • I would also like to thank my fellow Code Institute student Kelly Hutchison. Her excellent code work was the basis for my project.
  • My friend George Ngcobo who helped tutor me through the final steps in trying to identify where my code required fixing particularly in javascript. I was challenged to think more and read through more online resources such as stackoverflow.com and search through related videos on youtube.
  • Julia Sjterna a JavaScript expert and coach
  • Tutoring support for the guidance to be able to pick out possible errors for fixing.
  • Finally I would like to thank my Mentor Caleb Mbakwe for the continued support
  • My friend Bhekani K for reviewing my code.

the-ultimate-europe-quizz's People

Contributors

ratiem avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.