blobbyblobfish / piggy-bank

MIT License
0 stars 0 forks source link

Create the Lesson screen #8

Closed blobbyblobfish closed 4 years ago

blobbyblobfish commented 4 years ago

@shivaylamba @SincerelyBrittany I'm working on the Lessons screens and so far I've got a skeleton UI set up with some logic that assumes that the data from the backend will be something like this JSON structure:

{
    id: 1,
    title: "Saving For Something Special",
    video_url: "https://www.youtube.com/embed/JkCmIxraWlM",
    question: {
      question_text: "What does SMART stand for?",
      question_choices: {
        a: "Specific, Measurable, Attainable, Relevant, Time-based",
        b: "Snakes, Mooses, Alligators, Rabbits, Turtles",
        c: "Sugar, Meatloaf, Applesauce, Raisins, Toast"
      },
      correct_choice: "a"
    }
  }

We might also vary and store how much money each question is worth. Please let me know your thoughts!