Contribute

Ready to add a quiz of your own?

In order to contribute, please follow the steps below.

  1. Gather your questions and a nice thumbnail for your quiz. Quizzes questions must all be of the same type, either image-based or text-based.
  2. Create a JSON file for all questions in the quizzd question format (image example, text example).
  3. Update quiz options to your liking, by setting the options to true or false.
  4. Name your JSON file with a unique key (no spaces or special characters). For example, if your key is best-quiz-ever, then you should name your JSON file, quiz-best-quiz-ever
  5. Go to the index.htmlfile in the project's root directory. Add another li.quizzes__quiz element following the established structure. Don't forget to update the image source to that of your thumbnail (which can be added to the images/quiz-thumbails directory).
  6. Update the data-quiz-id attribute with the unique key for your quiz.
  7. Complete the pull request.

That's all there is to it. Happy creating!

Create a pull request