Giter VIP home page Giter VIP logo

wwq's Introduction

WWQ - World Wide Quiz

World Wide Quiz or WWQ for short is a webapplication build with Javascript where the user will try their knowlegdge by answering 10 different questions of mixed genre.

Mockup

WWQ live link

Features

Site wide

Navigation

  • Header
    • WWQ logo will contain a link to home page so the user easily can navigate back home from all pages.

WWQ logo

  • Body Home page

    • The user will be able to open up a modal that will show the rules for the quiz.
    • A link to the quiz page will be placed under the rules button.
  • Body Quiz page

    • When the user has completed the quiz links will be shown to give the user the opportunity to play again or go back to the home page.
  • Footer

    • The footer will contain social media links that will open in a new tab when clicked by the user.
    • By open the link in a new tab will hinder the user to leave the WWQ site when exploring social media.
  • Favicon

    • A favicon with an image of the erath from the logo will be added so the user will recognise the site in the tab of the browser.

Favicon

  • 404 page

    • A custom designed 404 page to match the rest of the site will be implemeted.
    • A link back to the home page will be displayed on the 404 page so the user easily can navigate back to home page.

    404-page

Home Page

Content

  • Welcome text and short description about the site.
  • Button for opening the rules in an modal.
    • The user will be challenged with 10 different questions, where each question has three options and one correct answer.
    • The user has 10 seconds to answer each question before it self moving to the next question and no score will be collected.
    • If the user select the correct answer the score will be increased with 1 point.
    • If the user select the wrong answer the score will be decreased with 1 point.
    • The total score will be displayed after the quiz is completed.
  • Link to go to the quiz page and start the quiz directly.

WWQ home page

Rules

Rules

Quiz Page

Content

  • Timer
    • Will start direct when a question is displayed and count down from 10.
    • Will make the quiz to move on to the next question when counted down to 0.
    • If the quiz is completed the results will be displayed.
  • Question heding
    • Will show the user which question they are at.
  • Question
    • The questions will be of mixed genre and displayed for the user.
  • Options
    • Each question will have three options the user can choose from. Only ONE is correct.
    • When one option is collected, the user will be moved to the next question.
    • If the user have answered all 10 questions and the quiz is completed the results will be displayed.

Quiz page

Timer

Timer

Results

Content

  • After the quiz is completed the results will be displayed for the user.
  • The users total score will be displayed.
  • The user can either play the quiz again by clicking the link that will load the quiz page and the quiz will start over.
  • Or click the link back to the home page.

Results

Features left to implement

  • Function to save and display highscore from all users.
  • Possibility for the user to create a username and save their quiz history and score.
  • Add function to display which question the user answered corrct/wrong on the result section.
  • Implement more questions.

Design

Wireframe

As the site were build it come clear that the design could be improved to make it more user friendly.

-Home page Wireframe desktop home page Wireframe tablet home page Wireframe mobile home page

-Quiz page Wireframe desktop quiz page Wireframe tablet quiz page Wireframe mobile quiz page

Colorscheme

WWQ colorscheme

Typography

Sans-serif font is used due to its advantage for accessibility and imported from Google fonts

  • Prompt - For headings and content

Responsiveness

  • The WWQ site will be fully responsive and can be used on different devices and screen sizes.

Technologies Used

  • HTML
    • The main language to develope the structure of the website.
  • CSS
    • Styling for the website was written with cusom CSS in seperate file style.css.
  • Javascript
    • The functions were written with javascript. Functions for gquiz page were written in a seperate file. Functions for modal on home page were implemented by script tag at the bottom of the body in index.html.
  • Codeanywhere
    • IDE used to develope website.
  • Gitpod
    • IDE Used to develope website.
  • Git
    • Used to push and commit code.
  • GitHub
    • To source code and deploy using Git pages.
  • Balsamiq
    • Used to design wireframes.
  • Canva
    • Used to design logo, favicon and make colorscheme.
  • Favicon.io
    • Used to create favicon file
  • Pixelied.com
    • Used to convert png images to webp.
  • Font Awesome
    • Used to implement icons.
  • Google Fonts
    • Used to import fonts

Languages

  • HTML
    • To develope website structure.
  • CSS
    • To give the site cusom styling.
  • Javascript
    • To develope functions to the site.

Testing

Browsers

WWQ website were tested on these browsers:

  • Chrome
  • Firefox
  • Microsoft Edge

WWQ website were tested on these additional devices through DevTool

  • Chrome
    • iPhone pro 12
    • Galaxy Tab S4
  • Firefox
    • Galaxy s20 Android 11
    • iPad iPadOS 14.7.1
  • Microsoft Edge
    • Noki N9
    • iPad pro

No issues was found.

  • Responsive through all pages.
  • The design is consistent and correct thorug all pages.
  • Navigation is correct and no broken links.
  • Rules button
    • Works correct, open up modal when clicked and hides when clicked on the x icon or outside the modal.
  • Option buttons
    • Works correct and takes the user to next the question or displays results if quiz is completed.

Bugs

No know bugs were found during the testing.

Lighthouse Testing

Lighthouse home page mobile Lighthouse home page desktop Lighthouse quiz page mobile Lighthouse quiz page desktop

Website HTML were tested through both uri and text input and showed no error.

W3C HTML home page W3C HTML quiz page W3C HTML 404 page

Website CSS were tested through both uri and text input and showed no error, but one warning. W3C CSS W3C CSS Warning

Jshint showed no error.

Jshint

Wave accessibility tool showed no error.

Wave home page Wave quiz page Wave 404 page

Deployment

The site was deployed to GitHub pges thorugh these steps:

  • In the GitHub repository, navigate to the Settings tab.
  • From the menu on left select 'Pages'
  • From the source section drop-down menu, select the Main Branch
  • Click 'Save'
  • A live link to the webpage will be found under environments

The live link is found here: https://saratisell.github.io/wwq/

Credits

Code

Content

Support

  • My mentor Gareth McGirr for vise advice and support through my project.

wwq's People

Contributors

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