Skip to content

React Components showing future value of an investment based on user input

Notifications You must be signed in to change notification settings

ericauv/investment-slider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Investment Sliders

This project is an attempt to mimic + improve the slider component(s) that Homevest currently has in production.

Comparison

Below is a comparison of the sliders in production vs. the sliders in this repo.

Original Sliders in production

Production Sliders

Improved Sliders

Improved Sliders

Changes

  • Added debounce to onChange handler for a smoother UI
  • Used semantic HTML for inputs for better accessibility across browsers (vs. using divs with roles)

Future Improvements

Some further improvements can be made to the sliders in general and to match more closely with the original sliders :

  • Match font size + colors for labels and copy
  • Add media queries for screen-width for responsiveness
  • Match slider bar size
  • Match slider thumb outline width
  • Add more complete test coverage, only a few tests have been written
  • Improve 'grab' vs. 'grabbing' cursor behaviour

Installation

In the project directory, install packages using npm install

Available Scripts

npm 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.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

About

React Components showing future value of an investment based on user input

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published