Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: quizzes #172

Merged
merged 16 commits into from
Jan 16, 2023
Merged

feature: quizzes #172

merged 16 commits into from
Jan 16, 2023

Conversation

0xChin
Copy link
Contributor

@0xChin 0xChin commented Oct 31, 2022

WIP - To-Do

This pull request adds a quiz at the end of the lesson 1. To do it I've created a component that can be used in any .mdx file. This feature doesn't make any interaction with a backend, it is just interactive and doesn't saves any data.

Preview

Screen Shot 2022-10-31 at 00 48 30

Demo here

Changes

  • add quiz at the end of lesson 1

API Updates

New Features (required)

Introducing the <Quiz> component: It was created to be used easily asf. Adding it to your page takes 2 steps:

Step 1

Create a .json file in the utils/quizzes folder and write the questions following the interface:

interface Quiz {
  title: string
  questions: [
    {
      question: string
      options: [
        {
          answer: string
          correct?: boolean
        },
      ]
    },
  ]
}
Step 2

Add the quiz in your .mdx file:

<Quiz quiz="lesson-1" />

Closes #117 on merge

@vercel
Copy link

vercel bot commented Oct 31, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
school-of-code ✅ Ready (Inspect) Visit Preview Jan 14, 2023 at 4:22PM (UTC)

Copy link
Collaborator

@7i7o 7i7o left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @alanracciatti ! You are a rock star! We only need to remove these 2 changes and we are good to merge 😊

Hope you have a great weekend!

@@ -297,7 +297,7 @@ contract WAGMI {
<Callout emoji='💡' size='md' variant='info'>
While private and internal are not readable or modifiable from other contracts, its values are set on a public blockchain, making its values visible from the outside world.
</Callout>

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be awesome if we could remove this change so we don't have to "change" the Lesson in this PR 😊

@@ -705,7 +705,7 @@ you see the magical spell that is being cast here?
![Wizard Wooshing on Successful Lesson](/assets/lessons/1/img_10.png)

Before you go ahead and tell us: **what your future in web3 is,** have a check
on what you didn’t know a little while ago, and what you know now! *
on what you didn’t know a little while ago, and what you know now! \*
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here 😊
This one adds a \ that we wouldn't want to see in production 😉

@0xChin
Copy link
Contributor Author

0xChin commented Jan 14, 2023

Hey @7i7o! Ty for your feedback. Lol it seems
that my formatter did some weird stuff. I have pushed the fixes and now the 1.mdx file has no changes :)

Have a good weekend!

@7i7o
Copy link
Collaborator

7i7o commented Jan 16, 2023

@alanracciatti LGTM! 🚀

@7i7o 7i7o merged commit c1d1dea into Developer-DAO:main Jan 16, 2023
@elPiablo
Copy link
Collaborator

You are a superstar @alanracciatti !!!!

@georgemac510
Copy link
Collaborator

Amazing work @alanracciatti !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lesson 1: Add a question form at the end
4 participants