Giter Club home page Giter Club logo

world-geography-quiz's Introduction

World Geography Quiz

Mockup

Visit the deployed site: World Geography Quiz


CONTENTS


Introduction

The World Geography Quiz is a multiple choice online quiz testing the users knowledge on different countries and there geographic. The user can put in there name in the beginning of the quiz. The user gets feedback on the number of questions and the score in the ongoing quiz. The user gets an overall feedback at the end of the quiz showing how they did in the quiz, how many questions they got right, there score and a button that is there if the user wants to try again.

Purpose and Target Audiance

The purpose of the World Geography Quiz is for users who wants to play an online quiz about geography to test there knowledge. The target audience is users who has an interest in Geography and want entertaining way to test and learn about geography online.


Features

Start Section

  • Features an input field. The user is required to enter a name to continue. A submit button initiates the next section if a valid name has been entered. If user tries to continue without putting in a valid name a red text pops up as "Please enter a valid name."

Start section

Quiz Section

  • A score area displayed at the top that keeps track of the current and total number of questions, updates if the user was correct with a score number everytime user chooses an answer.
  • Features the question displayed underneath the score area with four clickable option answers.
  • Feedback to the user includes the change of background color of the answers when the user hovers over and the cursor changing to a pointer. These features are disabled on smaller screens and is only for larger screens with mouse.

Quiz photo

Result Section

  • A personalized message with there name in the beginning and telling the user how many questions they got correct and there final score.
  • A clickable button wich allows the user to play again.

Quiz Result photo

Features Left to Implement

  • Have different levels of the game so the user can choose: basic, intermediate or advanced.
  • User being able to save there scores and progress and play again with same name.
  • Having different geography topics the user could choose from. For example: Capitals, Rivers, Flags etc.

Testing

Testing was performed on:

devices:

  • Laptop
  • Iphone 11
  • Iphone 14

Browsers:

  • Chrome
  • Firefox
  • Safari

Validator Testing

HTML

One error and one warning where returned when passing through the official WC3 validator.

  • The error was fixed by removing the action="" from the form element.
  • The warning was fixed by putting in placeholder content of: Loading question...

html error

CSS

css validator

JavaScript

  • The unused variables where used in Html.

javascript valid

Lighthouse Score

lighthouse score


Fixed Bugs

Had some problem with the start page on the input name field. The website remained in zoom when using it on iphone safari browser. To fix this i used font-size property on input field. Code taken from this source.

Safari Bug fix


Deployment

The site was deployed to GitHub pages following these steps:

  1. Go to World-Geography-Quiz Repository.
  2. Navigate to the Settings, top left.
  3. In settings on the left side of the screen click pages.
  4. From the source section drop-down menu, select the Deploy from branch.
  5. Under Branch select main and set folder to root and save.
  6. once the steps are done go back to book club repository and refresh page and you'll see deployed page at the right side if you scroll down.

The live link can be viewed here: https://dilaraucar.github.io/world-geography-quiz/

Git Commands

  • Git add was used to add the changes made for the next commit.
  • Git commit was used to save those changes to the repository with meaningful messages. A commit acts as a snapshot of changes.
  • Git push was then used to update the remote repository with local commits.

Credits

Code used

  • The focus on input field when website is first visited was inspired by the code used from the CodeInstitute learning project - Love Maths. focus input field code

  • Using the trim() to make sure the user must put in a name before continuing was recommended by my mentor Spencer Barriball. I then used google to understand the concept more and how to use it. code making sure name must be input

  • For bug fix when website is used on Safari browser making sure the input field works correctly and as intended code was used from this source in CSS.

code for Safari users

  • For making the header stand out more to make it easy to read i used this source for CSS used.

code for text shadow used

Content

The web site code is my own, but I used Google to find information and ChatGPT to help with generating random ideas for questions and answers options to make the quiz more exciting but still being challanging for the user.

Media

  • Fontjoy were used to generate font pairings that look good together.
  • Favicon.io were used to generate a favicon.
  • Pexels were used for image used.
  • Coolors were used to generate colour palettes that matches the image used in background.
  • Parade where used to find ideas for Q&A's for the quiz.
  • Geeksforgeeks where used to find answers to problems I was facing when coding (example of code used in link).

world-geography-quiz's People

Contributors

dilaraucar 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.