Coder Social home page Coder Social logo

yashjain2409 / calculator-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from halivert/calculator-app

0.0 0.0 0.0 215 KB

Calculator app challenge from Frontend Mentor

Home Page: https://halivert.dev/calculator-app/

JavaScript 40.81% CSS 41.37% HTML 17.82%

calculator-app's Introduction

Frontend Mentor - Calculator app solution

This is a solution to the Calculator app challenge on Frontend Mentor.

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 mathmatical 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

Desktop screenshot

Mobile purple screenshot

Links

My process

I like to write first the HTML, only the HTML, it looks weird but when it's done I have a better idea of the styles needed.

Then I try to use only CSS for everything (animations, states, styles) and the last step is to add JS.

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • Mobile-first workflow
  • Vanilla JS

What I learned

  1. How to group numbers.
  2. How to use media queries with JS.
  3. How to format numbers (Intl.NumberFormat). (This isn't effective for this particular project.)

Continued development

  • Update layout for horizontal orientation in mobile.
  • Add other mathematical functions.

Useful resources

JS Media queries

Author

calculator-app's People

Contributors

halivert avatar dpuentel avatar yashjain2409 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.