──────▄▀▄───────▄▀▄
─────▄█░░░▀▀▀▀▀░░░█▄
─▄▄──█░░░░░░░░░░░░░█──▄▄
█▄▄█─█░░▀░░░┬░░░▀░░█─█▄▄█
C for Calculator is a sleek web-based calculator application built with React, designed with a user-friendly interface inspired by the iPhone X calculator.
- Basic arithmetic operations: ➕ addition, ➖ subtraction, ✖️ multiplication, and ➗ division.
- 💯 Percentage (%) calculation for quick math.
- 🔄 Clear (AC) to start fresh, ⏪ Plus/Minus (+/-) for sign flipping, and 🔵 decimal point (.) for precision.
- 🌐 Responsive design to fit any screen size.
- ✨ Stylish gradient buttons for a vibrant touch.
⚠️ Error handling for division by zero.
- React: JavaScript library for building user interfaces.
- CSS: Styling and layout with a dash of flair.
- React Router: Navigation between different components for a seamless experience.
-
Clone this repository to your local machine.
-
Navigate to the project directory.
-
Install dependencies:
npm install
bash
npm start
🌐 Open your web browser and visit http://localhost:3000 to start calculating!
Click the buttons to enter numbers and perform operations.
Use AC to clear the display.
Use +/- to toggle between positive and negative numbers.
Use % to calculate percentages.
Use the = button to see the result.
- Why did the mathematician break up with the calculator? Because they couldn't count on each other!
- How do you make seven an even number? Remove the 's'!
- Why did the calculator go to therapy? It had too many problems.
This awesome project was created by bluekitsune-sad 🦊
This project is open-source and available under the MIT License.