Skip to content

Yakub-Egamnazarov/frontEndMentor-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - Calculator app solution

This is a solution to the Calculator app challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

Overview

By performing this challenge I acquired js+css+html skill. I completed this challenge in vanilla JS, so no other frameworks used. Though in the future I'm planning to complete this challenge in React. As a bonus I learned how to created a theme toggler switch, and to use global CSS variables, and how it is convenient to switch them by just few lines of JS code. The challenge is made totally responsive according the requirements. Where the breakpoints considered as 600px, since it satisfies the lower px screens as well

The challenge

Users should be able to:

  • See the size of the elements adjust based on their device's screen size
  • Perform mathmatical operations like addition, subtraction, multiplication, and division
  • Adjust the color theme based on their preference

Screenshot

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • CSS Grid
  • Desktop-first workflow
  • Vanilla JavaScript implemented

What I learned

I learned how to switch theme colors easily by JavaScript and CSS custom properties. Improved using HTML semantics. JS classes and objects.

Continued development

I would implement key typing function. Right now the solution only provides mouse click inputs, however, using the same methods of the calculator object, I could connect the triggering on number key pressed.

Useful resources

Author

Acknowledgments

I would like to give credits for the resource makers, that they help to other developers to grow.