Skip to content

LuckDay21/Basic-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic Calculator | Premium Precision

A high-end, modern web-based calculator with a state-of-the-art glassmorphic aesthetic. This project transforms a basic utility into a premium experience through smooth interactions, vibrant visuals, and high-precision logic.

✨ Features

  • Premium Glassmorphism: Stunning frosted glass effect with vibrant, blurred background colors.
  • Dynamic Logic: Supports basic arithmetic (+, -, ×, ÷) and advanced operations (%, √, x²).
  • History Log: Persistent history of your last 10 calculations, accessible via a sliding sidebar.
  • Micro-animations: Powered by Framer Motion for tactile button feedback and smooth transitions.
  • Power State: A functional "Sleep/Online" mode to simulate real device behavior.
  • Keyboard Support: Full mapping for numpad and operation keys.
  • Dark/Light Mode: Auto-detects user preference with a manual toggle for the ultimate viewing experience.

🚀 Tech Stack

📦 Installation

  1. Clone the repository:

    git clone https://github.com/LuckDay21/basic-calculator.git
  2. Navigate to the project directory:

    cd basic-calculator
  3. Install dependencies:

    npm install
  4. Run the development server:

    npm run dev

🛠️ Project Structure

  • /src/components: UI-only "dumb" components.
  • /src/hooks: Business logic and state management (useCalculator).
  • /src/utils: Pure utility functions for math and formatting.
  • /src/data: Constants and button configurations.

🤝 Contributing

Contributions are welcome! Feel free to open an issue or submit a pull request for improvements or new features.


Built with ❤️ by LuckDay21

About

A high-end, modern web-based calculator with a premium glassmorphic aesthetic, built using React, Tailwind CSS v4, and Framer Motion.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors