gpend / calc-app

Frontend Mentor calculator app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

The challenge

Users should be able to:

  • See the size of the elements adjust based on their device's screen size
  • Perform mathematical operations like addition, subtraction, multiplication, and division
  • Adjust the color theme based on their preference
  • Bonus: Have their initial theme preference checked using prefers-color-scheme and have any additional changes saved in the browser

Screenshot

My beautiful calculator

Links

My process

Built with

  • CSS custom properties
  • Flexbox
  • jquery - JS library

What I learned

  • css variables
  • css transitions and animation
  • adding multiple listeners

Code I'm proud of

pushables.forEach(btn => {
    btn.addEventListener('click', (event) => {
        calculate( event.target.innerText );
   })
})

Continued development

This was a fun challenge and a good introduction to some interesting concepts that I plan to work on and refine in the future.

  • css animations
  • draggable elements
  • multiple themes

Useful resources

Author

About

Frontend Mentor calculator app

License:Creative Commons Zero v1.0 Universal


Languages

Language:CSS 53.5%Language:HTML 27.6%Language:JavaScript 18.7%Language:Dockerfile 0.2%