Skip to content

This is a quiz app built using React, TypeScript, and styled-components that pulls quiz data from the Open Trivia Database. The app provides users with a set of five questions to answer, complete with answer checking functionality for added convenience.

Notifications You must be signed in to change notification settings

kebin20/quizzical

Repository files navigation

Game Layout

Quizzical - Trivia App

Table of contents

Overview

Main function

It is a simple quiz app that outputs 5 different questions which in turn, is able to check whether you have answered the questions correctly or not. It will then display how many questions you got right.

Data is fetched from the Open Trivia API.

To see my old commit histories (due to my old repo having problems), please click here.

Links

My process

Built with

  • Semantic HTML5 markup
  • Flexbox
  • React - JS library
  • TypeScript - Strongly typed programming language ontop of JS
  • style: styled-components

Continued development

Future Implementations

  • Implement a loading screen when the data is being fetched.

  • Add a timer to see how fast you can answer the questions.

  • Add an option to choose which difficulty of quizzes you would like outputted and the number of quizzes outputted as desired.

Resources

  • StackOverflow - This article helped me to solve the issue of getting a type error when using CSS modules. I only need to create a file called typings.d.ts in my src folder and added the following code: declare module "*.module.css";

  • Grepper - This one is a similar problem with the CSS modules, but for SVG files being imported as a module

About

This is a quiz app built using React, TypeScript, and styled-components that pulls quiz data from the Open Trivia Database. The app provides users with a set of five questions to answer, complete with answer checking functionality for added convenience.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published