Giter VIP home page Giter VIP logo

react-calculator's Introduction

Netlify Status

Accesible React Calculator

Accessibility focused basic React calculator bootstrapped with create-react-app

Live Demo on Netlify

Netlify Status

Live Demo Link

screenshot

  • Calculator App with a strong focus on accessibility built with React.js. Practicing React Component classes, states, props, and AWS Polly.
  • This project is far from perfect. I decided to practice some basic ideas about accessibility by implementing full control via keyboard/mouse.
  • This project is also a practice implementation for the AWS service Amazon Polly

How to use it.

Normal operation

  • You can use the calculator by clicking on the buttons or touch screen device as a standard calculator.
  • You can key the numbers and operations using the keyboard.

Special Keys:

  • Enter => '='
  • delete/backspace => 'AC'
  • _ => '+/-'
  • / => Division symbol
  • * or x => Multiplication Symbol

Activate Text to Speech functionality:

  • Touch/Click: Speech function is activated clicking/touching the button Speech.
  • Keyboard: Typing the key 's' (lower case)
  • On activation, you will hear a voice with an activation message en English (default language).
  • A Icon will appear on display to indicate the Text to Speech activation.

Change text to speech-language : Spanish / English

  • Touch/Click: on buttons En or Sp for language toggling.
  • Keyboard: Typing the key 'l' (lower case) for language toggling.
  • On Toggling, you will hear a voice on the selected language. The proper Icons will appear on Display.

Push To Talk functionality: PTT

  • Touch/Click: on PTT button for PTT function activation.
  • Keyboard: Typing the key 'p' (lower case) for the push to talk function.
  • On activation, this function will read out loud the Display contents.
  • A similar effect can be achieved by using the '=' sign.

Built With

  • React.js, Webpack, Babel
  • HTML5/CSS3, Javascript ES6
  • ESlint, Stylelint
  • VSCode
  • AWS Polly

Getting Started

This project was bootstrapped with Create React App.

To get a local copy up and running, follow these simple example steps.

Prerequisites

Amazon Polly Setup

  • Create a .env file in the root of the project and include your own AWS Amazon Polly credentials. YOu can use as reference the file included in the repo .env.example
REACT_APP_AWS_ACCESS_KEY_ID = ''
REACT_APP_AWS_SECRET_ACCESS_KEY = ''

Install

yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

yarn build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

Authors

๐Ÿ‘ค Carlos Anriquez

๐Ÿค Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a โญ๏ธ if you like this project!

Acknowledgments

  • My Family
  • The Beagles!

๐Ÿ“ License

This project is MIT licensed.

react-calculator's People

Contributors

canriquez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

react-calculator's Issues

Feedback from the Beagles

  • Well Done. Nice App.

Suggestions to improve.

  • Add a way to show the current operation in execution. (perhaps a class to paint the operation button while is working)
  • Make the app more accessible: Using keyboard and text to speech (it would be nice!)

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.