In this project, let's build an Events app by applying the concepts we have learned till now.
Click to view
Click to view
- Download dependencies by running
npm install
- Start up the app using
npm start
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
asYET_TO_REGISTER
is clicked, then the Yet To Register View should be displayed -
When the image of an event item with
registrationStatus
asREGISTERED
is clicked, then the Registered View should be displayed -
When the image of an event item with
registrationStatus
asREGISTRATIONS_CLOSED
is clicked, then the Registrations Closed View should be displayed -
The
Events
component is provided witheventsList
. It consists of a list of event objects with the following properties in each event objectKey Data Type id String imageUrl String name String location String registrationStatus String
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
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
Image URLs
- https://assets.ccbp.in/frontend/react-js/events-register-img.png alt should be yet to register
- https://assets.ccbp.in/frontend/react-js/events-regestered-img.png alt should be registered
- https://assets.ccbp.in/frontend/react-js/events-registrations-closed-img.png alt should be registrations closed
Colors
Font-families
- Roboto
- 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.