Upon opening the application, a card displaying today's meal quality options is shown. Users can select one of the three options describing the quality of their meals for the day.
Clicking on the date at the top opens a calendar where users can select any other date and navigate to its corresponding meal quality card.
If a meal quality is selected, a colored bar representing the corresponding quality will be displayed in the calendar beneath the date. If not selected, a simple gray translucent bar will be shown.
The mobile-first technique was used during development. The desktop version was made without media queries, using responsive technology.
- Minimal dependencies — only React and classnames
- The calendar is implemented in pure JS, without the use of third-party libraries.
- All application state is managed within the components.
The application is created using Create React App, so it can be run locally with. To do this, follow these steps
- Clone project
npm ci
— installing depsnpm start
— start project in dev mode- Go to http://localhost:3000
There is also a Makefile with all the development commands:
- cloning project
make install
(install deps)make start
(run in dev mode)- Go to http://localhost:3000