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

Refer to image below:


resuable-banners-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

  • The BannerCardItem component will receive the details of the banner card in the prop bannerCardData

  • Each banner card object will have the following properties

    Key Data Type
    id Number
    headerText String
    description String
    className String
  • The value of the key id should be used as a key to the BannerCardItem component.

  • The value of the key className should be used as a className for the HTML container element in the BannerCardItem component.

  • Your task is to complete the implementation of

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

Resources

Images

Colors

Hex: #7e858e66
Hex: #64748b
Hex: #ffffff
Hex: #326a9d

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.