In this project, let's build a Planets App by applying the concepts we have learned till now.

Refer to the video below:



Design Files

Click to view

Set Up Instructions

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

Completion Instructions

Functionality to be added

The app must have the following functionalities

  • planetsList should be displayed using React Slick

  • The PlanetsSlider component receives the planetsList as a prop. It consists of a list of planet objects with the following properties in each planet object

    Key Data Type
    id String
    name String
    imageUrl String
    description String
  • When the next button is clicked on the page, the next planet details in the planetsList should be displayed

  • When the previous button is clicked on the page, the previous planet details in the planetsList should be displayed


planets keys breakdown

Components Structure
component structure breakdown

Implementation Files

Use these files to complete the implementation:

  • src/components/PlanetsSlider/index.js
  • src/components/PlanetsSlider/index.css
  • src/components/PlanetItem/index.js
  • src/components/PlanetItem/index.css

Important Note

Click to view
  • To build this project, take a look at the React Slick reading material

The following instructions are required for the tests to pass

  • The planets should have the alt as the value of the key name from planet objects in the planetsList
  • The app should consist of an HTML container element with data-testid as planets

Resources

Image URLs
Colors
Hex: #f8fafc
Hex: #f1f5f9
Hex: #05acff
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.