An open API service indexing awesome lists of open source software.

https://github.com/ajay-dhangar/calculator

A modern, responsive calculator web app built using React + TypeScript + Tailwind CSS. It includes undo functionality, arithmetic operations, and a beautiful glassmorphism UI.
https://github.com/ajay-dhangar/calculator

beautiful-ui calculator glassmorphism lucide react tailwindcss typescript undo-feature webapp

Last synced: 5 months ago
JSON representation

A modern, responsive calculator web app built using React + TypeScript + Tailwind CSS. It includes undo functionality, arithmetic operations, and a beautiful glassmorphism UI.

Awesome Lists containing this project

README

          

# ๐Ÿ“ฑ Beautiful Calculator Web App

A modern, stylish, and functional calculator built with **React**, **TypeScript**, and **Tailwind CSS**. It features basic arithmetic operations, percentage calculation, undo, and delete โ€” all wrapped in a stunning **glassmorphism UI**.

---

## ๐ŸŒ Live Demo

๐Ÿ”— View Demo [(http://localhost:5173)](http://localhost:5173)

๐Ÿง‘โ€๐Ÿ’ป Created by [Ajay Dhangar](https://github.com/ajay-dhangar)

---

### ๐Ÿ“ธ Preview

![Calculator Screenshot](./assets/calculator-preview.png)

> ๐Ÿ’ก This is a real-time responsive calculator with expression display, interactive button feedback, and undo feature.

---

### โœจ Features

* ๐Ÿงฎ **Arithmetic Operations** (`+`, `-`, `*`, `/`)
* ๐Ÿ’ฏ **Percentage Calculation**
* ๐Ÿ”™ **Undo** last input or operation (`โ†บ`)
* โŒซ **Delete** last digit
* ๐Ÿงผ **Clear All** inputs
* ๐ŸŽจ **Modern UI with Glassmorphism** design
* โš›๏ธ Built with **React + TypeScript**
* ๐Ÿ“ฑ **Responsive** on all devices

---

### ๐Ÿš€ Tech Stack

| Tech | Role |
| ------------ | --------------------------- |
| React | Frontend UI Framework |
| TypeScript | Typed JavaScript |
| Tailwind CSS | Utility-first CSS Framework |
| Lucide React | Icons (Undo, Delete, etc.) |
| Vite | Lightning-fast Dev Server |

---

### ๐Ÿ“‚ Project Structure

```
project-10/
โ”œโ”€โ”€ src/
โ”‚ โ”œโ”€โ”€ components/
โ”‚ โ”‚ โ”œโ”€โ”€ Calculator.tsx
โ”‚ โ”‚ โ”œโ”€โ”€ Display.tsx
โ”‚ โ”‚ โ””โ”€โ”€ Button.tsx
โ”‚ โ”œโ”€โ”€ App.tsx
โ”‚ โ””โ”€โ”€ main.tsx
โ”œโ”€โ”€ public/
โ”‚ โ””โ”€โ”€ favicon.svg
โ”œโ”€โ”€ index.html
โ”œโ”€โ”€ tailwind.config.js
โ”œโ”€โ”€ vite.config.ts
โ””โ”€โ”€ README.md
```

---

### ๐Ÿง‘โ€๐Ÿ’ป Getting Started

To run this project locally:

```bash
# Clone the repository
git clone https://github.com/ajay-dhangar/calculator.git

# Navigate into the directory
cd calculator

# Install dependencies
npm install

# Start the development server
npm run dev
```

---

### ๐Ÿ“ฆ Scripts

| Command | Description |
| ----------------- | ---------------------------- |
| `npm run dev` | Start the development server |
| `npm run build` | Build for production |
| `npm run preview` | Preview production build |

---

### ๐Ÿ”— Topics (GitHub Tags)

```
react, typescript, tailwindcss, calculator, undo-feature, lucide-icons, webapp, glassmorphism, ui-design
```

---

### ๐Ÿ“ƒ License

This project is licensed under the [MIT License](LICENSE).

---

### ๐Ÿ™ Acknowledgements

* [React](https://reactjs.org/)
* [Tailwind CSS](https://tailwindcss.com/)
* [Lucide Icons](https://lucide.dev/)
* [Vite](https://vitejs.dev/)