Skip to content

Test task. A credit calculator that allows users to calculate the daily and total repayment amounts of a loan. This project is available at the following link:

Notifications You must be signed in to change notification settings

kuhai-anna/credit-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Credit Calculator

Project Description

The project is created to implement a credit calculator that allows users to calculate the daily and total repayment amounts of a loan. The calculator computes the repayment amount based on the entered loan amount and repayment period.

Design visualization


Accomplishments

Technical

  • The project is implemented using pure HTML, SASS, and JavaScript (ES6).
  • Adaptive layout is done with three breakpoints:
    1. mobile: 375px;
    2. tablet: 768px;
    3. desktop: 1280px.
  • Font connections have been added using font-face.
  • Vector graphics are optimized for size.
  • Favicon display for the page is added.

Practical

  • Created an HTML form with necessary fields and a button.
  • The "Get Credit" button is inactive at the start of the calculator and until the input field values pass validation.
  • The user can input the loan amount and repayment period either in the input field or using the slider.
  • Limits are set for the input fields. If the value is not entered or it falls outside the limits, the calculation is not performed, and the user receives an error message. If the values are valid, the daily and total repayment amounts of the loan are calculated automatically according to the provided formulas, and the user can click the "Get Credit" button.
  • Upon clicking the button, a "Successful Request" notification appears, and the form is automatically cleared.

Running the Project

Cloning the Repository:

Clone the project repository on your local computer. You can use the git clone command if you are using the Git version control system.

Running Live Sass Compiler:

Launch the "Live Sass Compiler" extension in the VS Code editor. This will automatically compile SASS files into CSS during editing.

Running Live Server:

Launch the "Live Server" extension in the VS Code editor to start a local web server. This will allow you to view and test the web page on the local server.

Viewing the Results:

After starting the local server, open a browser and navigate to the address displayed in the console to view the web page in live mode.

About

Test task. A credit calculator that allows users to calculate the daily and total repayment amounts of a loan. This project is available at the following link:

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published