Skip to content

harsha-penugonda/FAQ-ReactJs

Repository files navigation

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

Refer to image below:


faqs-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

  • When the plus icon is clicked in the FAQ

    • The answer to the FAQ should be visible to the user.
    • The plus icon should change to a minus icon.
  • When the minus icon is clicked in the FAQ

    • The answer to the FAQ should be hidden to the user.
    • The minus icon should change to a plus icon.
  • The FaqItem component will receive the details of the faq in the prop faqData.

  • Each faq object will have the following properties.

    Key Data Type
    id Number
    questionText String
    answerText String
  • The value of the key id should be used as a key to the FaqItem component.

  • Your task is to complete the implementation of

    • src/App.js
    • src/App.css
    • src/components/FaqItem/index.js
    • src/components/FaqItem/index.css

Important Note

The following HTML attributes are required for the HTML image elements for the tests to pass

  • The HTML image element to display the plus icon image should have the HTML attribute alt value as plus
  • The HTML image element to display the minus icon image should have the HTML attribute alt value as minus

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.
  • 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.

Resources

Images

Colors

Hex: #cb8805
Hex: #52606d
Hex: #9aa5b1

Border Colors

Hex: #d7dae6
Hex: #e4e7eb

Background Colors

Hex: #ffffff
Hex: #f1f5f8

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