This is my solution to the Calculator Project on The Odin Project via Calculator app challenge on Frontend Mentor.
- Perform mathmatical operations like addition, subtraction, multiplication, and division
- Adjust the color theme based on user preference
- Users can get floating point numbers
- Semantic HTML5 markup
- CSS Flexbox, Grid & Custom properties
- Vanila JavaScripts
- Create a clickable button, with box shadow that disappear when clicked.
.key {
box-shadow: 0 0.15rem #000;
}
.key:active {
box-shadow: none;
transform: translateY(0.15rem);
}
- Add keyboard support
- CSS-Tricks' Guide to Grid - This helped me to layout the keyboard. I really liked this pattern and will use it going forward.
- Fireship' Video on CSS Theme Switcher w/ CSS variables and JavaScript.
- Karim Merchant' Medium Post on Calculator UI - I'd recommend it to anyone want to learn more about this concept.
- Github - Long Nguyen