Giter VIP home page Giter VIP logo

pokemon-quiz's Introduction

Pokemon Quiz

Check out the live site: Pokemon Quiz

Project Overview

A quiz is a great way to test your knowledge on any given subject and is fun to play with or against others. Even today people still enjoy a simple quiz every now and then.

The purpose of this project is to provide a short but fun game for any pokemon fan. Novice or veteran as it houses very simple questions that most people could probably guess the answer to.

Having a scoreboard and a running timer gives a little competetive aspect to this quiz though allowing more people to come together to play it therefore increasing the potential user base.

Site Goals

The main goals of this site are to:

  • Provide a fun game to pass the time
  • Allow users to test their knowledge of the quiz topic
  • Casually learn about the first Pokemon anime
  • Spark an interest in the original Pokemon anime
  • play competetively with friends and family

Features

Main Page

Header

header

  • The largest part of the site and it's pages
  • designed to be kid friendly and easy to read
  • Name of the game always present
  • Acts as a link to the first page to allow users to remind themselves of the rule's

Rules

Rules

  • This section is short and to the point for user experience
  • Uses an easy to read font for the user
  • has a darker background colour as to make the information stand out and not clash with the page background
  • It's sectioned to explain each part of the game and it's object's
  • Has a start game link at the bottom that takes user's to the game page

Page's background

  • Used a background generator website to custom build an appropriate and visually pleasing background with light colours
  • Used circles in the image to create a smooth feel to the site

Game page

Question section

Questions Container

The questions section will automatically display a question that is randomly picked for the user to answer. It Uses black font as to be easily interpreted and discernable by the user. Has a slightly larger text to add to this aswell. I decided the page would look too cluttered if I gave it a background so left it alone. The questions are inside of an array and are randomly selected using the Math.random() attribute.

Answer's section

Correct Answer Incorrect Answer

This box holds the different answer's that the user may pick from when making a decision. There are always three to choose from. The answers are inside of buttons that have been styled to have a white outline and a brown background as it fit's the color scheme and doesn't take away from the user's visual representation of the site. The correct answer will move randomly between these buttons so user's can't pick the same button for every question making an easy quiz.

Score section

Score Container

This small container is located underneath the answers container at the bottom of the screen and keep's a record of how many questions the user has gotten correct out of /10. It utilizes the same colour's as the answer boxes but instead has a border of gold to keep them seperated. This way the user can easily discern they are different.

Restart Game button

Restart Button

This last feature is at the bottom of the game page and when pressed, reverts the score to 0/10 and shuffles the questions again. The text is white while the background and border are brown and gold.

page design

Colour Scheme

The site uses 6 overall colours but only 4 are for the general theme of the site. The colours are white, black, gold, brown = d47516#, red and green. White and black are used as easily distinguishable text amoung brown and gold background's. I chose yo use gold and brown as the bulk colour of the site as they are playful and are appropriate for catching the attention of children. Red is used to highlight an incorrect answer and green for a correct answer.

Layout

I decided the main page would benefit from housing the rule's of the game so they are instantly accessable by the user. It's big and clear to read. The small button at the bottom cant be missed because its the only other thing on the landing page.

The header is always in view and acts as a link to the landing page in case the user would like to get a refresher of the rules, but as it's a very simplistic game, It may not be used as often.

For the second page, each section spans the entire width of the window. I gave the answers container div smooth corners and a light coloured background so the answers would be the main focus using dark colours and white borders.

Responsitivity

I have not used any media querys with this site as i ran out of time to implement them properly but as the site is layed out simplistically, I tested the site on smaller devices and still look's good to use.

Technologie's Used

  • HTML5
  • CSS3
  • JavaScript
  • Google Fonts
  • Git
  • Github

Testing

Validator Testing

I used the W3C Markup Validation Service to test my HTML code for my project and had no errors fortunately.

  • HTML Validation

HTML Validation

I used the W3C CSS Validation Service to test all CSS in my stylesheet and also came up with no errors.

  • CSS Validation

CSS Validation

I used the website JSHint.com to check my javascript code and came up with no issues, only warning's that arent relevant to the actual code functioning properly

  • JavaScript Validation

JavaScript Validation

Lighthouse Check

100% across the board for all lighthouse checks!

Lighthouse Check

Further Testing

  • I have tested all anchor links and they work properly with no bug's
  • I have pressed all buttons on both page's and they work correctly

Feature's for the Future

  • There would be a box exactly the same as the score box but it would display a stopwatch to keep time of how long it take's users to complete the quiz

  • A pop up box that has a list of best score and time taken to finish it when finishing the quiz and compare those to the result just completed of the quiz

  • Add an option for 10, 20, or 30 questions to really test a players knowledge

  • Have 3 different categories on specific topics that would be Pokemon, people and places

  • I would add media querys so the site works solidly on all device's

Deployment of Site

The site was deployed to GitHub pages. The steps are as follows:

  1. Login to Github account and find your repo
  2. In the repository, go to the settings tab
  3. While in settings, look for and click on "pages"
  4. Click source and choose "main" or "master" and then (root)
  5. Finally click save and refresh the page and the page will display the url to your published site

Deployed Site

Credits

  • GoogleFonts- Used to import the font "Mako" in various weights. Sans-serif was the backup font.
  • (slack Community) For giving little help every now and then
  • My mentor brian for great advice and guidance
  • Web Dev Simplified (youtube) for some borrowed code

pokemon-quiz's People

Contributors

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