Giter Site home page Giter Site logo

flexbox_calculator's Introduction

flexbox_calculator

flexbox를 사용해 html, css, javascript로 동작하는 계산기 만들기

html/css, flex로 계산기 만들기

(js 파일은 미업로드)

figma로 mockup / wireframe 제작

계산기 동작

2022-07-06.3.51.27.mov

flex

  • display:flex로 설정 후 flex-direction 속성으로 각 button__row들 정렬
  • justify-content, align-items 속성으로 계산기와 각 button 요소들 가운데 정렬

기능

  • 기본적인 사칙 연산 가능
  • '=' 버튼을 여러번 누를 시 앞선 결과값에 이어서 연산 ex) 3, +, 3, =, =, =, = -> 15 출력
  • '=' 버튼을 누르지 않고 계속해서 연산 가능 / 연산 중간 결과 값을 계속해서 화면에 업데이트 ex) 1, +, 2, +, 3, +, 4, +, 5, = -> 15 출력
  • '.' 버튼은 연속해서 입력되지 않음
  • 연산자 버튼은 연속해서 입력해도 마지막에 입력한 걸로 적용해서 연산

css

  • :hover, :active 가상 선택자로 버튼에 커서가 있을 때, 눌렀을 때 효과

flexbox_calculator's People

Contributors

jwo0o0 avatar

Watchers

 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.