Skip to content

pedrohzed/SmartRuleOfThree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Smart Rule of Three πŸ“

A dynamic web-based calculator for simple and compound proportions. This tool features a modern glassmorphism interface that adapts its input fields in real-time based on the number of variables required for the calculation.

πŸ’‘ The Solution

Standard calculators often provide static grids that clutter the UI with unnecessary fields. This project solves that by using:

  • Adaptive Interface: The JavaScript logic generates specific input columns only after the user defines the number of quantities.
  • Horizontal Flow: Values are organized side-by-side to visually represent the mathematical relationship ($A \rightarrow B$).
  • Glassmorphism Design: A premium look achieved with backdrop filters, radial gradients, and Lexend typography.

πŸ› οΈ Technologies

  • Vanilla JavaScript: Handles real-time DOM manipulation, dynamic field generation, and the calculation of direct/compound proportions.
  • Modern CSS: Implements Flexbox for absolute centering, glass effects, and @keyframes for background animations.
  • HTML5: A semantic structure designed for dynamic content injection.

πŸ“‚ Project Structure

The code is organized into dedicated files to ensure scalability and clean maintenance:

  • index.html: Main shell containing the dynamic content containers.
  • style.css: Visual identity, including glass effects and grid centering.
  • script.js: State management for steps and the core mathematical logic.

πŸš€ How to Run

  1. Clone this repository to your local machine.
  2. Open index.html in any modern web browser.
  3. Enter the number of variables (2 for simple, 3+ for compound) and click "Continue".

πŸ‘€ Author

Pedro Henrique

About

It`s just a simple rule of three.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors