In this project, let's build an Alert Notifications 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
- For each notification, the Notification component should receive the below elements as children
- Icon
- Heading
- Description
Implementation Files
Use these files to complete the implementation:
src/components/Notification/index.js
src/components/Notification/index.css
src/components/AlertNotifications/index.js
src/components/AlertNotifications/index.css
Click to view
The following instructions are required for the tests to pass
- Access the elements passed to the
Notification
Component using the children prop. AiFillCheckCircle
from react-icons should be used for Success notification.RiErrorWarningFill
from react-icons should be used for Error notification.MdWarning
from react-icons should be used for Warning notification.MdInfo
from react-icons should be used for Info notification.GrFormClose
from react-icons should be used as Close icon in each notification.
Colors
Hex: #64748b
Hex: #2dca73
Hex: #ff0b37
Hex: #ffb800
Hex: #0f81e0
Hex: #e5e5e5
Hex: #0f172a
Hex: #475569
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.