In this project, let’s build an Events app by applying the concepts we have learned till now.

Refer to the image below:

events output

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

  • Initially, the page should have the No Active Event View

  • When the image of an event item with registrationStatus as YET_TO_REGISTER is clicked, then the Yet To Register View should be displayed

  • When the image of an event item with registrationStatus as REGISTERED is clicked, then the Registered View should be displayed

  • When the image of an event item with registrationStatus as REGISTRATIONS_CLOSED is clicked, then the Registrations Closed View should be displayed

  • The Events component is provided with eventsList. It consists of a list of event objects with the following properties in each event object

    Key Data Type
    id String
    imageUrl String
    name String
    location String
    registrationStatus String
Components Structure
component structure breakdown
Implementation Files

Use these files to complete the implementation:

  • src/components/Events/index.js
  • src/components/Events/index.css
  • src/components/EventItem/index.js
  • src/components/EventItem/index.css
  • src/components/ActiveEventRegistrationDetails/index.js
  • src/components/ActiveEventRegistrationDetails/index.css

Important Note

Click to view

The following instructions are required for the tests to pass

  • The image for each event item should have alt attribute value as event

Resources

Image URLs
Colors
Hex: #64748b
Hex: #0967d2
Hex: #323f4b
Hex: #f8fafc
Hex: #475569
Hex: #ffffff
Hex: #2dd4bf
Hex: #3a4b63
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.

GitHub

View Github