The challenge is to build out calculator app and get it looking as close to the design as possible. For this purpose you can use any tools you like to help you complete the challenge.
Project assumptions:
- Mathematical operations handling like addition, subtraction, multiplication and division,
- Adjust size of the elements to screen size,
- Select color theme based on user preferences,
- Check for the user's initial theme preference in local storage;
Additional assumptions:
- Implementing keyboard shortcuts for improved application control,
- Conducting mathematical operation validation,
- Implementing hover and click button effects.
This is a solution to the Calculator App on Frontend Mentor.
- Semantic HTML5 markup
- CSS custom properties
- Grid/Flex
- React
- JavaScript
- Styled components
- Mobile-first workflow
- Download or clone the repository.
- Navigate to the project directory in your terminal.
- Run
npm install
to install all dependencies. - Run
npm start
to start the development server. - Open a browser and navigate to
http://localhost:3000
to view the app.
To run the tests, you can use the command npm test
. This will start the test runner and run all tests in the project. You can also use the command npm test [path-to-test-file]
to run a specific test file.
- Frontend Mentor - @MaciejNarejko
Thanks to the FrontendMentor.io community for a code review. Together we create better code.