Git Product home page Git Product logo

qwizzical's Introduction

qwizzical

A history multiple choice quiz app, made using the OpenTriva API, ReactJS, SCSS & Figma.

Link to Qwizzical: https://qwizzical.netlify.app

Images

In Action

frontpage

The Welcome Page

frontpage

Selecting Answers

selecting

Submitting/Checking Answers

checkingAnswers

How It's Made:

Tech used: ReactJS, JavaScript, SCSS, Figma
The project is built entirely in ReactJS, and designed in Figma.
For the API calls I created a custom useFetch hook, to retrieve an api token and store it for future calls, to avoid repetition of questions. It then responds to token errors, or when the dbs questions have been exhausted by refreshing and resetting the token.
I decided not to add the ability to select the quiz category, as I wanted to build a history quiz. Although that functionality could be easily added by some simple changes to the useFetch hook.
Likewise a selection for the difficulty could be added too. However, I wanted to create a quiz which was quick to use and didn't ask the user to make choices about the setup.

Optimizations

There are other features I would like to add to this app to improve it in future:
[ ] - Add localstorage of scores, and display previous results over the last few days.
[ ] - Add a header with profile option to see past results, scores etc from localStorage.
[ ] - Add colour theme toggle, so the user can toggle from a white background to dark theme
[ ] - Add ability to share results with friends.

Lessons Learned:

This was a fun project to get up and running, I got to spend more time working with React which has been great, again making custom hooks to handle data fetching and working to manipulate and display that data in complex objects.
Building the game logic was fun, as was the styling. Although simple, it was satisfying to find a colour palette that I liked and thought worked well.

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.