Skip to content

Karthik-V26/Coffe-planner-app

Repository files navigation

In this assignment let's build a Coffee Planner by applying the concepts we have learned till now.

Refer to image below:


coffee-planner-large-output

Design Files

Project Set Up Instructions

  • Download dependencies by running npm install
  • Start up the app using npm start

Project Completion Instructions

Add Functionality

The app must have the following functionalities

  • Only one option should be selected for each question.

  • When the HTML button element with text content Create my plan! is clicked

    • If an option is selected for each question then the summary of the coffee subscription plan should be displayed to the user.

    • If an option is not selected for any of the questions then the following text should be displayed to the user.

      • Kindly select options for all the questions.
  • The list of coffee questions is passed to the CoffeePlanner component as a prop coffeePlannerData in the form of an array object.

  • Each coffee question object will have the following properties

    Key Data Type
    id Number
    questionType String
    questionTitle String
    optionsData Array
  • The value to the property optionsData contains the list of question options in the form of an array object.

  • Each question option object will have the following properties.

    Key Data Type
    id Number
    optionTitle String
    description String
  • Your task is to complete the implementation of

    • src/components/CoffeePlanner/index.js
    • src/components/CoffeePlanner/index.css
    • src/components/CoffeePlannerQuestion/index.js
    • src/components/CoffeePlannerQuestion/index.css
    • src/components/QuestionOption/index.js
    • src/components/QuestionOption/index.css

Quick Tips

  • The cursor CSS property sets the type of mouse cursor, if any, to show when the mouse pointer is over an element. Use the CSS property cursor with a value pointer to indicate a link. Click this to know more.

  • An outline is a line that is drawn around an element, outside the border. The outline CSS shorthand property sets all the outline properties. Use the CSS property outline with value none to hide all the outline properties. Click this to know more.

Resources

Images

Colors:

Hex: #f4f1ea
Hex: #0e8684
Hex: #2e353d
Hex: #1e293b
Hex: #64748b

Font-families

  • Roboto

Things to Keep in Mind

  • All components you implement should go in the src/components directory.
  • Don't change the component folder names as those are the files being imported into the tests.
  • Do not remove the pre-filled code
  • Want to quickly review some of the concepts you’ve been learning? Take a look at the Cheat Sheets.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published